v1
The Messaging API uses standard HTTP status codes and returns consistent error objects across all endpoints.
Error Response Format
Authentication Error (401)
Returned when thex-network-api-key header is missing or invalid.
Validation Error (422)
Returned when required fields are missing or request parameters are invalid.array
List of validation error objects.
Application Error (400)
Returned for application-level errors such as content moderation. May include dynamicextra_data with contextual information.
integer
HTTP status code.
string
Short error description.
string
Detailed error message.
object
Dynamic contextual data specific to the error. Structure varies by error type.
Server Error (5xx)
Returned for internal server errors. The response follows the same format as application errors:Error Codes
WebSocket Errors
WebSocket connections use close codes instead of HTTP status codes:
See the WebSocket documentation for details on error handling in streaming connections.
