Youniton Docs

Rate limits

Limiters protect each token, each tenant and each help-desk connection. A tripped limiter answers 429 with Retry-After.

#When you hit a limit

429 Too Many Requests
HTTP/1.1 429 Too Many Requests
Retry-After: 12
Content-Type: application/problem+json

{ "status": 429, "code": "rate_limit.exceeded", "limiter": "api-token", "title": "Too many requests.", "instance": "urn:kanso:request:…" }

Wait for the number of seconds in Retry-After, then retry. For a creating call, retry with the same Idempotency-Key. limiter tells you which limit you hit.

#The limiters of the public API

LimiterCounts perValue
api-tokenpersonal token120 calls per minute
tenant-apitenant — every token and service token of the tenant togetherthe plan's apiRequestsPerMinute. Proposed: Starter 300, Team 1,200, Enterprise 6,000 per minute
help-desk-connectionhelp-desk connection — every callthe connection's own limit or the tenant setting helpdesk.api.requestsPerMinute
help-desk-createhelp-desk connection — new requestshelpdesk.api.createsPerHour
help-desk-uploadhelp-desk connection — upload intentshelpdesk.api.uploadsPerHour
searchaccountGET /search
not-foundcallercounts 404 answers only, against enumeration

For a help-desk connection, the lower of the connection's own limit and the tenant's setting applies. The values of the plans are plan data and can change.

#Request size limits

WhatLimit
a JSON body1 MiB; 2 MiB with a rich-text document (a ticket description, a doc page)
a query string8 KiB
a list in a bodybulk at most 100 targets; filter lists at most 100 values
a memory entrythe tenant setting memory.entries.maxBytes (default 1 MiB)
filesnever through the API body — use an upload intent and a presigned PUT

Above a limit the answer is 413 request.too_large.

#Good habits

  • Use webhooks instead of frequent polling when you can.
  • Ask for bigger pages (page[size]=100) instead of many small ones.
  • Back off when you get a 429, and never retry faster than Retry-After.

Was this helpful?