Flito docs

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 401 on 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:

  • read reads, write changes records, send sends email or documents to people, run runs agents.
  • review approves quotes, revert restores an earlier version, admin deletes 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, send and run scope.
  • Viewer: every read scope.

These are the scopes the core capabilities need, from the code:

ScopeCapabilities that need itBuilt-in roles that hold it
agents:run7owner, admin, member
analytics:read28owner, admin, member, viewer
communications:read14owner, admin, member, viewer
communications:send5owner, admin, member
communications:write11owner, admin, member
companies:admin1owner, admin
companies:read4owner, admin, member, viewer
companies:write12owner, admin, member
config:read15owner, admin, member, viewer
config:revert1owner, admin
config:write30owner, admin, member
contacts:admin2owner, admin
contacts:read29owner, admin, member, viewer
contacts:write42owner, admin, member
deals:admin3owner, admin
deals:read11owner, admin, member, viewer
deals:write11owner, admin, member
email:read31owner, admin, member, viewer
email:send12owner, admin, member
email:write27owner, admin, member
esign:read3owner, admin, member, viewer
esign:send3owner, admin, member
esign:write1owner, admin, member
integrations:write1owner, admin, member
invoices:read3owner, admin, member, viewer
invoices:write7owner, admin, member
products:read4owner, admin, member, viewer
products:write2owner, admin, member
quotes:admin1owner, admin
quotes:read7owner, admin, member, viewer
quotes:review1owner, admin
quotes:write5owner, admin, member
sequences:read5owner, admin, member, viewer
sequences:write7owner, admin, member
tags:read1owner, admin, member, viewer
tags:write3owner, admin, member
workspace:admin6owner, admin
workspace:read5owner, admin, member, viewer
workspace:write4owner, 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.

Was this page useful?

On this page