Claude Platform Docs
AdminOrganization

Workspaces

Organize API keys, manage team access, and control costs with workspaces.

Workspaces provide a way to organize your API usage within an organization. Use workspaces to separate different projects, environments, or teams while maintaining centralized billing and administration.

How workspaces work

Every organization has a default workspace that cannot be renamed, archived, or deleted. It has no member list of its own, because access to it follows each member’s organization role. When you create additional workspaces, you can assign members, service accounts, Developer API keys, and resource limits to each one.

Key characteristics:

  • Workspace identifiers use the wrkspc_ prefix (for example, wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ).
  • Maximum 1,000 workspaces for each organization by default (archived workspaces and the default workspace don’t count). Creating a workspace at the limit returns a 400 error with the message Workspace limit reached. Contact your account team if you need more.
  • The default workspace has a wrkspc_ ID like any other workspace:
    • API responses carry that ID in the anthropic-workspace-id response header. Get WorkspacePreview with links to the API reference available — press Tab until focus enters the card, Escape to return. and Update WorkspacePreview with links to the API reference available — press Tab until focus enters the card, Escape to return. accept it, but Update Workspace rejects a new name for the default workspace.
    • List WorkspacesPreview with links to the API reference available — press Tab until focus enters the card, Escape to return. includes the default workspace only when you pass include_default=true.
    • The Usage and Cost Analytics API reports its usage and cost under that ID. The legacy Usage and Cost API reports show null for its workspace_id.
    • For a Developer API key scoped to the default workspace, the key’s scope field carries that ID.
  • Developer API keys are scoped to one workspace or to the organization. A key scoped to a workspace can only access resources within that workspace. With a key scoped to the organization, send a workspace ID header on each Claude API request to choose the workspace. For the key types, see Key types on the Developer API keys page.

Claude Code workspace

When a member of your organization first signs in to Claude Code 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.

The Claude Code workspace keeps Claude Code traffic separate from your other API workloads:

  • Claude Code mints a per-user API key in this workspace at sign-in. You cannot create keys in it manually from the Console.
  • A Claude Code key stops working if its owner is removed from the workspace or organization, unlike a workspace key.
  • Claude Code usage is rate-limited separately, and admins can cap its share of the organization’s limits under Rate limits in the Claude Console.
  • It is the only workspace that supports per-user monthly spend limits.

Workspace roles and permissions

Members can have different roles in each workspace, allowing fine-grained access control.

RolePermissions
Workspace UserUse playground only
Workspace Limited DeveloperCreate and manage API keys, use the API (with some limits in the Claude Console, listed after this table)
Workspace DeveloperCreate and manage API keys, use the API
Workspace AdminManage workspace settings and members (adding service accounts also requires the organization developer or admin role)
Workspace BillingView workspace billing information (inherited from organization billing role)

The following limits apply only to the Claude Console’s interface, not to the API. In the Console, a Workspace Limited Developer cannot:

  • Open or start sessions, open memory stores, or manage deployments for Claude Managed Agents
  • Download or delete files on the Files page

These limits help keep members from seeing session content by accident. They aren’t a security control. With an API key or ant auth login, a Workspace Limited Developer has the same access as a Workspace Developer. In the Admin API, the Workspace Limited Developer role is workspace_restricted_developer.

Role inheritance

  • Organization admins automatically receive Workspace Admin access to all workspaces.
  • Organization billing members automatically receive Workspace Billing access to all workspaces.
  • Organization users and developers must be explicitly added to each workspace.
  • Service accounts are added to workspaces on the Service accounts page (platform.claude.com/keys/service-accounts) in the Claude Console: select Add to workspace in the account’s menu or on its own page. To see the accounts in one workspace, filter the list by workspace. To add one, you must be an organization admin, or an organization developer who is a Workspace Admin in that workspace.

Key creation by role

Workspace Limited Developers, Workspace Developers, and Workspace Admins can create two key types in their workspace: personal keys and legacy workspace keys. The Claude Code workspace is an exception. A member’s organization role determines whether they can create service account keys, keys for the default workspace, or keys scoped to the organization. See Who can create which key on the Developer API keys page.

Access on cloud platforms

On the following platforms, your cloud provider’s identity and access management (IAM) controls who can call the API in a workspace. You don’t assign members or workspace roles, even in the Claude Console.

  • Claude Platform on AWS: A request names its workspace in the anthropic-workspace-id header. IAM policies that name the workspace’s Amazon Resource Name (ARN) grant or deny access to that workspace.
    • If you use a workspace for each of your customers, these policies can limit each IAM principal to one customer’s workspace.
    • A Claude Console session covers the whole organization, and some Console pages bypass IAM checks.
  • Claude Models on Google Cloud (Anthropic managed): A request names its workspace in the base URL. You grant IAM roles on your Google Cloud project, so a role applies to every workspace in that project.
    • Workspaces in that project keep resources apart, but they don’t limit who can read, use, or manage those resources.
    • When people or services must not reach certain resources, keep those resources in a separate project. Each project has its own Anthropic organization, so repeat the account setup in each project, starting from step 2 (enabling the services).
    • If you use a workspace for each of your customers, separation depends on your application sending the right workspace ID.

Managing workspaces

Using the Console

Create and manage workspaces on the Workspaces page in the Claude Console.

Create a workspace

  1. Open workspace settings

    In the Claude Console, go to the Workspaces page (platform.claude.com/settings/workspaces).

  2. Open the Create workspace page

    Click Create workspace to open the Create workspace page (platform.claude.com/settings/workspaces/new) in the Console.

  3. Configure the workspace

    Enter a workspace name and select a color for visual identification.

  4. Create the workspace

    Click Create workspace to finalize.

Edit workspace details

To modify a workspace’s name or color:

  1. Select the workspace from the list.
  2. Open the More actions menu (three dots) and select Edit details.
  3. Update the name or color and save your changes.

Add members to a workspace

  1. In the Claude Console, go to the Members page (platform.claude.com/settings/members).
  2. Click Add to workspace.
  3. Select the workspace, the organization member to add, and their workspace role.
  4. Click Add to workspace to confirm.

Remove members from a workspace

  1. On the Members page in the Claude Console, select the workspace from the Workspace dropdown menu. If it shows All, Remove member removes the member from your organization instead.
  2. At the end of the member’s row, open the More actions menu (three dots) and select Remove member.
  3. Click Remove to confirm.

Set workspace limits

You set a workspace’s spend limits and rate limits on different Console pages. For the steps, see Setting workspace limits.

Archive a workspace

If you archive the Claude Code workspace, members of your organization can no longer sign in to Claude Code through Console billing. See this page’s Claude Code workspace section.

To archive a workspace, open its More actions menu (three dots) and select Archive workspace. Archiving deactivates the workspace and keeps its historical data for reporting.

The Admin API still lists the workspace’s keys, marked as archived.

Using the Admin API

Programmatically manage workspaces using the Admin API.

Authenticate with an Admin API key or an OAuth token with the org:admin scope. You can also use a personal or service account key scoped to the organization. A personal or service account key has the permissions of its user or service account. Keys scoped to a single workspace, including workspace keys, don’t work. See the Admin API page’s Authentication section.

On Claude Models on Google Cloud (Anthropic managed) and Claude Platform on AWS, use the platform’s base URL and credentials instead. See the Admin API page’s Cloud platforms section.

The following examples read the Admin API key from the ANTHROPIC_API_KEY environment variable. The SDK exposes these endpoints under client.organization.workspaces.

Create a workspace:

client = anthropic.Anthropic()

workspace = client.organization.workspaces.create(name="Production")

print(f"id: {workspace.id}")
print(f"name: {workspace.name}")

List workspaces:

client = anthropic.Anthropic()

workspaces = client.organization.workspaces.list(limit=10, include_archived=False)

# Automatically fetches more pages as needed, so `limit` sets the page size, not the total.
for workspace in workspaces:
    print(f"{workspace.id}: {workspace.name}")

Archive a workspace:

client = anthropic.Anthropic()

workspace = client.organization.workspaces.archive("wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ")

print(f"id: {workspace.id}")
print(f"archived_at: {workspace.archived_at}")

For complete parameter details and response schemas, see the Workspaces API referencePreview with links to the API reference available — press Tab until focus enters the card, Escape to return..

Managing workspace members

Add a member to a workspace:

client = anthropic.Anthropic()

member = client.organization.workspaces.members.add(
    "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ",
    user_id="user_01WxYzAbCdEfGhJkMnPqRsTu",
    workspace_role="workspace_developer",
)

print(f"user_id: {member.user_id}")
print(f"workspace_role: {member.workspace_role}")

Update a member’s role:

client = anthropic.Anthropic()

member = client.organization.workspaces.members.update(
    "user_01WxYzAbCdEfGhJkMnPqRsTu",
    workspace_id="wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ",
    workspace_role="workspace_admin",
)

print(f"user_id: {member.user_id}")
print(f"workspace_role: {member.workspace_role}")

Remove a member from a workspace:

client = anthropic.Anthropic()

removed_member = client.organization.workspaces.members.remove(
    "user_01WxYzAbCdEfGhJkMnPqRsTu",
    workspace_id="wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ",
)

print(f"user_id: {removed_member.user_id}")

For complete parameter details, see the Workspace Members API referencePreview with links to the API reference available — press Tab until focus enters the card, Escape to return..

API keys and resource scoping

Apart 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 a key’s requests run in depends on the key’s type and scope: see Key types on the Developer API keys page.

On Claude Models on Google Cloud (Anthropic managed) and Claude Platform on AWS, these key types don’t apply. The request names the workspace, as Access on cloud platforms describes.

Resources scoped to workspaces include:

Prompt caches are also isolated by workspace on the Claude API and on some cloud platforms.

Some resources are managed differently:

  • MCP tunnels are managed with a workspace:manage_tunnels OAuth token obtained through Workload Identity Federation, not an API key.
    • 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.
    • The cap of 10 active tunnels applies organization-wide.
    • In the Claude Console, managing tunnels requires the admin organization role. Organization developers can view tunnels there but not change them.
  • Workspaces themselves and organization members are managed at the organization level through the Admin API. For the credentials it accepts, see Using the Admin API.

To find a workspace’s ID, use either of these:

  • The ID column on the Workspaces page in the Claude Console. The page lists the default workspace too.
  • List WorkspacesPreview with links to the API reference available — press Tab until focus enters the card, Escape to return. in the Admin API. It includes the default workspace only when you pass include_default=true.

Identify the workspace behind an API response

Claude API responses include an anthropic-workspace-id header alongside the request-id and anthropic-organization-id response headers. Its value is the wrkspc_-prefixed ID of the workspace that the request’s API key or access token resolved to, including when that workspace is the default workspace. For example, a successful response includes headers like these:

HTTP/1.1 200 OK
request-id: req_018EeWyXxfu5pfWkrYcMdjWG
anthropic-organization-id: 0d0e7a3b-52f1-4c7e-9a51-3f6f2f7c1b9e
anthropic-workspace-id: wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ

The 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.

The 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 Developer API key scope), not to an Admin API key:

client = anthropic.Anthropic()

response = client.messages.with_raw_response.create(
    model="claude-opus-5-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello, Claude"}],
)
workspace_id = response.headers.get("anthropic-workspace-id")
print(f"Workspace ID: {workspace_id}")
Output
Workspace ID: wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ

The same accessors read the header from other Claude API endpoints too, including the Claude Managed Agents APIs. For example, read anthropic-workspace-id from the response that creates a session to record which workspace the session belongs to.

With the workspace ID from a response, you can:

  • Confirm which workspace’s usage, cost, and rate limits the request counted toward
  • Match it against the workspace_id field in Usage and Cost Analytics API rows, which carry this same ID for the default workspace
  • Match it against the scope field of Developer API keys in the Admin API, which carries the ID of the workspace that a key is scoped to, including the default workspace
  • Pass it to Get WorkspacePreview with links to the API reference available — press Tab until focus enters the card, Escape to return. with an Admin API key to check whether it’s your default workspace, which comes back with "name": "Default"
  • Find the request’s resources, such as sessions, files, message batches, and skills: look up the workspace’s name on the Workspaces page in the Claude Console, then select it in the workspace picker on a page such as Files

Workspace limits

You can set custom spend and rate limits for each workspace to protect against overuse and ensure fair resource distribution.

Setting workspace limits

Workspace limits can keep a workspace below your organization’s limits, but they can’t raise those limits:

  • Spend limits: Cap monthly spending for a workspace. To set these, go to Spend limits in the Claude Console (platform.claude.com/spending/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.
  • 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, select the workspace from the Workspace dropdown menu, and click Edit next to a model.

A spend limit on the default workspace might not count or stop some usage in that workspace. This includes usage from the Claude Console (such as playground) and from Claude Managed Agents sessions. It also includes Claude Code or Claude Desktop usage when a member signs in with a Claude Console account and uses the default workspace. Your organization’s spend limit applies to all of this usage.

For detailed information on rate limits and how they work, see Rate limits. You can also read your current organization and workspace rate limits and set workspace rate limits programmatically with the Rate Limits API, which stores a value above the organization’s limit but still enforces the lower of the two.

Usage and cost tracking

Track usage and costs by workspace using the Usage and Cost Analytics API:

client = anthropic.Anthropic()

rows = client.beta.organization.analytics.usage.list(
    starting_at="2026-09-01T00:00:00Z",
    ending_at="2026-09-08T00:00:00Z",
    time_bucket_width="1d",
    workspace_ids=["wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"],
    group_by=["workspace_id"],
)

for row in rows:
    print(f"{row.starting_at} {row.group.workspace_id}: {row.usage.total_tokens}")

Usage and costs in the default workspace are reported under the default workspace’s own ID.

Common use cases

Environment separation

Create separate workspaces for development, staging, and production:

WorkspacePurpose
DevelopmentTesting and experimentation with lower rate limits
StagingPre-production testing with production-like limits
ProductionLive traffic with full rate limits and monitoring

Team or department isolation

Assign workspaces to different teams for cost allocation and access control:

  • Engineering team with developer access
  • Data science team with their own API keys
  • Support team with limited access for customer tools

These examples rely on workspace roles and API keys, which work differently on Claude Models on Google Cloud (Anthropic managed) and Claude Platform on AWS. Before you plan your workspaces, read Access on cloud platforms.

Project-based organization

Create workspaces for specific projects or products to track usage and costs separately.

Best practices

  1. Plan your workspace structure

    Consider how you’ll organize workspaces before creating them. Think about billing, access control, and usage tracking needs.

  2. Use meaningful names

    Name workspaces clearly to indicate their purpose (for example, “Production - Customer Chatbot” or “Dev - Internal Tools”).

  3. Set appropriate limits

    Configure spend and rate limits to prevent unexpected costs and ensure fair resource distribution.

  4. Audit access regularly

    Review workspace membership periodically to ensure only appropriate users have access.

  5. Monitor usage

    Use the Usage and Cost Analytics API to track workspace-level consumption.

FAQ

See also

Was this page helpful?