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

# Rate Limits

> How rate limiting works and how to handle it.

Rate limiting may be applied to ensure platform stability. If you exceed the limit for your API key, you'll receive a `429` response.

```json theme={null}
{
  "success": false,
  "error": {
    "code": 429,
    "timestamp": "2024-01-01T00:00:00.000Z",
    "message": "Rate limit exceeded",
    "details": "error/rate_limit_exceeded"
  }
}
```

## Handling Rate Limits

If you receive a `429` response, back off and retry after a short delay. Use exponential backoff to avoid hitting the limit again immediately.

If you're using the [TypeScript SDK](https://github.com/legitmark-eng/legitmark-typescript), the `withRetry()` utility handles this automatically:

```typescript theme={null}
import { withRetry } from 'legitmark';

const result = await withRetry(() => legitmark.sr.create(request));
```

If you have specific throughput requirements, contact [accounts@legitmark.com](mailto:accounts@legitmark.com).
