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

# Rate limits

> Which actions are rate limited and how to handle 429 responses.

Every API key has a per-minute request budget set by your workspace's plan. Separate limits protect actions that send email, contact third parties or can be abused. When a limit is reached, the API answers `429 Too Many Requests` with the code `rate_limited` and a `Retry-After` header with the number of seconds to wait.

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

{ "error": { "code": "rate_limited" } }
```

## Per-key limit

Each API key can make a number of requests per minute that depends on the plan of its workspace. Keys don't share their budget: a script that spends its key's budget doesn't slow down another key of the same workspace.

| Plan | Requests per minute, per API key |
| - | - |
| Free | 60 |
| Starter | 60 |
| Pro | 120 |
| Scale | 120 |

During the 14-day trial your workspace is on Scale, so keys get 120 requests per minute; if the trial ends without a subscription, the Free budget applies from the next request. Self-hosted installations use 120 requests per minute unless the operator sets `API_REQUESTS_PER_MINUTE`.

Every request authenticated with a key counts, reads and writes alike, including requests that fail validation. Requests rejected before the key is accepted (a missing, unknown or revoked key, a key without the required scope, or a restricted workspace) don't count.

Every response to an authenticated request reports the key's budget:

| Header | Meaning |
| - | - |
| `X-RateLimit-Limit` | Requests this key can make per minute |
| `X-RateLimit-Remaining` | Requests left for this key in the current minute (`0` on a `429`) |
| `Retry-After` | On a `429` only: seconds until the current minute ends |

```http theme={null}
HTTP/1.1 429 Too Many Requests
Retry-After: 23
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 0
Content-Type: application/json

{ "error": { "code": "rate_limited" } }
```

### What doesn't count

* The [MCP server](https://hebeat.com/docs/ai/introduction.md) has its own limit per connection and never spends an API key's budget.
* Imports and migrations from other tools run as internal jobs, not API calls.
* Alerts we send to your email, Discord or webhook channels.
* Heartbeat pings (`/ping/<token>`), limited per ping URL below.

## Limited actions

| Action | Limit |
| - | - |
| Sending a test notification (`POST /notification-channels/{channel_id}/test`) | 5 per minute per person, 10 per hour per channel and 30 per hour per workspace |
| Resending an email confirmation (`POST /notification-channels/{channel_id}/confirmation`) | 3 per hour per channel and 30 per hour per workspace |
| Every API request, authenticated or not (a ceiling on top of the per-key limit) | 1,200 per minute per client IP address |
| Heartbeat pings (`/ping/<token>`) | 60 per minute per ping URL |
| Alert emails | 300 per hour per workspace; extra alerts are skipped and shown in the channel's delivery log |

The per-address and heartbeat ping limits are enforced at the edge, per Cloudflare location, and can briefly allow a few requests above the number before they apply. The per-address limit is a flood guard: it is far above what an integration needs, and it is checked before your API key is.

## Sign-in and account routes

The sign-in, sign-up, password reset and email verification routes of the app are limited per route, like Laravel's `throttle` middleware. Every response of these routes reports its budget:

| Header | Meaning |
| - | - |
| `X-RateLimit-Limit` | Requests allowed in the current window |
| `X-RateLimit-Remaining` | Requests left in the current window (`0` on a `429`) |
| `Retry-After` | On a `429` only: seconds to wait before trying again |

```http theme={null}
HTTP/1.1 429 Too Many Requests
Retry-After: 45
X-RateLimit-Limit: 5
X-RateLimit-Remaining: 0
Content-Type: application/json

{ "error": { "code": "rate_limited" } }
```

| Action | Limit |
| - | - |
| Sign in | 5 failed attempts per minute per email and IP address (a successful sign-in resets them), and 50 attempts per hour per email |
| Create an account | 6 per minute and 20 per hour per IP address |
| Request a password reset link | 1 per minute and 5 per hour per email, and 6 per minute per IP address |
| Reset a password, confirm an email address | 6 per minute and 10 per 15 minutes per IP address |
| Resend the email confirmation | 6 per minute per person |
| Two-factor code at sign-in | 30 per 15 minutes per IP address, and 10 per 15 minutes per person |
| GitHub and Google sign-in callbacks | 20 per 15 minutes per IP address |

All of these also share a flood guard of 60 requests per minute per IP address, enforced at the edge. The answer is the same whether or not an account exists for the email.

## Handle 429 responses

* Wait for the number of seconds in `Retry-After` before retrying.
* Don't retry in a tight loop; add jitter when several workers share a key.
* Watch `X-RateLimit-Remaining` and slow down before it reaches `0`, instead of waiting for a `429`.
* Spread work across the minute rather than sending bursts; several workers that share one key share its budget.
* Avoid polling faster than your monitors' check frequency: results can't change faster than checks run.


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