Skip to main content
The API uses conventional HTTP status codes to indicate success or failure. Codes in the 2xx range mean success; 4xx codes indicate a problem with the request; 5xx codes indicate a problem on AnyReach’s side.

Error format

Every error response is JSON with a detail message describing what went wrong:
{
  "detail": "Conversation not found"
}

Status codes

StatusMeaning
200Success.
202Accepted — the request was queued and will complete asynchronously.
400The request was understood but could not be fulfilled.
401Missing or invalid token.
403The token’s role doesn’t grant access to the action.
404The resource doesn’t exist.
409The resource is in a state that doesn’t allow the action.
422The request body or parameters failed validation.
500An unexpected error occurred on the server.
Endpoint-specific meanings for 400, 409, and 422 are documented on each endpoint’s page.