workspaces changedmanage-claude/workspaces
Nearest release: v2.1.325, published 21 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+52added
Lines−28removed
From line
13
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits33to this page, all time
The whole hunk
from line 13, old and new numbered
/
from line 13
1313Key characteristics:
1414
1515* **Workspace identifiers** use the `wrkspc_` prefix (for example, `wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ`).
16
1617* **Maximum 100 workspaces** for each organization by default (archived workspaces don’t count). Contact your account team if you need more.
17* **Default Workspace** has a `wrkspc_` ID like any other workspace (returned in the [`anthropic-workspace-id` response header](https://platform.claude.com/docs/en/manage-claude/workspaces#identify-the-workspace-behind-an-api-response) and accepted by [Get Workspace](https://platform.claude.com/docs/en/api/organization/workspaces/retrieve)), but it appears in [List Workspaces](https://platform.claude.com/docs/en/api/organization/workspaces/list) results only when you pass `include_default=true`. The [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) reports its usage and cost under that ID, whereas the legacy [Usage and Cost API](https://platform.claude.com/docs/en/manage-claude/usage-cost-api) reports show `null` for its `workspace_id` (an API key’s `scope` field carries the real ID for a key bound to the Default Workspace).
18* **API keys** can be scoped to a single workspace. In this case, they can only access resources within that workspace. Other API keys aren’t scoped to a workspace. With one of these keys, send a [workspace ID header](https://platform.claude.com/docs/en/manage-claude/authentication#select-a-workspace) on each request to choose the workspace. The key’s user or service account must have access to that workspace.
1918
19* **Default Workspace** has a `wrkspc_` ID like any other workspace:
20
21 * API responses carry that ID in the [`anthropic-workspace-id` response header](https://platform.claude.com/docs/en/manage-claude/workspaces#identify-the-workspace-behind-an-api-response), and [Get Workspace](https://platform.claude.com/docs/en/api/organization/workspaces/retrieve) accepts it.
22 * [List Workspaces](https://platform.claude.com/docs/en/api/organization/workspaces/list) includes the Default Workspace only when you pass `include_default=true`.
23 * The [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) reports its usage and cost under that ID. The legacy [Usage and Cost API](https://platform.claude.com/docs/en/manage-claude/usage-cost-api) reports show `null` for its `workspace_id`.
24 * For an API key bound to the Default Workspace, the key’s `scope` field carries that ID.
25
26* **API keys** can be scoped to a single workspace. In this case, they can only access resources within that workspace. Other API keys aren’t scoped to a workspace. With one of these keys, send a [workspace ID header](https://platform.claude.com/docs/en/manage-claude/authentication#select-a-workspace) on each request to choose the workspace. The key’s user or service account must have access to that workspace. For the key types, see [API keys and resource scoping](https://platform.claude.com/docs/en/manage-claude/workspaces#api-keys-and-resource-scoping).
27
2028### Claude Code workspace
2129
2230When a member of your organization first signs in to [Claude Code](https://code.claude.com/docs/en/overview) with their Claude Console account, Anthropic automatically creates a **Claude Code** workspace in the organization and adds that member to it. Every subsequent member who signs in to Claude Code is added the same way.
from line 44
3644
3745Members can have different roles in each workspace, allowing fine-grained access control.
3846
39| Role | Permissions |
40| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
41| Workspace User | Use playground only |
42| Workspace Limited Developer | Create and manage API keys, use the API<br />For [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview) in the Claude Console, members with this role cannot open or start sessions, open memory stores, or manage deployments. They also cannot download or delete files on the Console’s [Files](https://platform.claude.com/files) page. These limits apply only to the Console’s interface, not to the API. |
43| Workspace Developer | Create and manage API keys, use the API |
44| Workspace Admin | Full control over workspace settings and members |
45| Workspace Billing | View workspace billing information (inherited from organization billing role) |
47| Role | Permissions |
48| --------------------------- | --------------------------------------------------------------------------------------------------------- |
49| Workspace User | Use playground only |
50| Workspace Limited Developer | Create and manage API keys, use the API (with some limits in the Claude Console, listed after this table) |
51| Workspace Developer | Create and manage API keys, use the API |
52| Workspace Admin | Full control over workspace settings and members |
53| Workspace Billing | View workspace billing information (inherited from organization billing role) |
4654
55The following limits apply only to the Claude Console’s interface, not to the API. In the Console, a Workspace Limited Developer cannot:
56
57* Open or start sessions, open memory stores, or manage deployments for [Claude Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
58* Download or delete files on the [Files](https://platform.claude.com/files) page
59
4760### Role inheritance
4861
4962* **Organization admins** automatically receive Workspace Admin access to all workspaces.
from line 133
120133
121134#### Set workspace limits
122135
123You set a workspace’s rate limits and spend limits in different places:
136You set a workspace’s spend limits and rate limits on different Console pages. For the steps, see [Setting workspace limits](https://platform.claude.com/docs/en/manage-claude/workspaces#setting-workspace-limits).
124137
125* **Rate limits:** Under [Rate limits in the Claude Console](https://platform.claude.com/usage/limits), select the workspace from the **Workspace** dropdown menu and click **Edit** next to a model to set limits for requests per minute, input tokens, or output tokens.
126* **Spend limits:** On the [Workspaces](https://platform.claude.com/settings/workspaces) page in the Claude Console, select the workspace. In the panel that opens, click **Spend limits** to cap monthly spending and configure alerts when spending reaches certain thresholds.
127
128138#### Archive a workspace
129139
130140To archive a workspace, open its **More actions** menu (three dots) and select **Archive workspace**. Archiving:
from line 152
142152Programmatically manage workspaces using the [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api).
143153
144154<Note>
145 Admin API endpoints accept an [Admin API key](https://platform.claude.com/docs/en/manage-claude/admin-api-keys), an `org:admin` OAuth token, or a personal or service account key that isn’t scoped to a specific workspace. Workspace keys don’t work there. See [Authentication](https://platform.claude.com/docs/en/manage-claude/admin-api#authentication).
155 Admin API endpoints accept an [Admin API key](https://platform.claude.com/docs/en/manage-claude/admin-api-keys), an `org:admin` OAuth token, or a personal or service account key that isn’t scoped to a specific workspace. Keys scoped to a single workspace, including [workspace keys](https://platform.claude.com/docs/en/manage-claude/workspaces#api-keys-and-resource-scoping), don’t work there. See [Admin API authentication](https://platform.claude.com/docs/en/manage-claude/admin-api#authentication).
146156</Note>
147157
148The following SDK and CLI examples construct the default client, which reads the Admin API key from the `ANTHROPIC_API_KEY` environment variable; the SDK exposes these endpoints under `client.organization.workspaces` (csharp, go: `client.Organization.Workspaces`; java: `client.organization().workspaces()`; php: `$client->organization->workspaces`). SDK list methods fetch further pages on demand, so `limit` sets the page size; the PHP, Ruby, and curl examples return one page.
158The following examples read the Admin API key from the `ANTHROPIC_API_KEY` environment variable. The SDK exposes these endpoints under `client.organization.workspaces` (csharp, go: `client.Organization.Workspaces`; java: `client.organization().workspaces()`; php: `$client->organization->workspaces`).
149159
150160Create a workspace:
151161
from line 257
247257
248258<CodeGroup>
249259 ```bash cURL
260 # Returns one page.
250261 curl "https://api.anthropic.com/v1/organizations/workspaces?limit=10&include_archived=false" \
251262 -H "x-api-key: $ANTHROPIC_API_KEY" \
252263 -H "anthropic-version: 2026-10-21"
from line 272
261272
262273 workspaces = client.organization.workspaces.list(limit=10, include_archived=False)
263274
275 # Automatically fetches more pages as needed, so `limit` sets the page size, not the total.
264276 for workspace in workspaces:
265277 print(f"{workspace.id}: {workspace.name}")
266278 ```
from line 285
273285 include_archived: false
274286 });
275287
288 // Automatically fetches more pages as needed, so `limit` sets the page size, not the total.
276289 for await (const workspace of workspaces) {
277290 console.log(`${workspace.id}: ${workspace.name}`);
278291 }
from line 300
287300 IncludeArchived = false
288301 });
289302
303 // Automatically fetches more pages as needed, so `Limit` sets the page size, not the total.
290304 await foreach (var workspace in workspaces.Paginate())
291305 {
292306 Console.WriteLine($"{workspace.ID}: {workspace.Name}");
from line 315
301315 IncludeArchived: anthropic.Bool(false),
302316 })
303317
318 // Automatically fetches more pages as needed, so `Limit` sets the page size, not the total.
304319 for workspaces.Next() {
305320 workspace := workspaces.Current()
306321 fmt.Printf("%s: %s\n", workspace.ID, workspace.Name)
from line 337
322337 .build();
323338 var workspaces = client.organization().workspaces().list(params);
324339
340 // Automatically fetches more pages as needed, so `limit` sets the page size, not the total.
325341 for (var workspace : workspaces.autoPager()) {
326342 IO.println(workspace.id() + ": " + workspace.name());
327343 }
from line 352
336352 includeArchived: false,
337353 );
338354
339 foreach ($workspaces->getItems() as $workspace) {
355 // Automatically fetches more pages as needed, so `limit` sets the page size, not the total.
356 foreach ($workspaces->pagingEachItem() as $workspace) {
340357 echo "{$workspace->id}: {$workspace->name}\n";
341358 }
342359 ```
from line 363
346363
347364 workspaces = client.organization.workspaces.list(limit: 10, include_archived: false)
348365
349 workspaces.data.each do |workspace|
366 # Automatically fetches more pages as needed, so `limit` sets the page size, not the total.
367 workspaces.auto_paging_each do |workspace|
350368 puts "#{workspace.id}: #{workspace.name}"
351369 end
352370 ```
from line 841
823841
824842## API keys and resource scoping
825843
826Every request runs in exactly one workspace and can only access resources within that workspace. Which workspace depends on the [key type](https://platform.claude.com/docs/en/manage-claude/authentication#key-types):
844Apart from organization-level requests, such as Admin API requests, every request runs in exactly one workspace. It can only access resources within that workspace. Which workspace depends on the [key type](https://platform.claude.com/docs/en/manage-claude/authentication#key-types):
827845
828846* A **workspace key** (a legacy key without an owner) belongs to the workspace it was created in and always runs there.
829847* A **personal key** or **service account key** acts as its user or service account. A single-workspace key always runs in the workspace chosen when it was created. A key that isn’t scoped to a workspace runs in the workspace named by each request’s `anthropic-workspace-id` header. Accounts must have access to the workspace to use it.
from line 854
836854
837855Some resources are managed differently:
838856
839* **[MCP tunnels](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/overview)** are managed with a `workspace:manage_tunnels` OAuth token obtained through [Workload Identity Federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation), not an API key. Tunnels are created in a workspace, and the Console **MCP tunnels** list and the Managed Agent server picker show tunnels in the current workspace only; the cap of 10 active tunnels applies organization-wide. Tunnel management requires a role with tunnel management permissions; organization developers can view but not change them.
857* **[MCP tunnels](https://platform.claude.com/docs/en/agents-and-tools/mcp-tunnels/overview)** are managed with a `workspace:manage_tunnels` OAuth token obtained through [Workload Identity Federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation), not an API key.
858
859 * Tunnels are created in a workspace. The Console **MCP tunnels** list and the MCP server picker for Claude Managed Agents show tunnels in the current workspace only.
860 * The cap of 10 active tunnels applies organization-wide.
861 * Managing tunnels requires the Manage tunnels permission, which organization admins and owners have by default. Organization developers can view tunnels but not change them.
862
840863* **Workspaces** themselves and **organization members** are managed at the organization level through the [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api), using an Admin API key, an `org:admin` OAuth token, or a personal or service account key that isn’t scoped to a specific workspace.
841864
842865To look up your organization’s workspace IDs, call the [List Workspaces](https://platform.claude.com/docs/en/api/organization/workspaces/list) endpoint (pass `include_default=true` to include the Default Workspace) or find them on the [Workspaces](https://platform.claude.com/settings/workspaces) page in the Claude Console.
from line 881
858881
859882The header is absent when the credential doesn’t resolve to a workspace (for example, on Admin API requests) or when the request fails before authentication completes, such as a 401 error.
860883
861The following examples send a Messages API request and read the workspace ID from the response headers:
884The following examples send a Messages API request and read the workspace ID from the response headers. Set `ANTHROPIC_API_KEY` to a key scoped to a single workspace (see [API keys and resource scoping](https://platform.claude.com/docs/en/manage-claude/workspaces#api-keys-and-resource-scoping)), not to an Admin API key:
862885
863886<CodeGroup>
864887 ```bash cURL
from line 1033
10101033With the workspace ID from a response, you can:
10111034
10121035* Confirm which workspace’s usage, cost, and [rate limits](https://platform.claude.com/docs/en/api/rate-limits) the request counted toward
1013* Match it against the `workspace_id` field in [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) rows, which carry this same ID for the Default Workspace, and against the `scope` field of API keys in the [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api), which carries the real ID of the workspace a key is bound to, including the Default Workspace
1036* Match it against the `workspace_id` field in [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) rows, which carry this same ID for the Default Workspace
1037* Match it against the `scope` field of API keys in the [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api), which carries the real ID of the workspace that a key is bound to, including the Default Workspace
10141038* Check whether it’s your Default Workspace’s ID by passing it to [Get Workspace](https://platform.claude.com/docs/en/api/organization/workspaces/retrieve) with an [Admin API key](https://platform.claude.com/docs/en/manage-claude/admin-api-keys): the Default Workspace comes back with `"name": "Default"`, even though [List Workspaces](https://platform.claude.com/docs/en/api/organization/workspaces/list) omits it unless you pass `include_default=true`
1015* Open that workspace in the [Console](https://platform.claude.com/settings/workspaces) to find the request’s resources, such as sessions, files, message batches, and skills
1039* Find the request’s resources, such as sessions, files, message batches, and skills: look up the workspace’s name on the [Workspaces](https://platform.claude.com/settings/workspaces) page in the Claude Console, then select it in the workspace picker on a page such as [Files](https://platform.claude.com/files)
10161040
10171041## Workspace limits
10181042
from line 1044
10201044
10211045### Setting workspace limits
10221046
1023You can set workspace limits lower than (but not higher than) your organization’s limits:
1047Workspace limits can keep a workspace below your organization’s limits, but they can’t raise those limits:
10241048
1025* **Spend limits:** Cap monthly spending for a workspace. To set these, go to the [Workspaces](https://platform.claude.com/settings/workspaces) page (`platform.claude.com/settings/workspaces`) in the Claude Console and select the workspace. In the panel that opens, click **Spend limits**.
1049* **Spend limits:** Cap monthly spending for a workspace. To set these, go to [Spend limits in the Claude Console](https://platform.claude.com/settings/spend-limits) (`platform.claude.com/settings/spend-limits`). Under **Workspace limits**, select the workspace from the dropdown menu. Then click **Set limit** or **Adjust limit** next to **Monthly spend limit**. If Anthropic bills your organization directly, you can also set up email alerts for when spending reaches an amount you choose: click **Add notification** or **Edit** next to **Email notifications**.
10261050* **Rate limits:** Limit requests per minute, input tokens per minute, or output tokens per minute. To set these, go to [Rate limits in the Claude Console](https://platform.claude.com/usage/limits), select the workspace from the **Workspace** dropdown menu, and click **Edit** next to a model.
10271051
10281052<Note>
from line 1269
12451269
12461270<AccordionGroup>
12471271 <Accordion title="What’s the Default Workspace?">
1248 Every organization has a “Default Workspace” that cannot be renamed, archived, or deleted. Like every workspace, it has a `wrkspc_` ID: the API returns it in the [`anthropic-workspace-id` response header](https://platform.claude.com/docs/en/manage-claude/workspaces#identify-the-workspace-behind-an-api-response), and you can pass it to [Get Workspace](https://platform.claude.com/docs/en/api/organization/workspaces/retrieve) and [Update Workspace](https://platform.claude.com/docs/en/api/organization/workspaces/update). It has no member list of its own, because access to it follows each member’s organization role. It appears in [List Workspaces](https://platform.claude.com/docs/en/api/organization/workspaces/list) results only when you pass `include_default=true`. The [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) reports its usage and cost under its real ID. The legacy [Usage and Cost API](https://platform.claude.com/docs/en/manage-claude/usage-cost-api) reports show `null` for `workspace_id`. For an API key that belongs to it, the key’s `scope` field carries the workspace’s real ID.
1272 Every organization has a “Default Workspace” that cannot be renamed, archived, or deleted. Like every workspace, it has a `wrkspc_` ID. The API returns that ID in the [`anthropic-workspace-id` response header](https://platform.claude.com/docs/en/manage-claude/workspaces#identify-the-workspace-behind-an-api-response), and you can pass it to [Get Workspace](https://platform.claude.com/docs/en/api/organization/workspaces/retrieve) and [Update Workspace](https://platform.claude.com/docs/en/api/organization/workspaces/update). Update Workspace rejects a new name for it. The Default Workspace has no member list of its own, because access to it follows each member’s organization role. It appears in [List Workspaces](https://platform.claude.com/docs/en/api/organization/workspaces/list) results only when you pass `include_default=true`. The [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api) reports its usage and cost under its real ID. The legacy [Usage and Cost API](https://platform.claude.com/docs/en/manage-claude/usage-cost-api) reports show `null` for `workspace_id`. For an API key that belongs to it, the key’s `scope` field carries the workspace’s real ID.
12491273 </Accordion>
12501274
12511275 <Accordion title="What’s the Claude Code workspace?">
from line 1289
12651289 </Accordion>
12661290
12671291 <Accordion title="Can organization admin or billing members’ workspace roles be changed?">
1268 Organization admins and billing members cannot have their workspace roles changed or be removed from workspaces while they hold those organization roles (with one exception: billing members can be upgraded to a Workspace Admin role). For everyone else covered by this constraint, change their organization role first to change their workspace access.
1292 Not while they hold those organization roles, with one exception: billing members can be upgraded to the Workspace Admin role. Organization admins and billing members also cannot be removed from workspaces while they hold those roles. To change their workspace access in any other way, change their organization role first.
12691293 </Accordion>
12701294
12711295 <Accordion title="What happens to workspace access when organization roles change?">
from line 1299
12751299 <Accordion title="What happens to API keys when a user is removed from a workspace?">
12761300 Behavior depends on the [key type](https://platform.claude.com/docs/en/manage-claude/authentication#key-types).
12771301
1278 A personal or service account key stops working in a workspace shortly after its user or service account is removed from it. A service account key keeps working even if the user who created it is removed. Workspace API keys continue to work. In the [Claude Code workspace](https://platform.claude.com/docs/en/manage-claude/workspaces#claude-code-workspace), each key is bound to the member who created it and stops working when that member is removed.
1302 A personal or service account key stops working in a workspace shortly after its user or service account is removed from it. A service account key keeps working even if the user who created it is removed. Workspace keys (legacy keys without an owner) continue to work. In the [Claude Code workspace](https://platform.claude.com/docs/en/manage-claude/workspaces#claude-code-workspace), each key is bound to the member who created it and stops working when that member is removed.
12791303
12801304 Personal keys are archived when their user is removed from the organization. If the user is re-invited, they need to create new keys; archived keys are not restored.
12811305 </Accordion>
No line in this hunk matches that.