Limits keep the API fast for everyone and protect your cloud spend. They count per API client.
Per-minute limit
Each client has a limit on calls per minute, shared by every API it calls. The default is 60 calls a minute; your plan can set a different limit.
Hourly quotas on costly calls
Calls that create cloud resources or many records have their own hourly quota, counted in fixed windows on the UTC hour. Only successful calls count.
| Call | Quota per hour |
|---|---|
Create activation codes (POST /v1/labs/{labId}/codes) | 60 |
Archive a lab (POST /v1/labs/{labId}/archive) | 30 |
| Extend a deployment | 120 |
| Start, stop or restart a lab's machines | 120 |
| Create a VM lab | 20 |
| Invite users to a VM lab | 30 |
Over the limit
The API answers 429 Too Many Requests with a Retry-After header (seconds to wait) and problem details:
{
"status": 429,
"title": "Too many calls. Wait for Retry-After seconds.",
"code": "rate-limited"
}For an hourly quota, Retry-After is the time to the next UTC hour.
Stay under the limits
- Cache what changes rarely, such as templates and lab lists.
- Page with
limit=100instead of many small pages. - On a 429, wait for
Retry-After, then retry with backoff. - Spread bulk work, such as code creation, over time.