Error response format
All API errors return a JSON body with the following structure:Standard HTTP status codes
These standard codes apply across all PolyAI APIs. Client errors (4xx) mean fix the request; server errors (5xx) mean retry or contact support.Platform error codes
PolyAI APIs return domain-specific error codes alongside HTTP status codes. There are 63 of them across 13 categories — search by code, ID, or keyword below, or filter by HTTP status, instead of scanning tablesre are 63 of them across 13 categories — search by code, ID, or keyword below, or filter by HTTP status, instead of scanning tables. PolyAI APIs return domain-specific error codes alongside HTTP status codes. There are 63 of them across the 13 categories below — expand the category you’re hitting, or use page search (Cmd/Ctrl+F) to jump straight to a code. PolyAI APIs return domain-specific error codes alongside HTTP status codes. There are 63 of them across the 13 categories below — expand the category you’re hitting, or use page search (Cmd/Ctrl+F) to jump straight to a code. 63 platform error codes span the categories below — jump straight to yours:Error response format
All API errors return a JSON body with the following structure:Standard HTTP status codes
These standard codes apply across all PolyAI APIs. Client errors (4xx) mean fix the request; server errors (5xx) mean retry or contact support.Platform error codes
PolyAI APIs return domain-specific error codes alongside HTTP status codes. There are 63 of them across 13 categories — search by code, ID, or keyword below, or filter by HTTP status, instead of scanning tablesre are 63 of them across 13 categories — search by code, ID, or keyword below, or filter by HTTP status, instead of scanning tables. PolyAI APIs return domain-specific error codes alongside HTTP status codes. There are 63 of them across the 13 categories below — expand the category you’re hitting, or use page search (Cmd/Ctrl+F) to jump straight to a code. PolyAI APIs return domain-specific error codes alongside HTTP status codes. There are 63 of them across the 13 categories below — expand the category you’re hitting, or use page search (Cmd/Ctrl+F) to jump straight to a code. Expand the category you’re hitting, or use one of the jump links above.Authentication and authorization
Authentication and authorization
Conversations
Conversations
Chat
Chat
Deployments
Deployments
Flows
Flows
Functions
Functions
Knowledge base
Knowledge base
Phone numbers and connectors
Phone numbers and connectors
Variants
Variants
Real-time configuration
Real-time configuration
Secrets
Secrets
Accounts and projects
Accounts and projects
SMS
SMS
Test suite
Test suite
Conversations
Conversations
Chat
Chat
Deployments
Deployments
Flows
Flows
Functions
Functions
Knowledge base
Knowledge base
Phone numbers and connectors
Phone numbers and connectors
Variants
Variants
Real-time configuration
Real-time configuration
Accounts and projects
Accounts and projects
SMS
SMS
Test suite
Test suite
Authentication and authorization
Authentication and authorization
Conversations
Conversations
Chat
Chat
Deployments
Deployments
Flows
Flows
Functions
Functions
Knowledge base
Knowledge base
Phone numbers and connectors
Phone numbers and connectors
Variants
Variants
Real-time configuration
Real-time configuration
Accounts and projects
Accounts and projects
SMS
SMS
Test suite
Test suite
Conversations
Conversations
Chat
Chat
Deployments
Deployments
Flows
Flows
Functions
Functions
Knowledge base
Knowledge base
Phone numbers and connectors
Phone numbers and connectors
Variants
Variants
Real-time configuration
Real-time configuration
Accounts and projects
Accounts and projects
SMS
SMS
Test suite
Test suite
WebSocket close codesWebSocket close codes
If you are using the WebRTC Gateway or webchat WebSocket connections, you may encounter these close codes:TroubleshootingTroubleshooting
Common patterns
Common patterns
Quick diagnostics for the errors you are most likely to hit. Expand a row to see the likely cause and how to resolve it.401 on every request
401 on every request
x-api-key header is present and correctly formatted. Check for stray whitespace or missing characters when the key is copied from a secret store.403 after key rotation
403 after key rotation
.env files, CI secrets, and any deployed services.404 for a known resource
404 for a known resource
409 on create
409 on create
422 on import
422 on import
data field for column-level details.Common patterns
Quick diagnostics for the errors you are most likely to hit. Expand a row to see the likely cause and how to resolve it.401 on every request
401 on every request
x-api-key header is present and correctly formatted. Check for stray whitespace or missing characters when the key is copied from a secret store.403 after key rotation
403 after key rotation
.env files, CI secrets, and any deployed services.404 for a known resource
404 for a known resource
409 on create
409 on create
422 on import
422 on import
data field for column-level details.
