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

# Authentication and scopes

> Authenticate requests and grant the scopes your integration needs.

Send one `Authorization: Bearer <key>` header. The `Bearer` scheme is case-insensitive. Every `/v1` request needs an API key. Session cookies are never accepted.

A key starts with `rk_live_` or `rk_test_`, followed by its key id and secret. A test key selects sandbox. A live key requires B1 business verification by default. If live access is unavailable at your effective tier, the API returns `403 tier_limit_exceeded`.

## Create and rotate keys

An owner, admin or developer can create keys for the business. Developers can grant `catalog:read` and `wallet:read`. Ask an owner or admin for broader scopes. The current creation limit is 20 active keys per business per mode. Rotation can add a replacement key during the grace period.

> [!NOTE]
>
> The Recadd business dashboard is not open yet. Recadd will tell you when you can create keys and register webhook endpoints.

You see the key secret once, at creation or rotation. Store it securely when it appears. An owner, admin or developer can revoke a key for the business. Those roles can also rotate a key, with developers limited to keys that carry only their grantable scopes. On rotation, the old key has a grace period of 0 to 168 hours, with a default of 24 hours. Revocation takes effect on the next request.

> [!NOTE]
>
> The Recadd business dashboard is not open yet. Recadd will tell you when you can create keys and register webhook endpoints.

A key can have an IP allowlist with 1 to 20 public addresses or CIDR blocks. IPv4 blocks must be `/16` or narrower and IPv6 blocks `/32` or narrower. Private and documentation ranges are refused.

> [!WARNING]
>
> Use only a key beginning with `rk_test_` in the playground. Mintlify's servers receive it. If you entered a live key, rotate it. An allowlisted key returns `403 ip_not_allowed`. The per-address rate limit is shared across playground users.

## Authentication errors

A missing, malformed, unknown, revoked or expired key receives `401 invalid_api_key`. With a valid key, the API checks the IP allowlist, the tier's live permission, then the scope. The first applicable refusal is `403 ip_not_allowed`, `403 tier_limit_exceeded` or `403 insufficient_scope`. The scope refusal includes `required_scope`. The key-guessing throttle returns `429 rate_limited`.

## Scopes by operation

| Scope | Operations |
| - | - |
| `catalog:read` | `GET /v1/products`, `GET /v1/products/{id}` |
| `fx:write` | `GET /v1/fx/conversions/{id}`, `POST /v1/fx/conversions`, `POST /v1/fx/conversions/{id}/cancel`, `POST /v1/fx/quotes` |
| `orders:read` | `GET /v1/orders`, `GET /v1/orders/{id}`, `GET /v1/orders/{id}/cards`, `GET /v1/webhook-events/{id}` |
| `orders:read_codes` | `POST /v1/orders/{id}/cards/reveal` |
| `orders:write` | `POST /v1/orders`, `POST /v1/orders/{id}/cancel` |
| `wallet:read` | `GET /v1/wallets`, `GET /v1/wallets/{currency}/transactions` |


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