Skip to main content
When a request fails, PolyAI APIs return a structured JSON error response. This page documents the HTTP status codes, error response format, and platform-specific error codes you may encounter. 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

Expand the category you’re hitting, or use one of the jump links above.

WebSocket close codes

If you are using the WebRTC Gateway or webchat WebSocket connections, you may encounter these close codes:

Troubleshooting

Every API response includes an X-PolyAI-Correlation-Id header. When contacting PolyAI support, include this value so the team can trace the request through the system.

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.
Likely cause — API key missing or malformed.Resolution — Verify the 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.
Likely cause — Old key revoked.Resolution — Confirm you are using the new key everywhere it is referenced — including local .env files, CI secrets, and any deployed services.
Likely cause — Wrong region.Resolution — Verify the base URL matches your account region. See API getting started for the list of regional base URLs.
Likely cause — Duplicate identifier.Resolution — Use a different name or ID, or check for an existing resource with the same identifier before retrying.
Likely cause — Schema mismatch.Resolution — Verify CSV columns match the expected format. Check the error data field for column-level details.

API getting started

Authentication, base URLs, and API versioning.

Conversations API

Retrieve conversation data and transcripts.
Last modified on July 6, 2026