Error format
All errors return a JSON body with adetail field:
422), detail is an array of field-level errors:
HTTP status codes
Authentication errors
401 covers three distinct situations. The detail field tells them apart:
MPS service-key routes (
/api/v1/mps/*) return their own 401 messages and use
a different credential entirely — see
MPS service keys.
Workflow validation errors
When validating a workflow (or creating one with invalid nodes), the API returns structured errors that reference specific nodes, edges, or fields:Telephony errors
Telephony operations may fail with one of these named error types returned in thedetail field:
Tips for handling errors
- Retry on
500with exponential backoff — transient server errors can resolve on retry. - Do not retry
4xx— these indicate problems with your request that will not self-resolve. - Check
detailcarefully on422— thelocarray pinpoints exactly which field failed validation. - Store API keys securely — a
401on a previously working key likely means the key was archived. - Read the
401detailbefore rotating —User session requiredis not a bad key; it means the route does not accept API keys at all. - Back off on
429— honour anyRetry-Afterheader and reduce concurrency rather than retrying immediately. - Treat
402as “top up”, not “retry” — model requests (BRAHMA, VAANI, LIPI, embeddings, moderation, deep research, transcription and the Voice Engine) draw on your organization’s credit balance. A402means the balance is exhausted or the daily spend cap is reached; thedetailfield says which. Retrying will not help until credits are added, the cap is raised, or you supply your own provider keys.

