# Phone-Check.app API authentication

The Phone-Check.app API and its MCP server authenticate with **API keys**. There is no OAuth flow.

## Get a key

1. Sign in at https://phone-check.app and open your workspace.
2. Go to **Settings → API keys** and create a key. Pick its permission (below) and, optionally, an expiry.
3. Copy the key when it is shown: it is displayed once. Treat it like a password.

A key belongs to one workspace. Every call made with it acts on that workspace only, as the member who created it.

## Use it

Send the key in the `x-api-key` header on every request:

```bash
curl -s https://api.phone-check.app/credit-usage/daily/list?workspaceId=<workspace id> -H 'x-api-key: <your key>'
```

MCP clients connect to `https://mcp.phone-check.app/mcp` (Streamable HTTP) with the same header.

## Permissions

| Permission | Can |
| ---------- | --- |
| `read`   | Call the product lookups and read the workspace's usage and activity. |
| `write`  | Everything `read` can, plus make changes, like a workspace member. |
| `admin`  | Everything the key's owner can in the workspace, including managing API keys. |

A request a key may not make answers `403` with an error code such as `WORKSPACE_ACCESS_DENIED`.

## Limits

- Each key may make `600` requests a minute; past it the API answers `429` with `Retry-After` and `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset` headers. Wait `Retry-After` seconds and retry.
- Charged calls use the workspace's Phone-Check.app credits; at zero the API answers `402 INSUFFICIENT_CREDITS` (add credits or a plan under Billing).
- Errors are JSON: `{ "error": "UPPER_SNAKE_CODE", "message": "..." }`; validation errors add `issues`.

## More

- OpenAPI: https://api.phone-check.app/developers/openapi.json
- Reference: https://api.phone-check.app/developers/reference
- API catalog: https://api.phone-check.app/.well-known/api-catalog
