Repository Public
1---2title: Get Workspace3url: https://platform.claude.com/docs/en/api/beta/organization/workspaces/retrieve4---56# Get Workspace78**GET** `/v1/organizations/workspaces/{workspace_id}`910Get Workspace1112## Path parameters1314- `workspace_id: string`1516 ID of the Workspace.1718## Returns1920- `BetaWorkspace object`2122 - `type: "workspace"`2324 Object type.2526 For Workspaces, this is always `"workspace"`.2728 default: workspace2930 - `id: string`3132 ID of the Workspace.3334 - `archived_at: string or null`3536 RFC 3339 datetime string indicating when the Workspace was archived, or `null` if the Workspace is not archived.3738 format: date-time3940 - `compartment_id: string`4142 Identifier for this Workspace's encryption compartment. When you configure a43 customer-managed encryption key (CMEK) on AWS, reference this value in your44 KMS key-policy condition so the key is scoped to this compartment. On GCP and45 Azure, Anthropic enforces the compartment binding automatically; you do not46 need to reference this value in your key configuration. See the CMEK47 integration guide for the required key configuration; unless your organization48 is on Claude Platform on AWS, it includes a separate value used during key49 validation. On Claude Platform on AWS there is no separate validation value:50 the key is validated against this Workspace's own value when it is attached, so51 if your key policy uses the compartment condition, add this value to it before52 attaching the key.5354 - `created_at: string`5556 RFC 3339 datetime string indicating when the Workspace was created.5758 format: date-time5960 - `data_residency: BetaDataResidency`6162 Data residency configuration.6364 - `allowed_inference_geos: array of BetaAllowedInferenceGeo or "unrestricted"`6566 Permitted inference geo values. 'unrestricted' means all geos are allowed.6768 - `Geos = array of BetaAllowedInferenceGeo`6970 - `"global"`7172 - `"us"`7374 - `Unrestricted = "unrestricted"`7576 - `default_inference_geo: "global" or "us"`7778 Default inference geo applied when requests omit the parameter.7980 - `"global"`8182 - `"us"`8384 - `workspace_geo: "us"`8586 Geographic region for workspace data storage. Immutable after creation.8788 - `display_color: string`8990 Hex color code representing the Workspace in the Anthropic Console.9192 - `external_key_id: string or null`9394 ID of the customer-managed encryption key (CMEK) configuration to use for this95 Workspace. Setting this field requires CMEK to be enabled for your96 organization. When set, data stored for this Workspace is encrypted with the97 referenced key. Create key configurations with the External Keys API. On98 Claude Platform on AWS the value is the AWS KMS key ARN, and the key must be a99 single-Region key in the same AWS account and Region as the Workspace. On that100 platform the key is validated against this Workspace when it is attached, so a101 key-policy problem is reported as an error on this request. This field is write-once:102 once a key is attached to a Workspace it cannot be detached or replaced. To103 rotate key material, rotate the underlying key on your cloud KMS; the104 `external_key_id` stays the same.105106 - `name: string`107108 Name of the Workspace.109110 - `tags: map[string]`111112 User-defined tags as string key-value pairs. Keys may not begin with `anthropic`.113114## Example115116```bash117curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID \118 -H 'anthropic-version: 2023-06-01' \119 -H "X-Api-Key: $ANTHROPIC_API_KEY"120```121122### Response (200)123124```json125{126 "id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ",127 "archived_at": "2024-11-01T23:59:27.427722Z",128 "compartment_id": "f8a7b6c5-4d3e-4f1a-8b9c-0d1e2f3a4b5c",129 "created_at": "2024-10-30T23:58:27.427722Z",130 "data_residency": {131 "allowed_inference_geos": "unrestricted",132 "default_inference_geo": "global",133 "workspace_geo": "us"134 },135 "display_color": "#6C5BB9",136 "external_key_id": "ekey_01SDCCSbTxrXDpWc1phhtcfK",137 "name": "Workspace Name",138 "tags": {139 "env": "prod",140 "team": "platform"141 },142 "type": "workspace"143}144```145