Permissions
The scopes an API key can carry, and how a key tied to one workspace behaves.
Each key carries a set of scopes, and each endpoint requires one. A request with a valid key but the wrong scope returns 403 and names the scope it wanted.
Scopes#
| Scope | Grants |
|---|---|
workspaces:read | List and read workspaces |
workspaces:write | Create, update and delete workspaces |
apps:read | List apps and read their details |
apps:write | Update, move and delete apps |
schema:read | Read the schema and collections |
schema:write | Write to the draft schema |
versions:read | List versions |
versions:write | Create, publish and restore versions |
domains:read | List domains and their status |
domains:write | Attach, verify and remove domains |
data:read | Read records through the app-level API |
data:write | Write records through the app-level API |
flows:run | Trigger flows |
webhooks:read | List webhooks and deliveries |
webhooks:write | Manage webhooks |
usage:read | Read usage, credits and key details |
Every endpoint in this reference shows the scope it needs next to its address.
Keys tied to one workspace#
A key can be tied to a single workspace. When it is, it only ever sees that workspace. Passing a different workspace parameter doesn't widen it.
A workspace-limited key also can't create new workspaces, and it can only move an app between workspaces it can reach.
Check what a key can do#
GET /me returns the scopes attached to the key you're holding.