Skip to main content

Error codes

Authentication

StatusError codeWhereMeaning
401missing_api_keyREST APINo Authorization: Bearer header
401invalid_api_key_formatREST APIHeader present, not a valid sprio_live_... key
401invalid_api_keyREST APIKey not recognized
401revoked_api_keyREST APIKey exists but has been revoked
401unauthorizedWebhooksWebhook token missing or incorrect

Calls API (/v1/calls/*)

StatusError codeMeaning
400invalid_phone_numberphone_number isn't valid E.164
400assistant_id_requiredMissing assistant_id on an outbound call request
404assistant_not_foundNo such assistant
404call_not_foundNo such call, or it belongs to a different organization
403assistant_wrong_orgAssistant exists but belongs to another organization
403insufficient_creditsOrganization credit balance too low — response includes required/available
429rate_limit_exceededPer-key outbound-call limit hit — see Rate limits

Assistants API (/v1/assistants/*)

StatusError codeMeaning
404(assistant not found)No such assistant ID
400No files uploadedKnowledge-base upload request had no files field

Webhooks

StatusError codeMeaning
404unknown connection / unknown configConnection ID in the URL doesn't exist

General

StatusError codeMeaning
429(see Rate limits)Global /v1 request rate exceeded
500internal / auth_errorUnexpected server error — retry, then contact support if persistent