# Limits and batching

> One request carries up to 500 events and 8 MB. Each company may send 600 requests and 30,000 events a minute across all its keys, and test mode has a budget of its own. Over either, the answer is `429` with `Retry-After`. Old events are welcome; an event more than 5 minutes in the future is refused.

Source: https://withbaker.com/docs/limits · Updated 2026-11-23

## Rate limits and batch size

| Limit | Value | Over it |
| --- | --- | --- |
| Events per request | 500 | `413 batch_too_large` |
| Body size | 8 MB | `413 batch_too_large` |
| Requests per minute, per company | 600 | `429 rate_limited`, with `Retry-After` |
| Events per minute, per company | 30,000 | `429 rate_limited`, with `Retry-After` |
| `event_name` | 80 characters | `invalid_name` |
| `event_id` | 1 to 128 characters | `invalid_event_id` |
| `event_time` in the future | 5 minutes | `invalid_timestamp` |
| `event_time` in the past | No limit |  |
| `items` per event | 250 | The first ones are kept |
| Item id | 255 characters | `invalid_items` |
| `quantity` | 1 to 1,000,000 | `invalid_items` |
| Public test key | 20 requests a minute per caller and 1 MB per request, its own budget, never a company's | `429 rate_limited`, with `Retry-After` |

## Batch your requests

Two budgets refill as token buckets: 600 requests a minute, so a webhook that sends one event at a time is answered even when a bulk edit in your CRM fires hundreds at once, and 30,000 events a minute, which bounds the volume however you batch. A short burst goes through; a sustained one gets a `429` with `Retry-After`. For a backfill or a busy stream, collect events for a few seconds, or a few hundred at a time, and send them together.

The limits are per company, shared by every key: a second key does not double them. Requests with `X-Baker-Mode: test` have their own budget of the same size, so a rehearsal never slows your live events.

## Backfill historical events

1. Give every event its own `event_time`, when it really happened, and a stable `event_id`.
2. Send 500 events per request, one request at a time.
3. On `429`, wait for `Retry-After` and carry on. On a timeout, resend the same batch: the ids make it count once.
4. Rehearse the first batch with `X-Baker-Mode: test` to read the rejections before anything is stored.

That is 30,000 events a minute, a full batch every second or so: a year of a busy CRM in minutes. Need more for a one-off load? Write to support@withbaker.com.

## Need help?

Write to support@withbaker.com: a person answers within 24 hours. The OpenAPI description is at https://withbaker.com/docs/openapi.json.
