Skip to content

Limits and rate limits

GET /limits returns the limits in effect for your tenant. It works with any valid key. Read it instead of hard-coding values.

api/specs/examples/limits.json (contract fixture)
{
"max_upload_bytes": 100000000,
"max_document_pages": 10000,
"max_image_pixels": 100000000,
"max_chunk_pages": 400,
"max_queued_bytes": 1000000000,
"max_concurrent_pages": 8,
"retention_seconds": 604800,
"event_retention_seconds": 86400,
"idempotency_seconds": 86400
}

The v1 contract sets these initial values. They are safe defaults for a single processing owner, not throughput claims, and may be raised per tenant.

FieldDevelopment defaultMeaning
max_upload_bytes100,000,000 bytesLargest accepted upload body.
max_document_pages10,000Most pages in one document.
max_image_pixels100,000,000Most decoded pixels in one PNG or JPEG.
max_chunk_pages400Largest allowed chunk_pages value.
max_queued_bytes1,000,000,000 bytesQueued and running upload bytes per tenant.
max_concurrent_pages8Pages processed at once per tenant.
retention_seconds604,800 (7 days)Source, outputs and events expire after durable admission.
event_retention_seconds86,400 (24 hours)Rolling event replay window.
idempotency_seconds86,400 (24 hours)Minimum Idempotency-Key binding time.
Situation Response
Upload over the byte, page or pixel limit 413 document_limit_exceeded
chunk_pages above the limit 422 invalid_options
Tenant request rate, queued bytes or credit exhausted 429 quota_exceeded with Retry-After
The processing owner is at capacity 503 owner_busy with Retry-After
Body not received within 10 minutes The upload is rejected; retry with the same Idempotency-Key

Queued and running documents both count against the queued-bytes limit. Capacity is released when a document finishes, fails, is rejected or is deleted. Concurrent uploads cannot exceed the limit together.

Larger uploads, presigned uploads and higher concurrency are planned capacity work.