diff --git a/src/containers/internal/views/speech-services/index.tsx b/src/containers/internal/views/speech-services/index.tsx index f8e207e..caa4a4e 100644 --- a/src/containers/internal/views/speech-services/index.tsx +++ b/src/containers/internal/views/speech-services/index.tsx @@ -87,7 +87,10 @@ export const SpeechServices = () => { useEffect(() => { setLocation(); - if (currentServiceProvider) { + + if (user?.scope !== USER_ACCOUNT && accountSid) { + setApiUrl(`Accounts/${accountSid}/SpeechCredentials`); + } else { setApiUrl( `ServiceProviders/${currentServiceProvider?.service_provider_sid}/SpeechCredentials` );