Keys and scopes
What an API key or a connected AI app can do, and how admins manage them.
Flito has two kinds of credentials:
- API keys, for scripts, tools and the CLI. Each one is made by a person in the app.
- Sign-in for AI apps, where a person connects ChatGPT, Claude or another app to Flito over OAuth. See MCP.
Both act as the person who made them. Both are read only, or read and write.
API keys
Make one in Settings, Integrations, API and AI (the API & AI connections page), under API keys:
- Access: Read only gives the key every read scope you hold. Read and write gives it everything you hold.
- Expires: after 30 days, 90 days, 1 year, or never.
- The key is shown once. It starts with
flito_pat_.
Send it as a bearer token on every call:
curl -s "$FLITO_URL/api/discover" -H "Authorization: Bearer $FLITO_API_KEY"The workspace always comes from the key, never from the input. A key from one Flito does nothing at another.
What a key can do
A key can never do more than the person who made it, now:
- Its scopes are the scopes the key was given and the scopes its person still holds. If their role loses a scope, the key loses it on the next call.
- When the person leaves the workspace, every key and connection they made stops working.
- A revoked or expired key answers
401on every call.
A few things need a person signed in to the app, so a key gets 403 for them:
- making API keys (
api_token.create) - saving or clearing an integration's secret keys (
integration.set_secret,integration.clear_secret)
Changes that are hard to undo need one more word from the caller. Deletes, merges, archives, sending quotes for signature, bulk email and broadcasts, sending invoices and switching automations on answer 409 APPROVAL_REQUIRED unless the body has "approved": true beside the input. The reference marks each one. See REST basics.
Scopes
Each capability needs one or more scopes, written area:verb:
readreads,writechanges records,sendsends email or documents to people,runruns agents.reviewapproves quotes,revertrestores an earlier version,admindeletes and changes settings.
A person's scopes come from their roles (Settings, Users, Roles). A workspace can edit roles; until it does, the built-in ones hold these:
- Owner and Admin: every scope.
- Member: every
read,write,sendandrunscope. - Viewer: every
readscope.
These are the scopes the core capabilities need, from the code:
| Scope | Capabilities that need it | Built-in roles that hold it |
|---|---|---|
| agents:run | 7 | owner, admin, member |
| analytics:read | 28 | owner, admin, member, viewer |
| communications:read | 14 | owner, admin, member, viewer |
| communications:send | 5 | owner, admin, member |
| communications:write | 11 | owner, admin, member |
| companies:admin | 1 | owner, admin |
| companies:read | 4 | owner, admin, member, viewer |
| companies:write | 12 | owner, admin, member |
| config:read | 15 | owner, admin, member, viewer |
| config:revert | 1 | owner, admin |
| config:write | 30 | owner, admin, member |
| contacts:admin | 2 | owner, admin |
| contacts:read | 29 | owner, admin, member, viewer |
| contacts:write | 42 | owner, admin, member |
| deals:admin | 3 | owner, admin |
| deals:read | 11 | owner, admin, member, viewer |
| deals:write | 11 | owner, admin, member |
| email:read | 31 | owner, admin, member, viewer |
| email:send | 12 | owner, admin, member |
| email:write | 27 | owner, admin, member |
| esign:read | 3 | owner, admin, member, viewer |
| esign:send | 3 | owner, admin, member |
| esign:write | 1 | owner, admin, member |
| integrations:write | 1 | owner, admin, member |
| invoices:read | 3 | owner, admin, member, viewer |
| invoices:write | 7 | owner, admin, member |
| products:read | 4 | owner, admin, member, viewer |
| products:write | 2 | owner, admin, member |
| quotes:admin | 1 | owner, admin |
| quotes:read | 7 | owner, admin, member, viewer |
| quotes:review | 1 | owner, admin |
| quotes:write | 5 | owner, admin, member |
| sequences:read | 5 | owner, admin, member, viewer |
| sequences:write | 7 | owner, admin, member |
| tags:read | 1 | owner, admin, member, viewer |
| tags:write | 3 | owner, admin, member |
| workspace:admin | 6 | owner, admin |
| workspace:read | 5 | owner, admin, member, viewer |
| workspace:write | 4 | owner, admin, member |
Each capability's page in the API reference lists its scopes. To see what one key holds, call /api/discover and read you.scopes.
For workspace admins
The API & AI connections page shows every key and connection in the workspace:
- API keys: who made each key, its access, when it was last used, when it expires, and Revoke.
- Connected apps: each AI app someone approved, with Disconnect.
- AI app activity: every tool call a connected app made, and how it ended.
Every change a key or an app makes is kept in the record's history under the person's name, with the app named too, where it can be undone.
Yes. One key per script or tool means you can revoke one without stopping the others, and the last-used date tells you which are still in use.
No. When someone leaves the workspace, their keys and connected apps stop. For a long-running integration, make the key as a person who will stay, with a role that holds only what the integration needs.
Make it Read only, or make it as a person whose role holds only those scopes. A key cannot pick single scopes.
Not in production: anyone who opens the page could read the key. Call Flito from your server. The API playground in these docs is the one exception, for trying calls by hand.
Was this page useful?