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
| Scope | Allows | Includes |
|---|---|---|
| Tables | ||
tables.read | List tables and read records. | nothing else |
tables.write | Add, change and delete records. | tables.read |
tables.manage | Create tables, change their fields, archive and restore them. | tables.write |
tables.deleteDangerous | Permanently delete a table and every record in it. | tables.manage |
| Media | ||
media.read | List files, read their details and download them. | nothing else |
media.write | Upload, rename, move, pin, share and delete files, make folders, and make or revoke public links and bundles. | media.read |
media.manage | Rename and delete folders, set what happens when storage is full. | media.write |
| Skills | ||
skills.read | List skills and collections and read their contents. | nothing else |
skills.write | Create and edit skill drafts, copy and archive skills, import bundles, install library skills as copies. | skills.read |
skills.publish | Publish a skill so profiles serve it; install library skills as managed. | skills.write |
skills.manage | Create, edit and archive collections, the unit a profile attaches. | skills.publish |
skills.deleteDangerous | Permanently delete skills and collections. | skills.manage |
| Connectors | ||
connectors.read | Read the connector catalog and each connector's tools. | nothing else |
| Connections | ||
connections.read | List the workspace's connections and their tools. | nothing else |
connections.write | Start a connect flow (a connect URL for a person), rename a connection, choose its tools. | connections.read |
connections.deleteDangerous | Disconnect a vendor account, removing it from every profile that used it. | connections.write |
| Profiles | ||
profiles.read | List profiles and read their endpoint URLs. | nothing else |
profiles.write | Create and edit profiles, attach connections, set exposed tools. | profiles.read |
profiles.deleteDangerous | Delete a profile, revoking every client grant pinned to it. | profiles.write |
| Activity | ||
activity.read | Read the call log (every tool call, for analytics) and its usage summaries. | nothing else |
| Connect links | ||
links.read | List connect links and read their URLs. | nothing else |
links.write | Send, resend, reset, edit and revoke connect links. | links.read |
| Billing | ||
billing.read | Read the plan, credit balance, ledger and invoices. | nothing else |
billing.manageDangerous | Buy credit packs with the card on file. | billing.read |
| Members | ||
members.read | List members and pending invites. | nothing else |
members.invite | Send and cancel invites. | members.read |
members.manageDangerous | Change 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.deleteandprofiles.deleteremove a thing and everything that hangs off it. None of them can be undone.members.managechanges roles and removes people from the account.billing.manageis reserved for buying credits. No endpoint uses it yet.
They are guarded three ways:
- Off by default. No preset in the dashboard ticks one.
- Only an owner can grant one. An admin can make keys, but not a key that holds a dangerous scope.
- 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.