Rate limits
Dockt applies approximate abuse-protection limits to each API credential or signed-in user. Credentials have separate limits; browser sessions for the same user share that user’s limits. The request groups are:
| Request group | Limit |
|---|---|
Reads (GET and HEAD) |
1,000 requests per 60 seconds |
| Writes | 200 requests per 60 seconds |
| Document uploads to a Person or Company | 20 requests per 60 seconds |
These limits protect the service. They aren’t contracted quotas.
Handle a rate-limit response
Section titled “Handle a rate-limit response”When a limit is exceeded, Dockt returns 429 Too Many Requests with an application/problem+json body and a Retry-After header in seconds.
- Stop sending requests in the affected workflow.
- Wait for
Retry-After. - Add a small random delay when several application workers may retry together, so they do not all retry at once.
- Retry with the original idempotency key when the operation supports one.
- Poll less often, or rely on webhook events.
Don’t retry a 429 at once. Many immediate retries extend the congestion and delay recovery.
Reduce request volume
Section titled “Reduce request volume”- Handle
decision.created,document.processedanddocument.failedevents instead of polling. - Send a worker’s details with the Assignment, instead of creating the Person first.
- Cache catalogue reads, such as document types and compliance packages.
- Use collection filters and a larger
limitinstead of many small pages. - Upload each file once per Person or Company. Dockt reuses it at every Workplace.