> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcluster.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Rate limits

> 120 requests per minute per workspace, and when to call again.

A workspace can make **120 requests per minute**, shared across all of its keys.

Over the limit, requests return `429 rate_limited` with a `Retry-After` header: the number of seconds to wait.

```json theme={null}
{ "error": { "code": "rate_limited", "message": "Rate limit of 120 requests per minute exceeded.", "request_id": "req_…" } }
```

## Retrying

* On `429` or `503`, wait for `Retry-After` seconds, then retry.
* On `500`, retry with a growing delay, such as 1, 2, 4 and 8 seconds, and add some randomness.
* Do not retry other `4xx` responses. The request needs to change first. The exception is a `409 conflict` saying a request with your `Idempotency-Key` is still in progress: retry that one unchanged, with the same key.
* Before retrying a `POST`, read [Idempotency and safe retries](https://docs.getcluster.ai/idempotency.md).

The limit is a guard, not a guarantee: if our counter is unavailable, requests are let through uncounted rather than refused.

Individual endpoints may apply further limits in future. Always honour `Retry-After`.

## Waiting for a long-running operation

Some operations take minutes. The API starts them and returns `202 Accepted` without waiting; the `Location` header is the URL to read for the result.

While the operation is running, reading that URL returns a `Retry-After` header. Wait that many seconds before reading again. When a `200` response comes without the header, the operation has finished. An error response without it says nothing about the operation: handle the error first.

A `status` field is open-ended: new values can appear. Treat a status you do not know as "still running" while `Retry-After` is present.

At launch one operation works this way: an inbox placement test, which takes about 15 minutes.

```bash theme={null}
curl -i -X POST https://api.getcluster.ai/v1/email/placement-tests \
  -H "Authorization: Bearer $CLUSTER_API_KEY" \
  -H "Idempotency-Key: placement-2026-12-01-a" \
  -H "Content-Type: application/json" \
  -d '{"sender_ids": ["…"], "subject": "Quick question", "body": "Hi there,\nDo you have a minute this week?"}'

curl -i https://api.getcluster.ai/v1/email/placement-tests/$TEST_ID \
  -H "Authorization: Bearer $CLUSTER_API_KEY"
```

Get `sender_ids` from `GET /sender-schedules?channel=EMAIL`. When the test has finished, `summary` holds the result.

Webhooks are planned. Until then, polling with `Retry-After` is the way to wait.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.