Core concepts
Rate limits
Each key can make 120 requests a minute, and every response says how many are left.
Limits
| Limit | Applies to |
|---|---|
| 120 requests a minute | Each 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 minute | Each Sublaunch, all its keys and AI apps together. |
| 10 webhook tests a minute, 200 a day | Each Sublaunch, on Send a test event. Over it, 429 rate_limit_exceeded. |
| 30 webhook endpoint changes an hour | Each 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.
| Header | Meaning |
|---|---|
RateLimit-Limit | Requests allowed in a window, 120 for a key. |
RateLimit-Remaining | Requests left in the current window. |
RateLimit-Reset | Seconds until the window starts again. |
Retry-After | On 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_3Vb8YzC1dF6hJ0sWq4Lm9KxTResponse429
{
"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-Remainingto 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"