๐Ÿ“„ claude/api/admin-api/workspaces/list-workspaces

File: list-workspaces.md | Updated: 11/15/2025

Source: https://docs.claude.com/en/api/admin-api/workspaces/list-workspaces

Agent Skills are now available! Learn more about extending Claude's capabilities with Agent Skills .

Claude Docs home pagelight logodark logo

US

English

Search...

Ctrl K

Search...

Navigation

Workspace Management

List Workspaces

Home Developer Guide API Reference Model Context Protocol (MCP) Resources Release Notes

cURL

cURL

Copy

curl "https://api.anthropic.com/v1/organizations/workspaces" \
  --header "anthropic-version: 2023-06-01" \
  --header "content-type: application/json" \
  --header "x-api-key: $ANTHROPIC_ADMIN_KEY"

200

4XX

Copy

{
  "data": [\
    {\
      "archived_at": "2024-11-01T23:59:27.427722Z",\
      "created_at": "2024-10-30T23:58:27.427722Z",\
      "display_color": "#6C5BB9",\
      "id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ",\
      "name": "Workspace Name",\
      "type": "workspace"\
    }\
  ],
  "first_id": "<string>",
  "has_more": true,
  "last_id": "<string>"
}

GET

/

v1

/

organizations

/

workspaces

cURL

cURL

Copy

curl "https://api.anthropic.com/v1/organizations/workspaces" \
  --header "anthropic-version: 2023-06-01" \
  --header "content-type: application/json" \
  --header "x-api-key: $ANTHROPIC_ADMIN_KEY"

200

4XX

Copy

{
  "data": [\
    {\
      "archived_at": "2024-11-01T23:59:27.427722Z",\
      "created_at": "2024-10-30T23:58:27.427722Z",\
      "display_color": "#6C5BB9",\
      "id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ",\
      "name": "Workspace Name",\
      "type": "workspace"\
    }\
  ],
  "first_id": "<string>",
  "has_more": true,
  "last_id": "<string>"
}

Headers

โ€‹

x-api-key

string

required

Your unique Admin API key for authentication.

This key is required in the header of all Admin API requests, to authenticate your account and access Anthropic's services. Get your Admin API key through the Console .

โ€‹

anthropic-version

string

required

The version of the Claude API you want to use.

Read more about versioning and our version history here .

Query Parameters

โ€‹

include_archived

boolean

default:false

Whether to include Workspaces that have been archived in the response

โ€‹

before_id

string

ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object.

โ€‹

after_id

string

ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object.

โ€‹

limit

integer

default:20

Number of items to return per page.

Defaults to 20. Ranges from 1 to 1000.

Required range: 1 <= x <= 1000

Response

200

application/json

Successful Response

โ€‹

data

Workspace ยท object[]

required

Show child attributes

โ€‹

first_id

string | null

required

First ID in the data list. Can be used as the before_id for the previous page.

โ€‹

has_more

boolean

required

Indicates if there are more results in the requested page direction.

โ€‹

last_id

string | null

required

Last ID in the data list. Can be used as the after_id for the next page.

Was this page helpful?

YesNo

Get Workspace Update Workspace

Assistant

Responses are generated using AI and may contain mistakes.