Thanks for the reply! get_rest_url returns the new api url and I’m able to access the API through the browser with the new url. I’m just adding the following to functions.php:
add_filter( ‘rest_url_prefix’, ‘slug_rest_url_prefix’ );
function slug_rest_url_prefix( $old ){
return ‘api’;
}
Removing the lines above fixes the problem. I’ve made other arrangements so no big deal but I thought this might be a relatively easy problem to replicate and fix.