Skip to main content
The Filemonk API uses a token-bucket rate limiter to ensure fair usage across all stores.

How it works

Each store’s API key has a bucket of points that refills every window: Every request you make deducts points from your bucket. When the bucket is empty, subsequent requests receive a 429 Too Many Requests response until the window resets.

Response headers

Every successful response includes rate limit headers:

Handling rate limit errors

When you exceed the limit, the API returns a 429 response with a Retry-After header:
integer
Number of seconds to wait before making another request.

Best practices

When you receive a 429 response, wait for the duration specified in Retry-After before retrying. If you continue to receive 429 responses, increase the wait time exponentially.
Check the X-RateLimit-Remaining header after each response. If you are running low, slow down your request rate proactively instead of waiting for a 429.
Use the list endpoint with a higher per_page value (up to 250) instead of making many individual requests. One request for 100 orders costs 1 point, while 100 individual order requests cost 100 points.