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

# Requests

> Request formats, idempotency, and rate limiting for the Stora Public API.

## Request formats

The API supports only **JSON** requests. You must specify the format using the `Content-Type` header.

```bash theme={null}
curl -X POST "https://public-api.stora.co/2025-09/contacts" \
 -H 'accept: application/json' \
 -H 'content-type: application/json' \
 -H 'authorization: Bearer ACCESS_TOKEN' \
 -d '{"full_name": "John Doe"}'
```

## Idempotent requests

The API supports [idempotency](https://developer.mozilla.org/en-US/docs/Glossary/Idempotent) for `POST` requests to versioned endpoints, such as `/2025-09/contacts`. OAuth 2 endpoints and `PATCH` and `DELETE` requests ignore the `Idempotency-Key` header.

To make an idempotent `POST` request, provide an additional `Idempotency-Key: <key>` header. The key should be a unique value — a generated [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) is a good choice.

```bash theme={null}
curl -X POST "https://public-api.stora.co/2025-09/contacts" \
 -H 'accept: application/json' \
 -H 'content-type: application/json' \
 -H 'authorization: Bearer ACCESS_TOKEN' \
 -H 'idempotency-key: UNIQUE_KEY' \
 -d '{"full_name": "John Doe"}'
```

### How it works

When a request with a new idempotency key succeeds, the API stores its response for 24 hours.

If you send the same key again within that period, the API returns the stored response, including its original `request_id`, without processing the request again. The API doesn't store failed responses, so you can retry a failed request with the same key.

If you send the same key while the first request is still being processed, the API returns `409 Conflict` with the code [`idempotency_conflict`](https://docs.stora.co/2025-09/guides/errors#idempotency_conflict). Wait for the first request to finish, then retry with the same key.

Keys are scoped to your operator, aren't case-sensitive, and ignore leading and trailing whitespace. The API doesn't compare the request body or path, so a key reused for a different request returns the first request's response. Use a new key for each request.

After 24 hours, the stored response expires, and the next request with that key is processed as 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**

Limits apply per operator, not per access token or application. All integrations accessing the same operator share its quota; different operators have separate quotas.

These limits may vary based on the operator's subscription plan or specific agreements with Stora.

### Handling rate limits

If you exceed the rate limit, the API responds with a `429 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 |

The error code is [`too_many_requests`](https://docs.stora.co/2025-09/guides/errors#too_many_requests).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.