# API keys (/docs/api/api-keys)



An API key acts for one organization (workspace) and every brand in it. Keys start with `rcl_`.

## Create a key [#create-a-key]

. Open **Settings → API keys**.
. Enter a name, choose the access, and choose when it expires.
. Copy the key. It is shown once; Recall stores only a hash of it.

Only workspace owners and admins can create and revoke keys. Members can see the list.

| Access         | Allows                                                                                  |
| -------------- | --------------------------------------------------------------------------------------- |
| Read           | Every read tool on the [MCP server](/docs/api/mcp) and the `GET` endpoints listed below |
| Read and write | Read, plus adding prompts (`create_prompts`, `POST /api/v1/prompts`)                    |

## Use a key [#use-a-key]

Send it as a bearer token:

```http
Authorization: Bearer rcl_YOUR_KEY
```

```bash
curl https://app.dorecall.com/api/v1/brands \
  -H "Authorization: Bearer rcl_YOUR_KEY"
```

A key sees only its own organization's data. A brand, prompt or competitor from another organization returns `404`, the same as one that does not exist.

### REST endpoints that accept organization keys [#rest-endpoints-that-accept-organization-keys]

| Method | Path                                                                                   | Access         |
| ------ | -------------------------------------------------------------------------------------- | -------------- |
| `GET`  | `/api/v1/brands`, `/api/v1/brands/{brandId}`                                           | Read           |
| `GET`  | `/api/v1/competitors`, `/api/v1/competitors/{competitorId}`                            | Read           |
| `GET`  | `/api/v1/prompts`, `/api/v1/prompts/{promptId}`, `/api/v1/prompts/{promptId}/snapshot` | Read           |
| `POST` | `/api/v1/prompts`                                                                      | Read and write |

Other `/api/v1` endpoints return `403` for organization keys.

## Revoke a key [#revoke-a-key]

In **Settings → API keys**, choose **Revoke**. The key stops working on its next request. Expired and revoked keys stay in the list for reference.

## Limits and errors [#limits-and-errors]

| Status | Meaning                                                                    |
| ------ | -------------------------------------------------------------------------- |
| `401`  | Missing, unknown, expired or revoked key                                   |
| `403`  | The key lacks the scope, or the endpoint does not accept organization keys |
| `429`  | More than 600 requests a minute from one key; see `Retry-After`            |

API keys are not available on the read-only demo.
