cURL
curl "https://api.anthropic.com/v1/organizations/workspaces/wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ" \
--header "anthropic-version: 2023-06-01" \
--header "content-type: application/json" \
--header "x-api-key: $ANTHROPIC_ADMIN_KEY"{
"archived_at": "2024-11-01T23:59:27.427722Z",
"created_at": "2023-11-07T05:31:56Z",
"display_color": "<string>",
"id": "<string>",
"name": "<string>",
"type": "workspace"
}获取工作区
GET
/
v1
/
organizations
/
workspaces
/
{workspace_id}
cURL
curl "https://api.anthropic.com/v1/organizations/workspaces/wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ" \
--header "anthropic-version: 2023-06-01" \
--header "content-type: application/json" \
--header "x-api-key: $ANTHROPIC_ADMIN_KEY"{
"archived_at": "2024-11-01T23:59:27.427722Z",
"created_at": "2023-11-07T05:31:56Z",
"display_color": "<string>",
"id": "<string>",
"name": "<string>",
"type": "workspace"
}Headers
Path Parameters
ID of the Workspace.
Response
Successful Response
RFC 3339 datetime string indicating when the Workspace was archived, or null if the Workspace is not archived.
Example:
"2024-11-01T23:59:27.427722Z"
RFC 3339 datetime string indicating when the Workspace was created.
Example:
"2024-10-30T23:58:27.427722Z"
Hex color code representing the Workspace in the Anthropic Console.
Example:
"#6C5BB9"
ID of the Workspace.
Example:
"wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
Name of the Workspace.
Example:
"Workspace Name"
Object type.
For Workspaces, this is always "workspace".
Available options:
workspace Allowed value:
"workspace"Was this page helpful?
⌘I