Skip to main content

Troubleshooting: voice inference credential rejected

When you register or rotate a speech-to-text (STT) or text-to-speech (TTS) provider key under Settings → Voice inference provider, the request can return a 422 with error code VOICE_CREDENTIAL_PROVIDER_REJECTED. This page explains why it happens and how to recover safely.

Symptom

You select a provider, paste its API key, and submit. The request fails with:
The same error can occur when you rotate an existing key. Registration uses PUT /api/v1/voice/voice-provider-credential/{kind} and rotation uses POST /api/v1/voice/voice-provider-credential/{kind}/rotate.

What it means

Orbit probes every credential against the provider before persisting it. For example, the probe can request a Deepgram project list or a Cartesia voice list. If the provider returns a refusal such as HTTP 401 or 403, Orbit returns VOICE_CREDENTIAL_PROVIDER_REJECTED and does not save the key. The provider’s status is available as error.details.provider_status. Probe-first registration prevents a key that is already unusable from reaching an agent’s STT or TTS calls. The probe runs on both register and rotate, so neither operation can save a credential that the provider currently rejects. The supported provider families are: A key restricted to billing, account administration, or another unrelated API will be rejected even if the key is active in the provider’s console.

Fix the credential

  1. Open the dashboard where you created the key. Confirm it is active, has not expired or been revoked, and belongs to the provider and kind you selected.
  2. Check its scope. Deepgram needs transcription access. Cartesia and ElevenLabs need text-to-speech or voice-synthesis access.
  3. Copy the key directly from the provider dashboard. Do not pass it through a chat or document that can add whitespace.
  4. Submit the corrected key once through Settings → Voice inference provider or the matching API operation.
Do not retry the same rejected payload in a loop. This is a deterministic provider verdict; the same key will keep failing until you replace it or fix its permissions.

Rotate or delete?

Use rotate when you want to keep using your own provider account: create or select a valid replacement key, then rotate it. The replacement is probed before it is saved. Use delete or revoke when you no longer want to manage a provider key. This removes the BYO credential so voice inference can fall back to the platform-owned key, where that fallback is available. Deleting is not a way to save a rejected key, and it does not repair a provider key that is still needed.

If the error persists

Replace or revoke the key before opening a support ticket. If a new key with the required scope still fails, include:
  1. The error code and operation: VOICE_CREDENTIAL_PROVIDER_REJECTED, plus whether you used the register or rotate endpoint.
  2. error.details.kind and error.details.provider.
  3. error.details.provider_status (for example, 401 or 403).
  4. Your organization ID and the request ID from the response metadata.
Never include the API key itself in a ticket.

See also

The former /troubleshooting/voice-provider-credential-rejected page is retired. Its link redirects here during the documentation transition.