Skip to content

REST API

Rate limits

sedisto limits how many requests one client may send in a given time, so that a single integration cannot slow down an installation for everybody else. This article gives the limits and how to handle a refusal.

Requests to the REST API are counted per client IP address:

  • 10 requests per second on average.
  • Bursts of up to 100 requests above that rate are queued rather than refused. The first 50 are answered at once, the rest are slowed down to the average rate.
  • A request beyond the burst is refused with 429 Too Many Requests.

The limit counts all requests from your IP address in a region, across every installation you serve there. An integration that syncs several operators from one server shares one budget.

The response carries Retry-After: 1. Wait that many seconds, then send the request again. A refused request has not been executed, so repeating it is safe.

The body of a 429 is an HTML page, not the JSON error body described in Errors. Check the status code before you parse the body.

  • Send requests one after another or with a small number in parallel, rather than many at once.
  • For a first import of many bookings, spread the requests. 5,000 bookings with a tenant, an agreement and a membership each are 15,000 requests, which take 25 minutes at 10 per second.
  • Use webhooks instead of polling for changes.
  • Use per_page=100 and the aggregate routes instead of fetching many small pages.