Getting Started
Authentication
Authentication
  • V2 Authentication (Deprecated)
  • V3 Authentication
V2 API Documentation (Deprecated)V3 API DocumentationDialer SDKMCP
Getting Started
Authentication
Authentication
  • V2 Authentication (Deprecated)
  • V3 Authentication
V2 API Documentation (Deprecated)V3 API DocumentationDialer SDKMCP
  1. Getting Started
  • Getting Started
  • Choosing the Right API Version
  • Architecture
  • Quick Start
  • Authentication
  • Roles and API Access
  • Rate Limits
  • API Categories
  • API Endpoints Reference
  • Making Your First API Call
  • Working with Encrypted Tokens
  • Code Examples
  • Error Handling
  • Best Practices
  • Troubleshooting
  • Support
  • Recipes
  1. Getting Started

Error Handling

Standard HTTP Status Codes#

Status CodeMeaningCommon Causes
200SuccessRequest completed successfully
400Bad RequestInvalid request format, missing required fields
401UnauthorizedInvalid or expired access token
403ForbiddenInsufficient permissions for the requested resource
404Not FoundResource does not exist
429Too Many RequestsRate limit exceeded for your account or source IP
500Internal Server ErrorServer-side error

Error Response Format#

Errors use the same envelope as successful responses. code is the HTTP status, message describes the problem and data is null unless the error carries details.
{
  "code": 401,
  "message": "Invalid or expired token",
  "data": null,
  "request_id": "550e8400-e29b-41d4-a716-446655440000",
  "timestamp": "2026-04-03T12:34:56.789Z"
}
Validation errors (400) return "message": "Validation failed" and list each problem in data:
{
  "code": 400,
  "message": "Validation failed",
  "data": ["email must be an email"],
  "request_id": "550e8400-e29b-41d4-a716-446655440000",
  "timestamp": "2026-04-03T12:34:56.789Z"
}
Some errors also include an error_code field: a machine-readable string you can branch on instead of matching the message text.

Handling Common Errors#

401 Unauthorized - Token Expired#

400 Bad Request - Validation Errors#

403 Forbidden - Insufficient Permissions#

429 Too Many Requests - Rate Limit Exceeded#

Rate limits are applied per billing account and per source IP address, using a fixed one minute window. Authenticated responses carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset so you can track your usage without waiting for an error.
The 429 body is the standard error envelope. The time to resume is in the response headers, not the body: X-RateLimit-Reset (a Unix timestamp in seconds) when your account limit is exceeded, or Retry-After (seconds to wait) when the source IP limit is exceeded.
The account limit is shared across every user and integration under your billing account, so running additional workers in parallel will not increase your throughput.
See Rate Limits for full details.

Retry Logic for 5xx Errors#

Modified at 2026-11-26 12:44:39
Previous
Code Examples
Next
Best Practices
Built with