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

# API rate limits

> How Elastly limits requests per API key and per workspace, where to see each key's limit and refusals, and how to back off after a 429 response.

Elastly limits how many requests reach a workspace each second so one busy system cannot slow pricing for the rest. This page covers how the limits apply, where to see them and how to respond when a request is refused.

## How limits apply

Every request to the API counts against two limits at once:

* **Per key**: the requests per second one API key may make.
* **Per workspace**: the requests per second all keys of the workspace may make together.

Both limits come from the workspace plan. A request over either limit is refused.

## See the limit for each key

Go to **Manage** > **API & webhooks** and select **Open keys**. The **Limit** column shows the per-key limit in requests per second. The **Refused, 7 days** column counts calls from the key refused by the rate limit in the last 7 days.

## When a request is refused

A refused request returns `429` with `rate_limited` and a `Retry-After` header that gives the seconds to wait.

```http theme={null}
HTTP/1.1 429 Too Many Requests
Retry-After: 1
Content-Type: application/json

{"error":"rate_limited","requestId":"9a7c2e41-6b3d-4f18-a0c5-2d8e1f7b6c90"}
```

Wait for at least the `Retry-After` value before the next attempt, then retry the same request. For a write, send the same `Idempotency-Key` so the retry cannot act twice. See [Idempotency](/docs/developers/idempotency.md).

Repeated requests with a missing or invalid API key from one source are also refused with `429` and `rate_limited` for a short time.

## Other limits

| Limit | Value |
| - | - |
| Request body of a price or quote request | 1 MiB |
| Records in one create or update request | 100 |
| Request body of a create or update request | 2 MiB |
| One record | 1 MiB |
| File of a bulk import | 100 MiB |

A body over its limit is refused with `413`. See [Sending data](/docs/developers/data-ingestion.md) for the bulk import limits.

The [MCP server](/docs/developers/mcp.md) has its own limits per connected app and per workspace.


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