Request Quotas

How many API requests your application can make, the RateLimit-* headers, and the endpoints that return a 429.

Sila limits how many API requests each application can make in a rolling time window. This request quota is separate from transaction limits, which cap how much money moves and return a 403. See Transaction Limits Overview.

📘

Note

A 429 response status code applies only to the rate of requests. It never means that a transaction limit was reached.

How the request quota works

  • Every application has a request quota. By default it allows 210 requests per rolling minute, and Sila can set a different quota for your application. Requests for all your end users count toward the same quota.
  • The window is rolling. The RateLimit-Limit header gives its length in seconds.
  • Only the endpoints listed below check the quota. Requests to other endpoints can still count toward it.
  • Sila can also set a quota for a single endpoint, which counts only that endpoint's requests. For /documents, that quota can count each end user's requests separately.

Response headers

Responses from the endpoints below carry two headers, modelled on the IETF RateLimit Header Fields for HTTP draft:

  • RateLimit-Limit describes the quota: the number of requests allowed, the window in seconds, and a comment.
  • RateLimit-Remaining is the number of requests left in the window.

When your application exceeds the quota

Sila responds with a 429 and doesn't process the request. The response carries the same headers and repeats them in its body. The values below are for the default quota.

RateLimit-Limit: 210, 210;window=60;comment="rolling 0:01:00"
RateLimit-Remaining: 0
{
  "success": false,
  "message": "Rate limit exceeded",
  "details": {
    "RateLimit-Limit": "210, 210;window=60;comment=\"rolling 0:01:00\"",
    "RateLimit-Remaining": 0
  }
}

Slow down until the window has room again.

Endpoints that check the request quota

/auth_token, /check_bank_account_capabilities, /check_routing_number_capabilities, /get_webhooks and /retry_webhook don't check the quota.


Did this page help you?