Skip to content

Rate Limits

Rate limits protect sign-in and the public ingest endpoints. They are counted per client IP address over a sliding one-minute window, and they are the same on every plan. A few CloudEvents endpoints (YipYap Cloud only) are counted per organization instead.

EndpointLimitCounted per
Sign-in and account recovery: POST /api/v1/auth/login and the endpoints listed below10/min, shared by the groupIP
POST /api/v1/auth/mfa/challenge10/minIP
POST /api/v1/auth/mfa/webauthn/begin and /finish10/min, sharedIP
POST /api/v1/auth/passkey/login/begin and /finish10/min, sharedIP
POST /api/v1/heartbeat/{monitorID}?token=...60/minIP
POST /api/v1/events100/minIP
POST /api/v1/cloudevents/ingest/{token}60/minIP
GET, POST /api/v1/support/survey20/min, sharedIP
GET /api/v1/cloudevents/poll60/minorganization
GET /api/v1/cloudevents/stream10 open streamsorganization

These endpoints share one 10/min counter per IP, all under POST /api/v1/auth/:

  • login
  • register
  • verify-email
  • resend-verification
  • forgot-password
  • reset-password
  • confirm-delete
  • recover-account
  • confirm-recover

“Shared” means the endpoints in a row draw from one counter. For example, five failed logins and five password-reset requests from the same IP in one minute use up the sign-in limit.

The MFA, passkey, survey and CloudEvents rows apply to YipYap Cloud only, because self-hosted YipYap FOSS does not have those endpoints. FOSS applies the rest of the table with the same values.

Other endpoints, including the authenticated resource endpoints (/monitors, /alerts and so on), have no request rate limit today. Keep clients well behaved anyway: page with limit=100, cache what you can, and back off on 429 and 5xx.

The client IP is the address that connects to YipYap. When YipYap runs behind a proxy it trusts, it uses the client address the proxy forwards instead. IPv6 addresses are grouped by /64, so every address in one /64 shares a counter.

Many heartbeat or event senders behind one NAT gateway share that gateway’s counter. If they can exceed 60 heartbeats or 100 events a minute together, spread them over time or send from more than one address.

Every response from a rate-limited endpoint carries:

X-RateLimit-Limit: 60
X-RateLimit-Remaining: 37
X-RateLimit-Reset: 1777052580

X-RateLimit-Reset is a Unix timestamp in seconds: the end of the current one-minute window.

When the limit is reached, YipYap returns 429 Too Many Requests with Retry-After: 60 and a plain-text body, Too Many Requests. This body is not JSON.

/cloudevents/poll and /cloudevents/stream are part of YipYap Cloud and need a Pro or Enterprise plan. A Free organization gets 403 with "upgrade_required": true, not 429.

The stream cap is a count of open connections, not a rate. Opening an eleventh stream for one organization returns 429 with Retry-After: 30 and a JSON body ({"error": "stream concurrency cap exceeded for org"}). Streams that are already open are not affected.

Poll and stream also share a cap of 16 distinct filter sets per organization. A request with a new filter set past that cap returns 429 with Retry-After: 60. A filter set that has not been polled or streamed for 5 minutes is released.

Replies that flow back into YipYap (claim, acknowledge, suppress, escalate, route and so on) are capped per organization and per reply type. The default is 60 replies a minute for each type. A CloudEvents HTTP channel can set a different cap with accepted_replies.rate_limit in its config. A reply over the cap is rejected and recorded as rejected:rate_limited in the reply audit log.

See Knative Eventing: Bidirectional Alerts for the reply types.

  1. Wait for Retry-After. It is in seconds.
  2. Add jitter. After the wait, sleep a random extra 0 to 500 ms so many clients do not retry at the same moment.
  3. Cap retries. Three attempts per request is plenty. A 429 that keeps coming back means the client sends too fast for the limit, not bad luck.
  4. Batch where you can. CloudEvents ingest takes up to 256 events in one request. Use it for bulk work instead of one request per event.