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

# API keys

> Bearer keys for the REST API and MCP.

An API key is a Bearer token for the Tallwatch REST API. Scripts, CI, and MCP clients send it on every request. Browser sessions use a cookie instead, so you do not need a key to use the app UI.

Use a key when your code should call the API. Use [MCP](https://docs.tallwatch.com/integrations/mcp.md) (Connect Cursor, VS Code, Claude, and other MCP clients.) when an AI agent should call that same API on your behalf. MCP does not replace a key; the server authenticates with one. Pick scopes for the job: `read` to inspect, `write` to change monitors or incidents.

## Create a key

Create a key in [**Settings → API keys**](https://app.tallwatch.com/settings/api-keys) (Create and revoke API keys in the Tallwatch app.). The `tw_live_…` secret is shown **once**. Copy it, or **Copy prompt** to paste MCP setup (a URL plus your key) into Cursor, VS Code, Claude, Codex, Devin, Gemini, Cline, or Continue. If you lose it, revoke and create a new one.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl https://api.tallwatch.com/api/v1/monitors \
  -H "Authorization: Bearer tw_live_your_key_here"
```

Send the secret as `Authorization: Bearer`. Keep it out of git and out of query strings. **Copy prompt** writes the MCP client config for you. Use curl (or any HTTP client) when the caller is your own code.

## Scopes

A key can have `read`, `write`, or both. The key cannot do more than the scopes you gave it. Scopes do not change per request.

| Scope | What it allows |
| - | - |
| `read` | List and fetch monitors, incidents, status pages, alerts |
| `write` | Create/update/delete monitors; ack or resolve incidents |

Give a key only the scopes it needs. A script that lists monitors or incidents needs `read`. An agent that creates or pauses monitors, or acknowledges or resolves incidents, needs `write` as well. Missing scope returns `403`. The request is authenticated; that action is not allowed for this key.

Revoke from the same page. The secret stops working immediately and the key disappears from the list. Create a new key if you still need access. Losing the secret is the same case: you cannot view it again.

## Pagination and rate limits

List endpoints paginate with `limit` (1–15, default 15) and `next_cursor`. Pass the cursor from the previous response until it is absent.

[Rate limits](https://docs.tallwatch.com/api/rate-limits.md) (Quotas for the REST API and MCP.) are **300 reads / min** and **60 writes / min** per key (`429` with `Retry-After` and `docs_url`). Reads are `GET` and `HEAD`. Writes are `POST`, `PUT`, `PATCH`, and `DELETE`. MCP shares these budgets because it uses the same key against the same API.

## Related

OpenAPI: `https://api.tallwatch.com/api/v1/openapi.json`.

Status-page create/edit and incident comments are app-only today. Agents can write a post-mortem with MCP `add_postmortem`. For agents, see [MCP](https://docs.tallwatch.com/integrations/mcp.md) (Connect Cursor, VS Code, Claude, and other MCP clients.). For shell and CI, see [CLI](https://docs.tallwatch.com/integrations/cli.md) (Install the Tallwatch CLI and manage monitors from the shell.).


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