Key Permissions
Every permission an API key may be made with, by the kind of key and by which of its two lists the permission goes on. You choose the kind when you make the key. What a publishable or a server key holds is the most a signed-in user may do through it, and what it gives is what a visitor may do with nobody signed in, and what a signed-in user may do beneath their role. Nothing is given that the second list does not name. What an admin key holds is what it does, and it gives nobody anything. See A key’s two lists.
A permission is written <resource>:<verb>. A reach after the verb widens whose rows it covers: .all is every owner’s rows, and .named is the rows of one owner the caller names. With no reach, an admin key reads and writes the project’s own rows, which are the ones no person owns. Through a publishable or a server key, a signed-in user reads and writes their own rows, and a visitor reads what is public. A model or an operation after a second colon narrows the permission to that one. Reading and writing records may name one field of a model, as <model>.<field> (records:write:order.status): that is how a field the model guards is given, and a grant on the model alone does not reach it. See Guarded fields.
The platform refuses any permission that is not on the list for the key’s kind, and says why.
A publishable key
It sits in a web page or an app, where anyone can read it.
What it may hold
| Permission | What it does |
|---|---|
agents:execute | Run agents: send one a message, or call it once. |
agents:execute:<model> | Run agents: send one a message, or call it once. For the one model it names. |
designtokens:read | Read the project’s design tokens. |
drafts:read | Read unpublished versions, as a preview does. |
embeddings:read | Search records by meaning, and read a record’s embeddings. |
embeddings:write | Write and delete a record’s embeddings. |
files:delete | Delete and restore files. |
files:read | Read and list files. |
files:write | Upload files and edit their details. |
members:read | See who holds which role, and who has been invited. |
members:write | Give and remove roles, and invite people. A grant is capped by what the granter holds. |
notes:create | Write a note, or a reply in a thread. |
notes:read | Read notes. |
notes:write | Change and delete notes. |
notifications:read | Read notifications and notification preferences. |
notifications:write | Send notifications, register devices, and set preferences. |
operations:execute | Run operations. |
operations:execute:<operation> | Run operations. For the one operation it names. |
operations:read | Read the project’s operations and their executions. |
orgsettings:write | Rename an organisation and change how it is presented, who may join it and how its people sign in. Given in an organisation, that organisation and the ones beneath it. |
records:create | Create records. |
records:create:<model> | Create records. For the one model it names. |
records:delete | Delete records. |
records:publish | Publish and unpublish record versions. |
records:read | Read records. |
records:write | Change records: update, duplicate, revert, and share them. |
schedules:read | Read schedules. |
schedules:write | Create, change and delete schedules. |
schemas:read | Read the project’s model schemas. |
search:read | Search records by text. |
search:read:<model> | Search records by text. For the one model it names. |
signinproviders:read | Read sign-in providers. |
signinproviders:write | Add, change and remove sign-in providers. |
users:delete | Delete a user’s account. |
users:read | Read users’ accounts. |
users:write | Change users’ accounts: update, suspend, merge, and send an access link. |
It may hold no wildcard.
What it may give anyone who comes through it
| Permission | What it does |
|---|---|
agents:execute:<model> | Run agents: send one a message, or call it once. For the one model it names. |
designtokens:read | Read the project’s design tokens. |
drafts:read | Read unpublished versions, as a preview does. |
embeddings:read | Search records by meaning, and read a record’s embeddings. |
files:read | Read and list files. |
notes:create | Write a note, or a reply in a thread. |
notes:read | Read notes. |
notifications:read | Read notifications and notification preferences. |
operations:execute:<operation> | Run operations. For the one operation it names. |
operations:read | Read the project’s operations and their executions. |
records:create:<model> | Create records. For the one model it names. |
records:read | Read records. |
schedules:read | Read schedules. |
schemas:read | Read the project’s model schemas. |
search:read | Search records by text. |
search:read:<model> | Search records by text. For the one model it names. |
Nothing is given by a wildcard.
A server key
It is held by the server that renders your pages. It is a publishable key that may also say who and where its visitor is. It is shown once and refused from a browser.
What it may hold
| Permission | What it does |
|---|---|
agents:execute | Run agents: send one a message, or call it once. |
agents:execute:<model> | Run agents: send one a message, or call it once. For the one model it names. |
designtokens:read | Read the project’s design tokens. |
drafts:read | Read unpublished versions, as a preview does. |
embeddings:read | Search records by meaning, and read a record’s embeddings. |
embeddings:write | Write and delete a record’s embeddings. |
files:delete | Delete and restore files. |
files:read | Read and list files. |
files:write | Upload files and edit their details. |
members:read | See who holds which role, and who has been invited. |
members:write | Give and remove roles, and invite people. A grant is capped by what the granter holds. |
notes:create | Write a note, or a reply in a thread. |
notes:read | Read notes. |
notes:read.all | Read notes. Every owner’s rows. |
notes:write | Change and delete notes. |
notes:write.all | Change and delete notes. Every owner’s rows. |
notifications:read | Read notifications and notification preferences. |
notifications:write | Send notifications, register devices, and set preferences. |
operations:execute | Run operations. |
operations:execute:<operation> | Run operations. For the one operation it names. |
operations:read | Read the project’s operations and their executions. |
orgsettings:write | Rename an organisation and change how it is presented, who may join it and how its people sign in. Given in an organisation, that organisation and the ones beneath it. |
project:stand | Act as the project: reach the project’s own records, files and notes, the ones no person owns. |
records:create | Create records. |
records:create:<model> | Create records. For the one model it names. |
records:delete | Delete records. |
records:publish | Publish and unpublish record versions. |
records:read | Read records. |
records:read.all | Read records. Every owner’s rows. |
records:read.all:<model> | Read records. Every owner’s rows. For the one model it names. |
records:write | Change records: update, duplicate, revert, and share them. |
schedules:read | Read schedules. |
schedules:write | Create, change and delete schedules. |
schemas:read | Read the project’s model schemas. |
search:read | Search records by text. |
search:read:<model> | Search records by text. For the one model it names. |
signinproviders:read | Read sign-in providers. |
signinproviders:write | Add, change and remove sign-in providers. |
users:delete | Delete a user’s account. |
users:read | Read users’ accounts. |
users:write | Change users’ accounts: update, suspend, merge, and send an access link. |
visitors:forward | State the address and the location of the visitor a server is calling for. |
It may hold no wildcard.
What it may give anyone who comes through it
| Permission | What it does |
|---|---|
agents:execute:<model> | Run agents: send one a message, or call it once. For the one model it names. |
designtokens:read | Read the project’s design tokens. |
drafts:read | Read unpublished versions, as a preview does. |
embeddings:read | Search records by meaning, and read a record’s embeddings. |
files:read | Read and list files. |
notes:create | Write a note, or a reply in a thread. |
notes:read | Read notes. |
notifications:read | Read notifications and notification preferences. |
operations:execute:<operation> | Run operations. For the one operation it names. |
operations:read | Read the project’s operations and their executions. |
records:create:<model> | Create records. For the one model it names. |
records:read | Read records. |
schedules:read | Read schedules. |
schemas:read | Read the project’s model schemas. |
search:read | Search records by text. |
search:read:<model> | Search records by text. For the one model it names. |
Nothing is given by a wildcard.
An admin key
It is a machine’s own: a sync job, a pipeline, a tool. Nobody signs in through it, it expires, and it is shown once and refused from a browser.
What it may hold
| Permission | What it does |
|---|---|
agents:execute | Run agents: send one a message, or call it once. |
agents:execute:<model> | Run agents: send one a message, or call it once. For the one model it names. |
agents:read | Read the project’s agents, and every run of them with its trace. |
agents:write | Author agents: their instructions, model, tools, child agents, limits and MCP servers, and remove a user’s connection to one. |
apikeys:read | Read the project’s API keys. |
apikeys:write | Create, rotate, change and revoke the project’s API keys. |
appconfig:read | Read the configuration of the app an operation belongs to. Held to give: the key cannot use it itself. |
approvals:read | See the actions held for approval, and how far each has got. |
approvals:write | Propose an action for approval, hand one off, and decide one. |
apps:read | See the apps installed in the project and their status. |
apps:write | Install, configure and remove apps. |
appsecrets:delete | Delete an app’s secrets. Held to give: the key cannot use it itself. |
appsecrets:list | List the names of an app’s secrets. Held to give: the key cannot use it itself. |
appsecrets:put | Set and rotate an app’s secrets. Held to give: the key cannot use it itself. |
appsecrets:read | Read an app’s secrets. Held to give: the key cannot use it itself. |
authclients:read | Read auth clients. |
authclients:write | Register and change auth clients. |
brief:read | Read the project brief. |
brief:write | Change the project brief. |
configs:read | Read configs. |
configs:write | Create, change and delete configs. |
designtokens:read | Read the project’s design tokens. |
designtokens:write | Change the project’s design tokens. |
drafts:read | Read unpublished versions, as a preview does. |
embeddings:read | Search records by meaning, and read a record’s embeddings. |
embeddings:write | Write and delete a record’s embeddings. |
events:read | Read the project’s history of events. |
export:run | Export a project’s data. |
files:delete | Delete and restore files. |
files:delete.all | Delete and restore files. Every owner’s rows. |
files:read | Read and list files. |
files:read.all | Read and list files. Every owner’s rows. |
files:write | Upload files and edit their details. |
files:write.all | Upload files and edit their details. Every owner’s rows. |
hooks:read | Read event hooks and their deliveries. |
hooks:write | Create, change and delete event hooks. |
identities:delete | Remove an identity an app names at its own system, and the account when nothing else is theirs. Held to give: the key cannot use it itself. |
identities:read | Find which user holds an identity at an app’s own system. Held to give: the key cannot use it itself. |
loginpages:read | Read sign-in pages and their drafts. |
loginpages:write | Change sign-in pages, and release them. |
members:read | See who holds which role, and who has been invited. |
members:write | Give and remove roles, and invite people. A grant is capped by what the granter holds. |
models:read | Read models. |
models:write | Create, change and delete models. |
notes:create | Write a note, or a reply in a thread. |
notes:read | Read notes. |
notes:read.all | Read notes. Every owner’s rows. |
notes:write | Change and delete notes. |
notes:write.all | Change and delete notes. Every owner’s rows. |
notifications:read.all | Read notifications and notification preferences. Every owner’s rows. |
notifications:write.all | Send notifications, register devices, and set preferences. Every owner’s rows. |
operations:execute | Run operations. |
operations:execute:<operation> | Run operations. For the one operation it names. |
operations:read | Read the project’s operations and their executions. |
operations:write | Author operations, and retry or dismiss their dead letters. |
opsecrets:read | Read the secret that signs the project’s operation deliveries. |
opsecrets:write | Replace the secret that signs the project’s operation deliveries. |
organizations:create | Create an organisation, with its first member and what it is provisioned with. |
organizations:delete | Schedule an organisation’s deletion, with everything beneath it. It is removed when the retention window closes, unless it is resumed first. |
organizations:reach | Read every organisation of the project in one query. |
organizations:read | Read the organisation tree, its members, limits and usage. |
organizations:write | Move, suspend and resume organisations, start and drop their own pools, set their limits, where their people stand and the mail sent for them, and staff them. |
orgsettings:write | Rename an organisation and change how it is presented, who may join it and how its people sign in. Given in an organisation, that organisation and the ones beneath it. |
project:stand | Act as the project: reach the project’s own records, files and notes, the ones no person owns. |
pushcredentials:read | See which push provider credentials the project holds. |
pushcredentials:write | Upload and remove the project’s push provider credentials. |
records:attribute | Name the user a record belongs to when it is created, and hand it to another owner later. |
records:create | Create records. |
records:create:<model> | Create records. For the one model it names. |
records:delete | Delete records. |
records:delete.all | Delete records. Every owner’s rows. |
records:delete.all:<model> | Delete records. Every owner’s rows. For the one model it names. |
records:publish | Publish and unpublish record versions. |
records:publish.all | Publish and unpublish record versions. Every owner’s rows. |
records:publish.all:<model> | Publish and unpublish record versions. Every owner’s rows. For the one model it names. |
records:read | Read records. |
records:read.all | Read records. Every owner’s rows. |
records:read.all:<model> | Read records. Every owner’s rows. For the one model it names. |
records:write | Change records: update, duplicate, revert, and share them. |
records:write.all | Change records: update, duplicate, revert, and share them. Every owner’s rows. |
records:write.all:<model> | Change records: update, duplicate, revert, and share them. Every owner’s rows. For the one model it names. |
roles:read | See the roles defined in the project. |
roles:write | Define, change and disable roles. |
schedules:read | Read schedules. |
schedules:write | Create, change and delete schedules. |
schemas:read | Read the project’s model schemas. |
search:read | Search records by text. |
search:read:<model> | Search records by text. For the one model it names. |
secrets:delete | Delete the project’s secrets. |
secrets:list | List the names of the project’s secrets. |
secrets:put | Set and rotate the project’s secrets. |
secrets:read | Read the project’s secrets. |
settings:read | Read the project’s settings: locales, context dimensions, the variant catalogue, notification categories. |
settings:write | Change the project’s settings, and publish. |
signinproviders:read | Read sign-in providers. |
signinproviders:write | Add, change and remove sign-in providers. |
targeting:debug | Explain why a variant was chosen for a request. |
users:create | Create a user. |
users:delete.all | Delete a user’s account. Every owner’s rows. |
users:read.all | Read users’ accounts. Every owner’s rows. |
users:read.named | Read users’ accounts. The rows of one owner the caller names. |
users:setup | Finish setting up an account nobody has signed in to: mark its address verified and set its first password. |
users:write.all | Change users’ accounts: update, suspend, merge, and send an access link. Every owner’s rows. |
usersecrets:delete | Delete a user’s secret. Held to give: the key cannot use it itself. |
usersecrets:list | List a user’s secrets. Held to give: the key cannot use it itself. |
usersecrets:put | Store a user’s secret. Held to give: the key cannot use it itself. |
usersecrets:read | Read a user’s secrets. Held to give: the key cannot use it itself. |
visitors:forward | State the address and the location of the visitor a server is calling for. |
A permission marked “held to give” is one the key cannot use itself. Nobody gives an operation what they do not hold themselves, so a key that creates or pushes an operation declaring one of these must hold it. What it stands for is reached by the operation’s own run: an app’s settings and secrets by that app’s run, and a user’s secrets by a run for that user.
It may also hold a wildcard, which holds every permission it covers, including any added later:
| Wildcard | What it holds |
|---|---|
* | Every permission an admin key may hold. |
agents:* | Every permission of agents. |
apikeys:* | Every permission of apikeys. |
appconfig:* | Every permission of appconfig. |
approvals:* | Every permission of approvals. |
appsecrets:* | Every permission of appsecrets. |
authclients:* | Every permission of authclients. |
brief:* | Every permission of brief. |
configs:* | Every permission of configs. |
designtokens:* | Every permission of designtokens. |
drafts:* | Every permission of drafts. |
embeddings:* | Every permission of embeddings. |
events:* | Every permission of events. |
export:* | Every permission of export. |
files:* | Every permission of files. |
hooks:* | Every permission of hooks. |
identities:* | Every permission of identities. |
loginpages:* | Every permission of loginpages. |
members:* | Every permission of members. |
models:* | Every permission of models. |
notes:* | Every permission of notes. |
notifications:* | Every permission of notifications. |
operations:* | Every permission of operations. |
opsecrets:* | Every permission of opsecrets. |
organizations:* | Every permission of organizations. |
orgsettings:* | Every permission of orgsettings. |
pushcredentials:* | Every permission of pushcredentials. |
records:* | Every permission of records. |
roles:* | Every permission of roles. |
schedules:* | Every permission of schedules. |
schemas:* | Every permission of schemas. |
search:* | Every permission of search. |
secrets:* | Every permission of secrets. |
settings:* | Every permission of settings. |
signinproviders:* | Every permission of signinproviders. |
targeting:* | Every permission of targeting. |
users:* | Every permission of users. |
usersecrets:* | Every permission of usersecrets. |
visitors:* | Every permission of visitors. |
What it gives
Nothing. Nobody signs in through an admin key, and no visitor comes through it. An app signs people in with its publishable or its server key.
An admin key made at a workspace
It is made at a workspace with no project, and holds the workspace’s own permissions and no project’s data.
What it may hold
| Permission | What it does |
|---|---|
apikeys:write | Create, rotate, change and revoke the project’s API keys. |
apps:install | Install an app into a project from the workspace. |
export:run | Export a project’s data. |
projects:write | Rename the project and change its settings. |
signinproviders:read | Read sign-in providers. |
signinproviders:write | Add, change and remove sign-in providers. |
tenanthooks:read | Read the workspace’s hooks and their deliveries. |
tenanthooks:write | Create, change and delete the workspace’s hooks. |
tenants:read | Read the workspace. |
tenants:write | Rename the workspace. |
usage:read | Read the workspace’s usage. |
It may hold no wildcard.
What it gives
Nothing. Nobody signs in through an admin key, and no visitor comes through it. An app signs people in with its publishable or its server key.