Request formats
The API supports only JSON requests. You must specify the format using theContent-Type header.
Idempotent requests
The API supports idempotency for anyPOST request.
To make an idempotent POST request, provide an additional Idempotency-Key: <key> header. The key should be a unique value — a generated UUID is a good choice.
How it works
When you make a request with a new idempotency key, the API stores the response status code and body, whether the request succeeds or fails, for 24 hours. If you send additional requests with the same key within that period, the API will return the exact same response, including any400 or 500 errors.
After 24 hours, the stored response is invalidated, and the next request with that key will be processed and stored as if it were new.
Rate limiting
The API uses rate limiting to ensure fair usage and maintain performance. The default rate limit is:- 10 requests per second
- 60 requests per minute
Handling rate limits
If you exceed the rate limit, the API responds with a429 Too Many Requests status code. The response includes headers with your current rate limit status:
| Header | Description |
|---|---|
RateLimit-Limit | The maximum number of requests allowed in the current time window |
RateLimit-Reset | The time at which the current rate limit window resets in UTC epoch seconds |