Before you begin
Every account, personal or team, has a Default workspace. It holds every key you haven’t put in another workspace, and it can’t be renamed or archived. A workspace changes nothing about how a key works on its own. The balance stays shared across the account, and a key keeps its secret, limit, and spend wherever it is. Only the owner and admins of the account create, rename, archive, and manage workspaces. Each person switches between the workspaces they work in with the switcher card.Create a workspace
- Open Account → Workspaces. The page lists each workspace with how many keys it holds and how much they have spent.
- Create the workspace and give it a name.
- Select the workspace’s name to open it.
Choose who works in a workspace
The owner and admins of the account administer every workspace. A member works in Default and in the workspaces an admin adds them to. The switcher, the API Keys page and the key form show a member only those.- Invite the person to the organization first.
- Open the workspace’s Settings and select Manage members, or use the same item in its row menu on Workspaces. Everyone in the organization is listed, and the owner and admins show as administering it already.
- Pick the person’s workspace role.
Workspace roles
Each person has one of these roles in a workspace:
A member who administers a workspace also opens Workspaces, Metrics and Logs, which show only the workspaces they administer. Billing has no keys in any workspace and sees the spend of all of them on Account → Metrics.
Taking a person out of a workspace disables the keys they created there and passes them to its admins, as when someone leaves the organization.
Choose who owns a key
A new key goes to the workspace you’re in. It belongs to the person who creates it and is disabled when they leave the organization. When the account has more than one person, admins pick the owner:- Me: the admin who creates the key.
- Teammate: a person who works in the workspace.
- Workspace: the workspace itself. A workspace key has no person behind it, so a service that uses it keeps running when people come and go.
Move a key to another workspace
Only the owner and admins move keys.- Open API Keys in the key’s workspace.
- In the key’s row menu, select Move to workspace and pick the workspace.
Archive a workspace
An admin archives a workspace from its Settings page. Archiving a workspace disables its keys and keeps them in it, along with its budget, and spend history. Its keys can’t be turned back on there. To use an archived workspace’s key again:- Move the key to a live workspace.
- Enable it from its row menu.
Troubleshooting
400 when you enable a key
The key is in an archived workspace, which keeps its keys disabled. Move it to a live workspace first, then enable it.
A workspace address returns 404
You don’t work in that workspace. Ask an admin of the account to add you.
See also
- Budgets and policies: cap a workspace’s spending, key lifetime, and models.
- API keys: create and manage the keys in a workspace.
- Check balance and spending with the API: report spend per workspace.