Cue
Concepts

Error Handling

Understand error responses and how to handle them.

The Cue API returns consistent error responses to help you handle issues gracefully.

Error Response Format

All errors return a JSON object with an error field:

{
  "error": "Description of what went wrong"
}

Common Error Codes

CodeDescriptionHow to Handle
400Bad Request - Invalid input dataCheck your request body against the API docs
401Unauthorized - Invalid or missing API keyVerify your API key is correct
403Forbidden - Action not allowedCheck plan limits or permissions
404Not Found - Resource doesn't existVerify the resource ID is correct
429Rate Limited - Too many requestsImplement backoff and retry (see Rate Limiting)
500Server Error - Something went wrong on our endRetry after a short delay

Validation Errors

For 400 errors, the message describes what validation failed:

{
  "error": "platforms is required"
}
{
  "error": "At least one platform must be specified"
}
{
  "error": "Content is required for each platform"
}

On this page