docbeast

    Errors

    Every error code the API returns.

    Errors are JSON with a stable code and a message you can show to people. Use the code in your own logic, because messages can change.

    { "error": { "code": "unsupported_file", "message": "Send a PDF, PNG, JPEG, WebP, TIFF or HEIC." } }

    A job that was accepted and then failed is reported on the job, not as an error like this. See When a job fails.

    StatusCodeWhen
    400bad_modemode isn't table or text.
    400missing_fileThe request had no file, or no form field named file.
    401unauthorizedThe key is invalid or has been revoked. On GET /v1/usage, it's also missing.
    402payment_requiredToday's free conversions are used. See Pay per use.
    402payment_errorA payment couldn't be processed.
    402credits_usedThe credit key has no pages left. Send the request without a key to buy more.
    404not_foundThere's no such job, it has expired, or the path doesn't exist.
    409not_readyA result was requested before the job finished, or for a failed job.
    410expiredThe result has been deleted.
    413file_too_largeThe file is over 25 MB.
    415unsupported_fileThe file isn't a PDF, PNG, JPEG, WebP, TIFF or HEIC.
    429quota_exceededThe account has used its pages for the period.
    429free_limit_reachedToday's free conversions are used and pay per use isn't on.
    500internal_errorSomething broke on our side. Try again in a minute.

    Errors from the MCP server are listed there.