Error Codes

Error Codes

All errors return a non-2xx HTTP status and a JSON body:

1{
2 "detail": {
3 "code": "COLLECTION_NOT_FOUND",
4 "message": "Collection not found"
5 }
6}

The code field is stable and machine-readable. The message field is human-readable and may change.

HTTP status codes

StatusMeaning
400Bad request
401Missing or invalid API key
402Payment required
403Forbidden
404Resource not found
413File too large
415Unsupported media type
422Validation error
429Rate limit exceeded
503Service unavailable

Error code reference

Authentication

CodeHTTPDescription
UNAUTHORIZED401API key missing or invalid
INVALID_API_KEY401The provided API key does not exist or has been revoked
SESSION_EXPIRED401Session token has expired
FORBIDDEN403The key exists but doesn’t have permission for this action

Collections

CodeHTTPDescription
COLLECTION_NOT_FOUND404Collection ID not found, or not owned by this account
COLLECTION_NAME_TAKEN409A collection with this name already exists in your account

Videos

CodeHTTPDescription
VIDEO_NOT_FOUND404Video ID not found, or not owned by this account

Upload

CodeHTTPDescription
UPLOAD_TOO_LARGE413File exceeds the 5 GB maximum
UNSUPPORTED_FORMAT415File type is not supported. Accepted: MP4, MOV, AVI, WebM, MPEG, MKV
PLAN_LIMIT_EXCEEDED402Upload would exceed your plan’s storage limit
CodeHTTPDescription
SEARCH_LIMIT_EXCEEDED402Daily search quota exhausted (Free plan)
SEARCH_UNAVAILABLE503Search service temporarily unavailable — retry shortly

Billing & credits

CodeHTTPDescription
INSUFFICIENT_CREDITS402Account has no remaining credits
PAYMENT_METHOD_REQUIRED402Action requires a saved payment method
PAYMENT_FAILED402Stripe payment attempt failed
BILLING_NOT_CONFIGURED402No billing account associated with this user

Jobs

CodeHTTPDescription
JOB_NOT_FOUND404Job ID not found or not owned by this account

API keys

CodeHTTPDescription
API_KEY_NOT_FOUND404API key ID not found
API_KEY_ALREADY_REVOKED409Key has already been revoked
API_KEY_LIMIT_REACHED402Account has reached the maximum number of API keys for this plan

General

CodeHTTPDescription
VALIDATION_ERROR422Request parameter failed validation — check the message field
NOT_FOUND404Generic not found
INTERNAL_ERROR500Unexpected server error
RATE_LIMIT_EXCEEDED429Too many requests — retry with exponential backoff