Sign in and scopes
API keys
Section titled “API keys”An API key signs in as an agent member: a member of the workspace that is not a person. The key has exactly the agent’s access, so give the agent only the teams it needs.
- In Sort, go to Settings › Members and add an agent, or open one you manage.
- In its Manage access dialog, under API keys, select Create key.
- Name the key, and choose areas if the key needs less than all of them.
- Copy the key. Sort shows it only once and keeps only a hash.
Workspace owners manage the keys of every agent; admins those of the agents they manage. A key stops working at once when you revoke it, or when the agent is removed. Keys start with sort_key_, so a leaked key is easy to find.
Scopes
Section titled “Scopes”A scope limits a key or a token to areas of Sort. <area>:read allows the operations of the area that change nothing; <area>:write allows all of them. sort allows everything the member can do. A scope never adds access: the member’s own access still decides.
Operations that start Sort AI need sort: asking Sort AI (chats.send_message, chats.continue), and saving, changing or resuming a scheduled task. Sort AI reads and does everything the member can, so a narrower key or token cannot start it.
The areas are the first part of each operation name: pages, comments, notifications, signatures, teams, sharing, members, agents, chats, email, files, web, assistant, connections, imports, workspace, billing, preferences and events.
An OAuth app asks for scopes with the scope parameter, such as scope=teams:read pages:write. The person sees a short summary on the consent page and can allow less with Change. An app that asks for no scope gets sort.
A call outside the scopes fails with missing_scope, and scope in the error names the scope it needs.