Skip to main content
Occtoo limits how much each tenant can send and read, so one integration cannot slow down the others. When you go over a limit, the API answers with HTTP 429 Too Many Requests, or with an error in the GraphQL response.

Handle a 429

  1. Read the Retry-After header. When it is present, wait that many seconds before you retry.
  2. When there is no Retry-After, retry with exponential backoff and a cap, for example 1, 2, 4 and 8 seconds.
  3. Read the error message. For plan limits it names the limit you hit, how many requests were counted, and how many are allowed.
Spread large jobs over time instead of sending everything at once. Reuse access tokens until they expire instead of requesting a new one per call.

Limits

Plan limits

Your plan sets the values of the Ingest and Assets limits. Contact Occtoo to learn or change the values for your tenant.
  • Import requests: every ingest call counts once, even when its payload is rejected.
  • Payload size: a request over a size or entry limit is rejected as a whole with 400, and it still counts as an import request. If the same request also goes over the request limit, you get 429.
  • Asset requests: every call to /v1/assets/{dataSourceId} counts once, however many assets it carries.
Occtoo can also pause ingest for a tenant. Ingest calls then return 429 with the message Ingest is temporarily blocked for this tenant. Contact Occtoo support if you see it.