Skip to main content
When a request fails, the response body contains an errors array with machine-readable codes and human-readable messages.

Error response format

{
  "errors": [
    {
      "code": "not_found",
      "message": "User not found"
    }
  ],
  "data": null
}

Error codes

Authentication errors

CodeStatusDescription
missing_api_key401Missing or malformed Authorization header
invalid_api_key401API key does not exist
api_key_disabled403API key has been disabled
api_key_expired403API key has expired

Billing errors

CodeStatusDescription
credits_exhausted402No credits remaining

Request errors

CodeStatusDescription
validation_error400Invalid parameters
not_found404Resource not found
route_not_found404Endpoint does not exist

Server errors

CodeStatusDescription
platform_error502Upstream platform (Instagram/TikTok) error
service_unavailable503API temporarily unavailable
internal_error500Unexpected server error
Requests that fail with 400, 5xx, or 502 are not charged credits.