# Rate limits

Tapt limits API requests to keep the service available for all organisations. Pace your requests and follow the response headers when you need to retry.

Limits apply to access-token requests, contact reads, and API client management. Some capacity is shared across your organisation's integrations. Don't assume each client has a separate allowance or that a new access token resets it.

## Handle a rate-limit response

If you reach a limit, the API returns `429 Too Many Requests` with this body:

```json
{
  "error": "rate_limit_exceeded"
}
```

1. Read the `Retry-After` response header. Its value is the number of seconds to wait.
2. Pause requests to the affected endpoint for at least that delay.
3. Retry at a lower request rate. If you receive another `429`, follow the new delay.

Don't retry immediately or send parallel retries. Other activity can use shared capacity while you wait.

## Read the response headers

Contact requests and client-management changes also return these headers:

| Header                | Meaning                                                            |
| --------------------- | ------------------------------------------------------------------ |
| `RateLimit-Limit`     | Request allowance for the reported limit                           |
| `RateLimit-Remaining` | Requests remaining under that limit                                |
| `RateLimit-Reset`     | Seconds until capacity under that limit starts to become available |
| `Retry-After`         | Minimum delay before retrying a rate-limited request               |

`RateLimit-Reset` is a delay, not a Unix timestamp. The headers don't describe every shared limit, so a positive remaining count doesn't guarantee the next request will succeed. Use `Retry-After` on a `429` response rather than calculating your own retry time.

If the API returns `503 Service Unavailable`, retry with progressively longer delays. Token endpoints can return `temporarily_unavailable`; contact and client-management endpoints can return `rate_limit_unavailable`.

## Reduce unnecessary requests

- [Cache access tokens](/docs/introduction#request-an-access-token) until near expiry. Don't request a token for each API call.
- [Paginate contact reads](/docs/introduction#read-contacts) and spread imports or reconciliation jobs over time.
- [Use webhooks](/docs/webhook-delivery) for contact changes instead of frequent polling.
- Coordinate scheduled jobs across your organisation's integrations so they don't all start at once.

If normal use repeatedly hits limits, contact support@tapt.io with the endpoint, response status, and approximate request times. Don't include access tokens, OAuth secrets, or webhook signing keys.

Existing Zapier connections keep their current authentication flow. You don't need to replace or reconnect them.
