Skip to Content
API ReferenceKey Permissions

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

PermissionWhat it does
agents:executeRun 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:readRead the project’s design tokens.
drafts:readRead unpublished versions, as a preview does.
embeddings:readSearch records by meaning, and read a record’s embeddings.
embeddings:writeWrite and delete a record’s embeddings.
files:deleteDelete and restore files.
files:readRead and list files.
files:writeUpload files and edit their details.
members:readSee who holds which role, and who has been invited.
members:writeGive and remove roles, and invite people. A grant is capped by what the granter holds.
notes:createWrite a note, or a reply in a thread.
notes:readRead notes.
notes:writeChange and delete notes.
notifications:readRead notifications and notification preferences.
notifications:writeSend notifications, register devices, and set preferences.
operations:executeRun operations.
operations:execute:<operation>Run operations. For the one operation it names.
operations:readRead the project’s operations and their executions.
orgsettings:writeRename 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:createCreate records.
records:create:<model>Create records. For the one model it names.
records:deleteDelete records.
records:publishPublish and unpublish record versions.
records:readRead records.
records:writeChange records: update, duplicate, revert, and share them.
schedules:readRead schedules.
schedules:writeCreate, change and delete schedules.
schemas:readRead the project’s model schemas.
search:readSearch records by text.
search:read:<model>Search records by text. For the one model it names.
signinproviders:readRead sign-in providers.
signinproviders:writeAdd, change and remove sign-in providers.
users:deleteDelete a user’s account.
users:readRead users’ accounts.
users:writeChange users’ accounts: update, suspend, merge, and send an access link.

It may hold no wildcard.

What it may give anyone who comes through it

PermissionWhat it does
agents:execute:<model>Run agents: send one a message, or call it once. For the one model it names.
designtokens:readRead the project’s design tokens.
drafts:readRead unpublished versions, as a preview does.
embeddings:readSearch records by meaning, and read a record’s embeddings.
files:readRead and list files.
notes:createWrite a note, or a reply in a thread.
notes:readRead notes.
notifications:readRead notifications and notification preferences.
operations:execute:<operation>Run operations. For the one operation it names.
operations:readRead the project’s operations and their executions.
records:create:<model>Create records. For the one model it names.
records:readRead records.
schedules:readRead schedules.
schemas:readRead the project’s model schemas.
search:readSearch 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

PermissionWhat it does
agents:executeRun 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:readRead the project’s design tokens.
drafts:readRead unpublished versions, as a preview does.
embeddings:readSearch records by meaning, and read a record’s embeddings.
embeddings:writeWrite and delete a record’s embeddings.
files:deleteDelete and restore files.
files:readRead and list files.
files:writeUpload files and edit their details.
members:readSee who holds which role, and who has been invited.
members:writeGive and remove roles, and invite people. A grant is capped by what the granter holds.
notes:createWrite a note, or a reply in a thread.
notes:readRead notes.
notes:read.allRead notes. Every owner’s rows.
notes:writeChange and delete notes.
notes:write.allChange and delete notes. Every owner’s rows.
notifications:readRead notifications and notification preferences.
notifications:writeSend notifications, register devices, and set preferences.
operations:executeRun operations.
operations:execute:<operation>Run operations. For the one operation it names.
operations:readRead the project’s operations and their executions.
orgsettings:writeRename 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:standAct as the project: reach the project’s own records, files and notes, the ones no person owns.
records:createCreate records.
records:create:<model>Create records. For the one model it names.
records:deleteDelete records.
records:publishPublish and unpublish record versions.
records:readRead records.
records:read.allRead records. Every owner’s rows.
records:read.all:<model>Read records. Every owner’s rows. For the one model it names.
records:writeChange records: update, duplicate, revert, and share them.
schedules:readRead schedules.
schedules:writeCreate, change and delete schedules.
schemas:readRead the project’s model schemas.
search:readSearch records by text.
search:read:<model>Search records by text. For the one model it names.
signinproviders:readRead sign-in providers.
signinproviders:writeAdd, change and remove sign-in providers.
users:deleteDelete a user’s account.
users:readRead users’ accounts.
users:writeChange users’ accounts: update, suspend, merge, and send an access link.
visitors:forwardState 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

PermissionWhat it does
agents:execute:<model>Run agents: send one a message, or call it once. For the one model it names.
designtokens:readRead the project’s design tokens.
drafts:readRead unpublished versions, as a preview does.
embeddings:readSearch records by meaning, and read a record’s embeddings.
files:readRead and list files.
notes:createWrite a note, or a reply in a thread.
notes:readRead notes.
notifications:readRead notifications and notification preferences.
operations:execute:<operation>Run operations. For the one operation it names.
operations:readRead the project’s operations and their executions.
records:create:<model>Create records. For the one model it names.
records:readRead records.
schedules:readRead schedules.
schemas:readRead the project’s model schemas.
search:readSearch 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

PermissionWhat it does
agents:executeRun 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:readRead the project’s agents, and every run of them with its trace.
agents:writeAuthor agents: their instructions, model, tools, child agents, limits and MCP servers, and remove a user’s connection to one.
apikeys:readRead the project’s API keys.
apikeys:writeCreate, rotate, change and revoke the project’s API keys.
appconfig:readRead the configuration of the app an operation belongs to. Held to give: the key cannot use it itself.
approvals:readSee the actions held for approval, and how far each has got.
approvals:writePropose an action for approval, hand one off, and decide one.
apps:readSee the apps installed in the project and their status.
apps:writeInstall, configure and remove apps.
appsecrets:deleteDelete an app’s secrets. Held to give: the key cannot use it itself.
appsecrets:listList the names of an app’s secrets. Held to give: the key cannot use it itself.
appsecrets:putSet and rotate an app’s secrets. Held to give: the key cannot use it itself.
appsecrets:readRead an app’s secrets. Held to give: the key cannot use it itself.
authclients:readRead auth clients.
authclients:writeRegister and change auth clients.
brief:readRead the project brief.
brief:writeChange the project brief.
configs:readRead configs.
configs:writeCreate, change and delete configs.
designtokens:readRead the project’s design tokens.
designtokens:writeChange the project’s design tokens.
drafts:readRead unpublished versions, as a preview does.
embeddings:readSearch records by meaning, and read a record’s embeddings.
embeddings:writeWrite and delete a record’s embeddings.
events:readRead the project’s history of events.
export:runExport a project’s data.
files:deleteDelete and restore files.
files:delete.allDelete and restore files. Every owner’s rows.
files:readRead and list files.
files:read.allRead and list files. Every owner’s rows.
files:writeUpload files and edit their details.
files:write.allUpload files and edit their details. Every owner’s rows.
hooks:readRead event hooks and their deliveries.
hooks:writeCreate, change and delete event hooks.
identities:deleteRemove 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:readFind which user holds an identity at an app’s own system. Held to give: the key cannot use it itself.
loginpages:readRead sign-in pages and their drafts.
loginpages:writeChange sign-in pages, and release them.
members:readSee who holds which role, and who has been invited.
members:writeGive and remove roles, and invite people. A grant is capped by what the granter holds.
models:readRead models.
models:writeCreate, change and delete models.
notes:createWrite a note, or a reply in a thread.
notes:readRead notes.
notes:read.allRead notes. Every owner’s rows.
notes:writeChange and delete notes.
notes:write.allChange and delete notes. Every owner’s rows.
notifications:read.allRead notifications and notification preferences. Every owner’s rows.
notifications:write.allSend notifications, register devices, and set preferences. Every owner’s rows.
operations:executeRun operations.
operations:execute:<operation>Run operations. For the one operation it names.
operations:readRead the project’s operations and their executions.
operations:writeAuthor operations, and retry or dismiss their dead letters.
opsecrets:readRead the secret that signs the project’s operation deliveries.
opsecrets:writeReplace the secret that signs the project’s operation deliveries.
organizations:createCreate an organisation, with its first member and what it is provisioned with.
organizations:deleteSchedule an organisation’s deletion, with everything beneath it. It is removed when the retention window closes, unless it is resumed first.
organizations:reachRead every organisation of the project in one query.
organizations:readRead the organisation tree, its members, limits and usage.
organizations:writeMove, 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:writeRename 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:standAct as the project: reach the project’s own records, files and notes, the ones no person owns.
pushcredentials:readSee which push provider credentials the project holds.
pushcredentials:writeUpload and remove the project’s push provider credentials.
records:attributeName the user a record belongs to when it is created, and hand it to another owner later.
records:createCreate records.
records:create:<model>Create records. For the one model it names.
records:deleteDelete records.
records:delete.allDelete records. Every owner’s rows.
records:delete.all:<model>Delete records. Every owner’s rows. For the one model it names.
records:publishPublish and unpublish record versions.
records:publish.allPublish 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:readRead records.
records:read.allRead records. Every owner’s rows.
records:read.all:<model>Read records. Every owner’s rows. For the one model it names.
records:writeChange records: update, duplicate, revert, and share them.
records:write.allChange 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:readSee the roles defined in the project.
roles:writeDefine, change and disable roles.
schedules:readRead schedules.
schedules:writeCreate, change and delete schedules.
schemas:readRead the project’s model schemas.
search:readSearch records by text.
search:read:<model>Search records by text. For the one model it names.
secrets:deleteDelete the project’s secrets.
secrets:listList the names of the project’s secrets.
secrets:putSet and rotate the project’s secrets.
secrets:readRead the project’s secrets.
settings:readRead the project’s settings: locales, context dimensions, the variant catalogue, notification categories.
settings:writeChange the project’s settings, and publish.
signinproviders:readRead sign-in providers.
signinproviders:writeAdd, change and remove sign-in providers.
targeting:debugExplain why a variant was chosen for a request.
users:createCreate a user.
users:delete.allDelete a user’s account. Every owner’s rows.
users:read.allRead users’ accounts. Every owner’s rows.
users:read.namedRead users’ accounts. The rows of one owner the caller names.
users:setupFinish setting up an account nobody has signed in to: mark its address verified and set its first password.
users:write.allChange users’ accounts: update, suspend, merge, and send an access link. Every owner’s rows.
usersecrets:deleteDelete a user’s secret. Held to give: the key cannot use it itself.
usersecrets:listList a user’s secrets. Held to give: the key cannot use it itself.
usersecrets:putStore a user’s secret. Held to give: the key cannot use it itself.
usersecrets:readRead a user’s secrets. Held to give: the key cannot use it itself.
visitors:forwardState 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:

WildcardWhat 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

PermissionWhat it does
apikeys:writeCreate, rotate, change and revoke the project’s API keys.
apps:installInstall an app into a project from the workspace.
export:runExport a project’s data.
projects:writeRename the project and change its settings.
signinproviders:readRead sign-in providers.
signinproviders:writeAdd, change and remove sign-in providers.
tenanthooks:readRead the workspace’s hooks and their deliveries.
tenanthooks:writeCreate, change and delete the workspace’s hooks.
tenants:readRead the workspace.
tenants:writeRename the workspace.
usage:readRead 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.

Last updated on