Errors

All errors share one JSON shape:

{ "message": "human readable message", "code": "MACHINE_CODE", "detail": "optional detail" }

Common codes

HTTPCodeMeaningFix
400(varies)Business failureHandle by the code field (extraction codes below) — these calls are not charged
401INVALID_API_KEYMissing, malformed or deleted keyCheck the Authorization: Bearer sk_snapany_xxx header and the key status in Console → API Keys
402INSUFFICIENT_CREDITSBalance too lowTop up in the Console, or enable auto top-up
404Resource not found (e.g. an invalid job id)Check the resource id returned by the API
422Invalid request parametersThe detail field says which parameter failed and why
429RATE_LIMITEDOver 1200 requests/minBack off and retry after a delay
500Server errorRetry later; contact us if it persists

Extraction error codes

Extraction failures return HTTP 400 with a code from the extraction engine. These are business failures — no credits are charged.

CodeCommon causeWhat to do
InvalidURLNot a supported post URLCheck that the URL is a direct link to a post
ContentDeletedThe post has been removed by its platformNothing to extract
PrivateContentLogin-gated or private contentNot extractable
ExtractFailedPlatform changes or a temporary upstream errorRetry later; if it keeps failing for one site, contact us

Transcription failures

A failed job shows "status": "failed" with an error field when polling, and the reserved credits are refunded automatically.

Error Codes & Troubleshooting - SnapAny API