# Rate limits

## Relay

Each API key may make **20 requests per second**, with bursts up to 40. Every authenticated response carries:

| Header | Meaning |
|---|---|
| `X-RateLimit-Limit` | Requests per second for this key (20). |
| `X-RateLimit-Remaining` | Requests left in the current burst. |

Over the limit Relay answers `429` with `Retry-After` in seconds. Test keys have the same limit, plus a cap of 200 test messages per 24 hours.

Need more? Several keys do not add up to a higher limit per shop on Meta's side, so write to [hello@vesperai.ch](mailto:hello@vesperai.ch) first.

## Meta's limits apply on top

Relay does not raise or count these; Meta enforces them per number or per business portfolio and answers with the codes in [Errors](/docs/errors).

- **Throughput**: coexistence numbers send at most 20 messages per second (code 130429).
- **Messaging limit**: how many different customers a portfolio may start conversations with per 24 hours. Starts at 250 and rises to 2,000 and more after business verification and good quality ([Meta](https://developers.facebook.com/docs/whatsapp/messaging-limits)).
- **Per-customer pacing**: many messages to the same customer in a short time fail with 131056.
- **Marketing**: Meta may hold back marketing messages per customer (131049).

For appointment reminders this rarely matters: a salon with 60 appointments a day is far below every limit.
