> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sotroai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API keys

> Who creates org API keys, what they are limited to, and how to revoke them.

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](https://docs.sotroai.com/developers/mcp-server.md) 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](https://docs.sotroai.com/developers/clients.md).

Call `whoami` to check which you are connected as: it returns `kind: "api_key"` for a key, and your email for a member.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.