Core concepts

Rate limits

Each key can make 120 requests a minute, and every response says how many are left.

Limits

LimitApplies to
120 requests a minuteEach API key, and each AI app connected with OAuth, on every endpoint and MCP tool. The minute is a fixed window that starts on the minute.
300 requests a minuteEach Sublaunch, all its keys and AI apps together.
10 webhook tests a minute, 200 a dayEach Sublaunch, on Send a test event. Over it, 429 rate_limit_exceeded.
30 webhook endpoint changes an hourEach Sublaunch, when you create an endpoint, give it a new URL or turn it on or off. Over it, 429 rate_limit_exceeded.

Rate limit headers

Every response carries the state of the window closest to its limit, the key's or the Sublaunch's.

HeaderMeaning
RateLimit-LimitRequests allowed in a window, 120 for a key.
RateLimit-RemainingRequests left in the current window.
RateLimit-ResetSeconds until the window starts again.
Retry-AfterOn a 429 only, seconds to wait before trying again.
Headers
HTTP/1.1 429 Too Many Requests
Content-Type: application/json
RateLimit-Limit: 120
RateLimit-Remaining: 0
RateLimit-Reset: 17
Retry-After: 17
Request-Id: req_3Vb8YzC1dF6hJ0sWq4Lm9KxT
Response429
{
  "error": {
    "type": "rate_limit_error",
    "code": "rate_limit_exceeded",
    "message": "Too many requests: 120 per minute per API key. Retry after 17 s.",
    "param": null,
    "request_id": "req_3Vb8YzC1dF6hJ0sWq4Lm9KxT",
    "doc_url": "https://sublaunch.com/docs/errors#rate_limit_exceeded"
  }
}

Handle a 429

Wait for Retry-After seconds, then send the same request again.

  • Spread big jobs over time instead of sending them in bursts.
  • Read RateLimit-Remaining to slow down before you reach zero.
  • Give each tool its own key. They still share the Sublaunch's 300 requests a minute.
  • Webhooks push events to you, so you never spend requests polling for new members or payments.
# curl waits for Retry-After, then tries again
curl --retry 5 https://api.sublaunch.com/v1/members \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"