Scopes and keys

A key does only what its scopes allow. Each endpoint in this reference names the one scope it needs, and a key without it is refused with 403 and the code insufficient_scope.

A scope is a category and a level: tables.read, tables.write. The category is the same word as the URL, so the endpoints under /v1/tables need a tables. scope.

Every scope

ScopeAllowsIncludes
Tables
tables.readList tables and read records.nothing else
tables.writeAdd, change and delete records.tables.read
tables.manageCreate tables, change their fields, archive and restore them.tables.write
tables.deleteDangerousPermanently delete a table and every record in it.tables.manage
Media
media.readList files, read their details and download them.nothing else
media.writeUpload, rename, move, pin, share and delete files, make folders, and make or revoke public links and bundles.media.read
media.manageRename and delete folders, set what happens when storage is full.media.write
Skills
skills.readList skills and collections and read their contents.nothing else
skills.writeCreate and edit skill drafts, copy and archive skills, import bundles, install library skills as copies.skills.read
skills.publishPublish a skill so profiles serve it; install library skills as managed.skills.write
skills.manageCreate, edit and archive collections, the unit a profile attaches.skills.publish
skills.deleteDangerousPermanently delete skills and collections.skills.manage
Connectors
connectors.readRead the connector catalog and each connector's tools.nothing else
Connections
connections.readList the workspace's connections and their tools.nothing else
connections.writeStart a connect flow (a connect URL for a person), rename a connection, choose its tools.connections.read
connections.deleteDangerousDisconnect a vendor account, removing it from every profile that used it.connections.write
Profiles
profiles.readList profiles and read their endpoint URLs.nothing else
profiles.writeCreate and edit profiles, attach connections, set exposed tools.profiles.read
profiles.deleteDangerousDelete a profile, revoking every client grant pinned to it.profiles.write
Activity
activity.readRead the call log (every tool call, for analytics) and its usage summaries.nothing else
Connect links
links.readList connect links and read their URLs.nothing else
links.writeSend, resend, reset, edit and revoke connect links.links.read
Billing
billing.readRead the plan, credit balance, ledger and invoices.nothing else
billing.manageDangerousBuy credit packs with the card on file.billing.read
Members
members.readList members and pending invites.nothing else
members.inviteSend and cancel invites.members.read
members.manageDangerousChange roles and remove members. The dashboard's hard stops still apply.members.invite

A level includes the ones below it

Give a key tables.manage and it can also do everything tables.write and tables.read allow. The Includes column shows what each scope brings with it, and what it brings with it brings its own, all the way down. expanded_scopes on GET/v1/me is the result for your key.

So grant the highest level a key needs in each category, and nothing in the categories it does not touch.

What a new key starts with

The dashboard ticks every .read scope and the three content writes (tables.write, media.write, skills.write) by default. That is enough to read the workspace and work with its records, files and skills, and not enough to connect a vendor, change a profile, invite anyone or delete anything for good. Untick what you do not need.

Dangerous scopes

The scopes marked Dangerous in the table delete something for good, change who has access, or spend money:

  • tables.delete, skills.delete, connections.delete and profiles.delete remove a thing and everything that hangs off it. None of them can be undone.
  • members.manage changes roles and removes people from the account.
  • billing.manage is reserved for buying credits. No endpoint uses it yet.

They are guarded three ways:

  1. Off by default. No preset in the dashboard ticks one.
  2. Only an owner can grant one. An admin can make keys, but not a key that holds a dangerous scope.
  3. Every call is recorded. Each request made under a dangerous scope is logged as such, with the key, the endpoint and the time.

A key with tables.manage can archive a table, which keeps its records and can be reversed. It takes tables.delete to remove one. Reach for the reversible operation first; the endpoint pages say which is which.

You cannot grant what you do not hold

When you make a key, you can tick only the scopes your own role covers, so a key never holds more than the person who made it could do themselves. The key then stands on its own: it keeps working if that person leaves, until it expires or someone revokes it.

Keys also cannot manage keys. There is no endpoint for making, listing or revoking them with a key: that is done by a person, in the dashboard.

The owner rules still apply

members.manage lets a key change a role or remove a member, and the rules that protect an account still hold. A key cannot make someone an owner, cannot change or remove the primary owner, and cannot demote another owner. Those answer 403 with the code forbidden: the key holds the scope, and this particular act is still refused.