列出工作区
GET
https://api.anthropic.com/v1/organizations/workspaces
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.anthropic.com/v1/organizations/workspaces' \
--header 'anthropic-version: 2023-06-01' \
--header 'x-api-key: ' \
--header 'content-type: application/json' \
--data-raw ''
响应示例响应示例
200 - 成功示例
{
"data": [
{
"id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ",
"type": "workspace",
"name": "Workspace Name",
"created_at": "2024-10-30T23:58:27.427722Z",
"archived_at": "2024-11-01T23:59:27.427722Z",
"display_color": "#6C5BB9"
}
],
"has_more": true,
"first_id": "<string>",
"last_id": "<string>"
}
请求参数
Header 参数
anthropic-version
string
必需
示例值:
2023-06-01
content-type
string
必需
示例值:
application/json
x-api-key
string
必需
示例值:
{{ANTHROPIC_ADMIN_KEY}}
返回响应
修改于 2025-02-25 10:11:31