Skip to content

Errors

Failed requests return:

{ "error": { "code": "INSUFFICIENT_CREDITS", "message": "...", "details": {} } }

Use error.code in your client. The same HTTP status can mean more than one code.

CodeHTTPWhen
UNAUTHENTICATED401Missing key
INVALID_API_KEY401Unknown or deleted key
INSUFFICIENT_SCOPE403Key is missing a required scope
PERMISSION_DENIED403Not allowed on this resource
ROLE_CANNOT_PRODUCE403Workspace member cannot create
NOT_FOUND404Unknown resource
INVALID_ARGUMENT400Bad body or job id
UNSUPPORTED_SOURCE422Source type or URL is not supported
DURATION_UNKNOWN422Import duration could not be resolved
INSUFFICIENT_CREDITS429Not enough credits to quote, reserve, or create
CONFLICT / ALREADY_EXISTS409Duplicate YouTube import, and similar
IDEMPOTENCY_REPLAY409Same idempotency key, different body
RATE_LIMITED429Key concurrency cap
PREVIEW_NOT_DOWNLOADABLE422Preview dub, full artifact requested
DOWNLOAD_TIER_NONE422Account cannot download
FAILED_PRECONDITION422Pipeline is not ready yet
GONE410Retired path
METHOD_NOT_ALLOWED405The path exists but does not support that HTTP method
INTERNAL500Unexpected

Handle INSUFFICIENT_CREDITS in this recipe.