Skip to main content
Developer docs menu

Developers

Rate limits and paging

Rate limits

Each key may make 120 requests every 60 seconds. The count is per key, so two integrations with their own keys do not share it.

Past the limit, requests get 429 with the code RATE_LIMITED and these headers:

  • Retry-After

    Seconds to wait before trying again.

  • X-RateLimit-Limit

    Requests allowed per key in each window (120).

  • X-RateLimit-Reset

    When the current window ends, as a Unix time in seconds.

For changes, prefer webhooks to polling. If you do poll, every few minutes is plenty for policies and incidents.

Paging through incidents

GET /api/incidents takes limit (100 by default, at most 200; a larger number is treated as 200) and offset. Results are ordered by when they were reported, newest first. Ask for the next page by adding the limit to the offset.

pagination.total is how many incidents match your filters, and pagination.hasMore tells you whether another page follows. The stats counts are for your whole organisation, whatever you filter.

Policy lists

GET /api/policies is not paged. It returns the newest 200 policies that match your filters. If you have more, narrow the list with status and category.