Skip to main content
The Alta API uses standard HTTP status codes to indicate the outcome of a request. Error responses include a JSON body with details.

Error response format

Status codes

Common error scenarios

Invalid request body

Check that your request body matches the expected schema. Required fields must be present and have the correct types.

Resource not found

The ID you provided doesn’t match any existing resource, or the resource belongs to a different account.

Permission denied

Your API token’s user doesn’t have the required permissions for this resource. Check your role and campaign access settings.

Best practices

  • Check status codes first - don’t rely solely on parsing the response body
  • Handle 429 gracefully - implement retry logic with exponential backoff
  • Log error responses - include the error and message fields for debugging
  • Validate inputs client-side - catch malformed requests before sending them