ez_live_ + a 10-character public prefix + _ + a 40-character secret. The platform stores only a keyed hash (HMAC) of the secret, so even we cannot show you a key again.
Create, list, revoke
In the dashboard: Developers > API keys. Only the workspace owner can create or revoke keys.
The full key is displayed once, right after you create it.
The list shows the key's name, the public prefix and when it was last used. Never the secret.
Revoke works immediately: the next call with that key returns 401.
What a key can reach
A key belongs to one workspace. Every query is filtered to that workspace in one central place, so a key can never read another customer's messages, orders, templates or balance. Unless you limit it (see Permissions below), a key has the same power as the workspace owner over the API endpoints listed in these docs (send messages, read them, push orders, send and check codes). It cannot change settings, team members, billing or other keys.
Give each system its own key (store, CRM, a script) so you can revoke one without touching the rest. For AI assistants, use the MCP read-only mode where you can: see MCP server.
Permissions (scopes)
When you create a key you choose what it may do. A key made before permissions existed keeps full access until you edit it.
Permission
Opens
messages:send
POST /messages
messages:read
GET /messages, GET /messages/{id}
templates:read
GET /templates, GET /templates/{id}
balance:read
GET /balance
pricing:read
GET /pricing/rates, POST /pricing/estimate
orders:read
GET /orders/{id}
orders:write
POST /orders, POST /orders/{id}/confirmation
carts:write
POST /carts
appointments:write
POST /appointments
verify
/verify/start, /verify/check, GET /verify/{id}
mcp
POST /mcp (the tools inside also need their own permission)
GET /me needs no permission. A call without the permission returns 403 with api.scope_missing and the name of the permission. Ready-made choices in the dashboard: full access, read only, store (orders and carts), sending messages, verification codes only.
Request log
In the dashboard, Developers > Logs lists the calls that came in through the API: time, which key, the call, the answer code, how long it took and the address. A second tab lists the messages we sent to your webhook addresses, with the attempts and the reason when one failed. Request bodies, query strings and secrets are never kept; the calls themselves stay in the log, nothing is deleted. A call refused because of a missing permission or an address that is not on the list shows up here too, so you can see who is knocking.
Allowed addresses
A key can also carry a list of allowed addresses: single IPs or ranges such as 41.32.10.5 or 10.0.0.0/8 (IPv4 and IPv6), up to 20. A call from any other address returns 403 with api.ip_not_allowed, even with the right key, so a leaked key is useless outside your servers. Leave the list empty to allow any address. You can change both the permissions and the addresses of a key without changing the key itself.
Errors
Status
Code
Meaning
401
api.unauthorized
Missing, wrong or revoked key, or the workspace is not active
403
api.scope_missing
The key does not have the permission this call needs
403
api.ip_not_allowed
The key has an address list and this address is not on it
Keep keys on your server only. Never put one in a mobile app, a web page or a public repository.
Store keys in environment variables or a secret manager.
If a key leaks, revoke it and create a new one.
# Authentication and API keys
Every call to `/api/v1/*` carries one header:
```http
Authorization: Bearer ez_live_xxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```
## Key format
`ez_live_` + a 10-character public prefix + `_` + a 40-character secret. The platform stores only a keyed hash (HMAC) of the secret, so even we cannot show you a key again.
## Create, list, revoke
In the dashboard: **Developers > API keys**. Only the workspace **owner** can create or revoke keys.
- The full key is displayed **once**, right after you create it.
- The list shows the key's name, the public prefix and when it was last used. Never the secret.
- **Revoke** works immediately: the next call with that key returns `401`.
## What a key can reach
A key belongs to **one workspace**. Every query is filtered to that workspace in one central place, so a key can never read another customer's messages, orders, templates or balance. Unless you limit it (see Permissions below), a key has the same power as the workspace owner over the API endpoints listed in these docs (send messages, read them, push orders, send and check codes). It cannot change settings, team members, billing or other keys.
Give each system its own key (store, CRM, a script) so you can revoke one without touching the rest. For AI assistants, use the MCP read-only mode where you can: see [MCP server](mcp-server).
## Permissions (scopes)
When you create a key you choose what it may do. A key made before permissions existed keeps full access until you edit it.
| Permission | Opens |
|---|---|
| `messages:send` | `POST /messages` |
| `messages:read` | `GET /messages`, `GET /messages/{id}` |
| `templates:read` | `GET /templates`, `GET /templates/{id}` |
| `balance:read` | `GET /balance` |
| `pricing:read` | `GET /pricing/rates`, `POST /pricing/estimate` |
| `orders:read` | `GET /orders/{id}` |
| `orders:write` | `POST /orders`, `POST /orders/{id}/confirmation` |
| `carts:write` | `POST /carts` |
| `appointments:write` | `POST /appointments` |
| `verify` | `/verify/start`, `/verify/check`, `GET /verify/{id}` |
| `mcp` | `POST /mcp` (the tools inside also need their own permission) |
`GET /me` needs no permission. A call without the permission returns `403` with `api.scope_missing` and the name of the permission. Ready-made choices in the dashboard: full access, read only, store (orders and carts), sending messages, verification codes only.
## Request log
In the dashboard, **Developers > Logs** lists the calls that came in through the API: time, which key, the call, the answer code, how long it took and the address. A second tab lists the messages we sent to your webhook addresses, with the attempts and the reason when one failed. Request bodies, query strings and secrets are never kept; the calls themselves stay in the log, nothing is deleted. A call refused because of a missing permission or an address that is not on the list shows up here too, so you can see who is knocking.
## Allowed addresses
A key can also carry a list of allowed addresses: single IPs or ranges such as `41.32.10.5` or `10.0.0.0/8` (IPv4 and IPv6), up to 20. A call from any other address returns `403` with `api.ip_not_allowed`, even with the right key, so a leaked key is useless outside your servers. Leave the list empty to allow any address. You can change both the permissions and the addresses of a key without changing the key itself.
## Errors
| Status | Code | Meaning |
|---|---|---|
| 401 | `api.unauthorized` | Missing, wrong or revoked key, or the workspace is not active |
| 403 | `api.scope_missing` | The key does not have the permission this call needs |
| 403 | `api.ip_not_allowed` | The key has an address list and this address is not on it |
| 429 | (rate limit) | Too many requests, see [Errors and limits](errors-and-limits) |
## Keep keys safe
- Keep keys on your server only. Never put one in a mobile app, a web page or a public repository.
- Store keys in environment variables or a secret manager.
- If a key leaks, revoke it and create a new one.