Skip to main content
A workspace owner or admin creates an org API key in the app, under Settings → API keys, and gives it:
  • a name
  • a role: member or admin
  • optionally, one part of the org it is limited to
The key is shown once and stored only as a hash. An admin can see when each key was last used and revoke it at any time.

Using a key

Send the key as a bearer token, and keep it in an environment variable named SOTRO_TOKEN, out of any file you commit. See MCP server for client setup. The workspace always comes from the key, never from the request.

What a key cannot do

An org API key acts as the workspace, not as a person. Anything that has to belong to someone is refused for a key:
  • starting work (start_work) and answering what it waits on
  • reading or posting in conversations
  • inviting people
For those, connect as yourself: sign in with Sotro (OAuth) from your client, or send a member token. See Clients. Call whoami to check which you are connected as: it returns kind: "api_key" for a key, and your email for a member.