Errors
HTTP status codes, error codes, and recommended handling.
Error response shape
Every error response shares a common JSON shape:
Every response — success or error — also includes a Request-Id header. Log it; Agora support uses it to trace requests end-to-end.
Error codes
Error context
When the API returns a 400 status and the parameter_invalid code, the body will include a context.issues array describing each validation failure:
Illustrative example. The fields shown above are illustrative — current endpoints take no parameters. The context.issues shape is stable across every endpoint that emits parameter_invalid.
Handling errors programmatically
- Match on
code, never onmessage. Messages are human-readable and may change without notice. - Use the HTTP status as a secondary filter. Status plus
codetogether fully disambiguate every error. - Persist the
Request-Idheader. It is the single best lever for diagnosing issues with Agora support. - Retry-with-backoff for 429 and 5xx. Honor
Retry-Afterwhen present.

