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

# Rate limits

> How many Developer API requests your account can make, and what to do when you reach the limit.

Two limits apply. Both count per account, not per API key.

| Limit | Applies to | Allowance |
| - | - | - |
| **General** | Every endpoint except the message-sending ones | 200 requests a minute, unless your plan allows more |
| **Message sending** | Endpoints that send WhatsApp messages | 8, 16 or 5,000 messages every 5 seconds, depending on your plan |

## General limit

Responses carry your current status:

| Header | Meaning |
| - | - |
| `X-RateLimit-Limit` | Requests allowed in the current window |
| `X-RateLimit-Remaining` | Requests left in the current window |
| `X-RateLimit-Reset` | When the window resets, as a date |

Over the limit, you get `429` with `X-RateLimit-Retry-After`, the number of seconds to wait:

```http theme={null}
HTTP/1.1 429 Too Many Requests
X-RateLimit-Limit: 200
X-RateLimit-Remaining: 0
X-RateLimit-Retry-After: 42

{"status": "RequestLimitHit", "message": "Account rate limit exceeded. Too many requests per minute."}
```

## Message-sending limit

Over the limit, you get `429` with `Retry-After`, the number of seconds to wait:

```http theme={null}
HTTP/1.1 429 Too Many Requests
Retry-After: 3
X-RateLimit-Limit: 8
X-RateLimit-Remaining: 0

{"status": "RequestLimitHit", "message": "Messaging rate limit exceeded for your plan. Limit is 8 messages per 5s."}
```

## Stay within the limits

* When you get `429`, wait the number of seconds in the retry header, then try again.
* To send many messages, use the bulk endpoints instead of one call per message.
* Use [webhooks](https://docs.gallabox.com/settings/webhooks.md) to hear about changes instead of polling for them.


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