parserkit errors are JSON with a stable code, a message and a request id, 33 codes in all. Failed jobs cost nothing; 600 requests a minute per key. $0.02 a page, 50 pages free ($1 credit).
Errors and limits
Files can be up to 100 MB and 250 pages a job. This page covers the error shape, every code, what a failed job returns, how to retry without paying twice, and each rate limit.
Updated
Error shape
Every error returns JSON shaped like { "error": { "code", "message", "request_id", ... } }. Branch your code on code, because message is written for people. Every response also carries a Request-Id header matching request_id; quote it when you report a problem. Some codes add extra fields: issues on 400s, version, limit or inbox_ids on 409s, upload_id, bytes and sha256 on an upload 409, and billing_url on 402.
curl https://api.parserkit.com/v1/jobsrequest-id: a5690ccb387e911f
{
"error": {
"code": "UNAUTHORIZED",
"message": "send your API key as 'Authorization: Bearer pkit_live_...'",
"request_id": "a5690ccb387e911f"
}
}A 405 response includes an Allow header. Both 429 and 503 responses include a Retry-After header.
Error codes
The API has 31 error codes, plus 2 codes (SOURCE_CHANGED and BUDGET_EXHAUSTED) that only appear on failed jobs, making 33 in all. The Failed job column marks the codes a job can fail with after acceptance.
| Code | Status | Failed job | When |
|---|---|---|---|
INVALID_REQUEST | 400 | No | The body or query is wrong. issues lists each problem with its path. |
INVALID_SCHEMA | 400 | No | A custom schema or field rule breaks the schema rules. issues names the path. |
UNAUTHORIZED | 401 | No | No key, or a key that is unknown or revoked. |
INSUFFICIENT_CREDIT | 402 | Yes | Your balance does not cover the job. Carries required_micros, available_micros and billing_url. |
FORBIDDEN | 403 | No | A files link with a bad signature, or an action only the dashboard may take. |
PLAN_REQUIRED | 403 | No | Creating or changing inboxes, and the vault, need Pro. |
HTTPS_REQUIRED | 403 | No | The request came over plain http. Rotate the key you sent. |
NOT_FOUND | 404 | No | No such route or resource, or a file that no longer exists. |
SOURCE_NOT_FOUND | 404 | Yes | The upload_id has no file yet, or a failed job could not fetch its source (422). |
JOB_NOT_FOUND | 404 | No | No job with that id on this account. |
METHOD_NOT_ALLOWED | 405 | No | Wrong method. Allow lists the right ones. |
REQUEST_TIMEOUT | 408 | No | The request body stalled. Send it again. |
IDEMPOTENCY_CONFLICT | 409 | No | The Idempotency-Key was used for a different request in the last 24 hours. |
CONFLICT | 409 | No | A stale schema version, a taken inbox address, an account limit, or an upload that is still arriving. |
UPLOAD_ALREADY_RECEIVED | 409 | No | The upload already has its file. Carries upload_id, bytes and sha256. |
UPLOAD_EXPIRED | 410 | No | The upload link expired. Create a new upload. |
FILE_TOO_LARGE | 413 | Yes | Over 25 MB as multipart, 100 MB by URL or upload, or past the text or table-cell limit. |
UNSUPPORTED_FORMAT | 415 | Yes | The file type is not supported. |
PASSWORD_REQUIRED | 422 | Yes | The document is password-protected. Send password or use the vault. |
TOO_MANY_PAGES | 422 | Yes | The document has more pages than the job allows. |
CORRUPT_FILE | 422 | Yes | The file is damaged or is not a readable document. |
LLM_REFUSED | 422 | Yes | The model refused to read the document. |
RATE_LIMITED | 429 | Yes | A rate limit or daily cap. Wait for Retry-After. |
BUSY | 429 | No | Capacity for accounts without a payment is full. Try again shortly. |
CONTENT_REFUSALS | 429 | Yes | Too many refused documents today. New jobs resume at 00:00 UTC. |
INTERNAL | 500 | Yes | Something went wrong on our side. |
NOT_IMPLEMENTED | 501 | No | A feature that is not available yet. |
LLM_UNAVAILABLE | 502 | Yes | The extraction model was unavailable. Try again shortly. |
OCR_UNAVAILABLE | 502 | Yes | Text recognition was unavailable. Try again shortly. |
CONTAINER_UNAVAILABLE | 503 | Yes | No parsing capacity was free, or a result can't be read right now. Retry-After says when. |
TIMEOUT | 504 | Yes | The job ran out of time. |
SOURCE_CHANGED | 409 | Yes | The uploaded file changed after the job started. |
BUDGET_EXHAUSTED | 422 | Yes | The document needed more processing than its page budget allows. |
Failed jobs
A job can fail after the API accepts it. Its status becomes failed, error holds a fixed code and message, and cost_usd is 0. If your request waited for the job, the API responds with the matching HTTP status and the job object in the body.
curl https://api.parserkit.com/v1/parse -H "Authorization: Bearer $PARSERKIT_API_KEY" -F file=@statement-locked.pdf -F preset=bank_statementrequest-id: a5690cf47a7465dd
{
"error": {
"code": "PASSWORD_REQUIRED",
"message": "The document is password-protected. Send its password or save it in the vault.",
"request_id": "a5690cf47a7465dd"
},
"job": {
"id": "job_xsv1pqyrteusylx8tgnc",
"status": "failed",
"preset": "bank_statement",
"file": {
"name": "statement-locked.pdf",
"bytes": 32174,
"kind": null
},
"pages": null,
"cost_usd": 0,
"error": {
"code": "PASSWORD_REQUIRED",
"message": "The document is password-protected. Send its password or save it in the vault."
}
}
}The job envelope is trimmed. A failed job costs 0.
This request sent a password-protected PDF without a password and got 422 PASSWORD_REQUIRED with the job in the body. If you poll with ?wait=0 or use a webhook, you see the same error object on the job.
Retry safely
Retry 429, 502, 503 and 504 responses after Retry-After or a short wait. Fix your request before you retry any other 4xx error. An INTERNAL (500) error is our fault; retrying once is fine, and you should report the request_id if it repeats.
Send an Idempotency-Key header on POST /v1/parse so a retry cannot create a second job. Sending the same key returns the same job for 24 hours. Sending the same key on a different request returns 409 IDEMPOTENCY_CONFLICT.
curl https://api.parserkit.com/v1/parse \
-H "Authorization: Bearer $PARSERKIT_API_KEY" \
-H "Idempotency-Key: receipt-10482" \
-F file=@receipt-lindqvist.jpg \
-F preset=receipt
curl https://api.parserkit.com/v1/parse \
-H "Authorization: Bearer $PARSERKIT_API_KEY" \
-H "Idempotency-Key: receipt-10482" \
-F file=@receipt-lindqvist.jpg \
-F preset=invoicerequest-id: a5690cbf7afc1e26
{
"id": "job_iqvgm0mxduotdq9igyl9",
"status": "succeeded",
"cost_usd": 0
}request-id: a5690ccacf1fd3a8
{
"error": {
"code": "IDEMPOTENCY_CONFLICT",
"message": "this Idempotency-Key was used for a different request in the last 24 hours",
"request_id": "a5690ccacf1fd3a8"
}
}Bodies are trimmed. Sending the first request again returned the same job.
Try it on a sampleAn exact duplicate of a file you already parsed with the same file, preset and options also comes back free, with duplicate naming the first job.
Rate limits
Rate limits apply per API key, account, host, inbox or IP address.
| What | Limit | Counted per |
|---|---|---|
| API requests | 600 a minute | Key |
| MCP tool calls | About 300 a minute | Key |
| Running jobs | 8 by default | Key |
| Running jobs | 2, or 12 once the account added credit | Account |
| New jobs | 5,000 a UTC day | Key |
| Upload bytes | 20 GiB a UTC day per key, 50 GiB per account | Key and account |
| Schema drafts from a sample | 30 a UTC day | Account |
file_url fetches | 60 a minute, retried later instead of failed | Account and host |
| Webhook attempts | 60 a minute | Account and host |
| Inbound mail | 120 a minute | Inbox and sender |
| Failed sign-ins | 30 a minute | IP address |
Daily caps reset at 00:00 UTC, and their Retry-After header can be up to 86,400 seconds. Failing work slows down: 30 failed jobs in the past hour, or failed processing spend over today and yesterday above $0.50 and above 25% of charges, returns 429 RATE_LIMITED. 50 documents refused by the model in a UTC day return 429 CONTENT_REFUSALS until midnight UTC. Accounts without a payment share capacity; when it is full, new jobs return 429 BUSY with Retry-After.
File and job limits
These limits cover file sizes, page counts, archive depth, content volume, run time and retention. A file over a limit is refused with FILE_TOO_LARGE or TOO_MANY_PAGES, at no cost.
| Limit | Value |
|---|---|
Multipart file | 25 MB |
file_url and /v1/uploads | 100 MB |
| Pages a job | 250 |
| Email message | 25 MiB |
| ZIP | 2 levels deep, 200 entries, 500 MB unpacked |
| Text a job | 300,000 words |
| Table cells a job | 2,000,000 |
| Job run time | 10 minutes |
?wait= | 0 to 60 seconds, default 60 |
Idempotency-Key replay | 24 hours |
| Upload link | PUT within 1 hour, parse within 20 hours, 100 open links |
| Output links | At least 1 hour |
| Results and files | 7 days, 90 days on Pro |
| Pages for text files | DOCX, HTML and email: 1 page per 3,000 characters. XLSX and CSV: 1 page per 50 rows. |
Questions
Do failed jobs cost money?
No. A failed job has cost_usd set to 0, and an exact duplicate of a job you already ran is also free.
Which errors should I retry?
Retry 429, 502, 503 and 504 after Retry-After or a short wait. Fix the request before retrying other 4xx errors.
How do I retry without creating two jobs?
Send the same Idempotency-Key header on POST /v1/parse. It returns the same job for 24 hours.
What is the largest file I can send?
You can send up to 25 MB as multipart, 100 MB by file_url or /v1/uploads, and up to 250 pages a job.
How many jobs can run at once?
A key runs up to 8 jobs at once by default. An account can run 2 jobs at once until it adds credit, then 12.
Your first $1 is free, 50 pages with every check and export.