Skip to Content
Won.dev

Rate limits

A key can send 20 requests back to back, then has to pause for a second. Every response says where the key stands.

An API key can send 20 requests back to back. Once it has been quiet for 1 second, the count starts over. A request beyond that, before the pause, fails with 429 rate_limited: wait the seconds in Retry-After and send it again.

The limit belongs to the key. The REST API and the MCP server count against the same one, and test keys have it too.

Headers

Every response to a request with a valid key says where the key stands:

HeaderWhat it says
RateLimit-LimitRequests the key can send back to back: 20.
RateLimit-RemainingHow many more it can send before it has to pause.
RateLimit-ResetSeconds of quiet after which the count starts over.
Retry-AfterOnly on a 429: the seconds to wait before the next request.
HTTP/2 200
RateLimit-Limit: 20
RateLimit-Remaining: 17
RateLimit-Reset: 1
X-Request-Id: req_9b2f6c1e0d3a4f5b8c7e6d5a4b3c2f1e

When the limit is hit

HTTP/2 429
Retry-After: 1
RateLimit-Limit: 20
RateLimit-Remaining: 0
RateLimit-Reset: 1
{
  "error": {
    "code": "rate_limited",
    "message": "This key sent 20 requests without a 1-second pause.",
    "hint": "Wait `retry_after` seconds, then retry with the same Idempotency-Key.",
    "docs_url": "https://won.dev/docs/errors#rate_limited",
    "retry_after": 1,
    "request_id": "req_2c7d5e4b3a2f1e0d6f1c0d3a9b8e4f2a"
  }
}

A refused request did nothing and cost nothing, so sending it again is safe.

Staying under it

  • When RateLimit-Remaining reaches 0, pause for RateLimit-Reset seconds before the next request.
  • On a 429, wait Retry-After seconds and send the same request again, with the same Idempotency-Key if it had one.
  • Ask for larger pages instead of more requests: most lists take a limit of up to 100.
  • To follow cold email, a webhook costs no requests at all. If you poll GET /events instead, every few minutes is enough.

Other limits

CodeStatusWhen
request_in_progress409The same request is still running. Wait retry_after seconds and send it again.
upstream_unavailable503A data source behind the endpoint is briefly unavailable. Wait retry_after seconds. You are not charged.

Some endpoints also cap what one call can hold, such as the recipients of a campaign. Each one says so in its parameters.

On this page