RiskPilot API
Guides

Quotas, limits and errors

How a request is admitted

Each customer request passes the same checks, in this order. The first one that fails answers.

How a customer request is admitted: limits and quotas A request with a bearer credential is checked in order. An unknown credential gets 401. A paused account gets 403 paused. A sandbox key outside the signals routes gets 403 sandbox_read_only. Billing that does not allow access gets 402 with checkout, canceled, payment_overdue or subscription_expired. Over the package's requests per minute the answer is 429 with Retry-After 60. A named key outside the data routes or its scopes gets 403 key_not_allowed or key_scope. On a metered route, with no daily or monthly quota left, the answer is 429 quota_day_exceeded or quota_month_exceeded with Retry-After. Otherwise the answer is 200 with the X-Quota headers. GET /api/v1/customer/… + Bearer Credential known and valid? no 401 unauthorized Account active (not paused)? no 403 paused Sandbox key: a signals route? no 403 sandbox_read_only Billing allows access? no 402 checkout, canceled, payment_overdue, …expired Under the requests per minute? no 429 + Retry-After: 60 Named key: data route, in scope? no 403 key_not_allowed, 403 key_scope Metered route: quota left today and this month (UTC)? no 429 quota_day_exceeded 429 quota_month_exceeded + Retry-After (to reset) 200, counted once X-Quota-Limit|Remaining|Reset-Day|Month The quota counts metered routes only: data routes and each stream opening. A refused request is not counted. The sandbox key is never metered.
The checks every customer request passes. Refusals on the right; only a request that passes them all is counted against the quota.

Sessions of team members are also checked for a finished two-factor sign-in (401 two_factor_required), their role (403 role_forbidden) and, when the package requires it, 2FA set-up (403 two_factor_setup_required); see Authentication.

Requests per minute

A package may limit requests per minute. Every customer request counts, whatever the route (a request refused with 429 does not). Past the limit the API answers:

Code
HTTP/1.1 429 Too Many Requests Retry-After: 60 Content-Type: application/json { "error": "too many requests" }

Daily and monthly quotas

A package may also have a daily and a monthly quota (UTC day, UTC calendar month). Only metered routes count, one request each:

MeteredNot metered
GET /signals, GET /signals/{filingId}account, billing, delivery, keys, usage, saved views
GET /companies, GET /companies/{issuerId}POST /stream/ticket
GET /leaderboardsignals pushed on an open stream
opening the live stream (once per connection)anything done with the sandbox key

Sessions, the live key and named keys all count. The API reference marks each operation with x-metered.

Every metered answer carries the state of the quotas your package has (only those it has):

HeaderMeaning
X-Quota-Limit-Dayrequests per UTC day
X-Quota-Remaining-Dayrequests left today
X-Quota-Reset-Daywhen the day's count starts again (Unix seconds)
X-Quota-Limit-Month, X-Quota-Remaining-Month, X-Quota-Reset-Monththe same for the calendar month

Over a quota the answer is a 429 with a code and Retry-After in seconds until the reset:

Code
HTTP/1.1 429 Too Many Requests Retry-After: 41230 X-Quota-Limit-Day: 5000 X-Quota-Remaining-Day: 0 X-Quota-Reset-Day: 1762819200 { "error": "the daily request quota of 5000 is used up; it resets at 2026-11-11T00:00:00.000Z", "code": "quota_day_exceeded" }

Counting is exact: parallel requests cannot pass a quota together, and a refused request is not counted. GET /api/v1/customer/usage (and the portal's Usage page) shows today and this month against the quotas, refusals, and requests per day and per endpoint for the last 30 days.

Handling 429 well

  1. Read Retry-After and wait at least that long before the next request of that kind.
  2. For quota_day_exceeded and quota_month_exceeded, stop the job until the reset; retrying sooner only gets the same answer.
  3. Watch X-Quota-Remaining-Day and slow down before you reach zero.
  4. Prefer webhooks or the stream over polling: pushed signals cost nothing.
JavascriptCode
async function getWithRetry(url, init, attempts = 3) { for (let i = 0; ; i++) { const res = await fetch(url, init); if (res.status !== 429 || i + 1 >= attempts) return res; const body = await res.clone().json().catch(() => ({})); if (body.code === "quota_day_exceeded" || body.code === "quota_month_exceeded") return res; // wait for the reset const wait = Number(res.headers.get("Retry-After") ?? "60"); await new Promise((resolve) => setTimeout(resolve, wait * 1000)); } }

Other limits

WhatLimitAnswer
Page size (limit)1–200 (leaderboard 1–100)400
Named API keys20 active per account409 api_key_limit
Saved views50 per account409 saved_view_limit
Open streams5 per account429 stream_limit, Retry-After: 30
Stream client messages20 per 10 seconds, 4 KiB eachclose 1008
Sign-in8 wrong passwords per address and place, 15 minutes429 throttled
Push test5 per hour429
Chatper package, per month and per minute429 chat_quota_exceeded, chat_rate_limited
Followed companies, alert rulesper package; 20 rules409 follow_limit, rule_limit

Errors

Every error is JSON with a human sentence in error and, where your code may want to branch, a stable code:

JSONCode
{ "error": "this API key does not have the signals:read scope", "code": "key_scope" }

Branch on the status and code, never on the wording of error.

StatuscodeMeaning
400(none)A parameter or body field is invalid; error names it
401(none)No credential, or not a valid one (error: "unauthorized")
401two_factor_requiredThe session waits for the 2FA code
401code_invalid, token_invalidA wrong 2FA code, or a used or expired mailed link
402checkoutSign-up payment not finished
402canceledThe subscription ended
402payment_overdueA payment failed and the grace period (7 days by default) is over
402subscription_expiredA paid period ended without renewal
403(error: "paused")The account is suspended; contact RiskPilot
403sandbox_read_onlyThe sandbox key on a route other than the signals routes
403key_not_allowedA named key on a route that is not a data route
403key_scopeA named key without the scope
403session_requiredA route that needs a signed-in person, called with a key
403role_forbiddenA team member's role does not allow it
403two_factor_setup_requiredThe package requires 2FA and the person has none
403email_unverifiedSign-in before the address was confirmed
404(none)Not found, or outside your package (the two look the same)
409variousA limit or a state, for example api_key_limit, follow_limit, ticket_closed
429(none)Requests per minute; Retry-After: 60
429quota_day_exceeded, quota_month_exceededA quota is used up; Retry-After to the reset
429stream_limit, throttled, chat_rate_limited, chat_quota_exceededOther limits
502chat_model_failed and othersAn upstream service (payments, the chat model) failed
503stream_off, stream_busy, push_unavailable, chat_unavailableA feature is off or busy right now

While billing does not allow access, the billing and account routes stay open (GET /customer/billing shows access and, for past_due, graceUntil), so an app can send the person to pay.

Every answer carries an X-Request-Id header; quote it when you contact support.

Last modified on