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.
{ "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}Development defaults
Section titled “Development defaults”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.
| Field | Development default | Meaning |
|---|---|---|
max_upload_bytes | 100,000,000 bytes | Largest accepted upload body. |
max_document_pages | 10,000 | Most pages in one document. |
max_image_pixels | 100,000,000 | Most decoded pixels in one PNG or JPEG. |
max_chunk_pages | 400 | Largest allowed chunk_pages value. |
max_queued_bytes | 1,000,000,000 bytes | Queued and running upload bytes per tenant. |
max_concurrent_pages | 8 | Pages processed at once per tenant. |
retention_seconds | 604,800 (7 days) | Source, outputs and events expire after durable admission. |
event_retention_seconds | 86,400 (24 hours) | Rolling event replay window. |
idempotency_seconds | 86,400 (24 hours) | Minimum Idempotency-Key binding time. |
What happens at a limit
Section titled “What happens at a limit”| 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.