cURL
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"{
"data": [
{
"archived_at": "2024-11-01T23:59:27.427722Z",
"created_at": "2023-11-07T05:31:56Z",
"display_color": "<string>",
"id": "<string>",
"name": "<string>",
"type": "workspace"
}
],
"first_id": "<string>",
"has_more": true,
"last_id": "<string>"
}列出工作区
GET
/
v1
/
organizations
/
workspaces
cURL
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"{
"data": [
{
"archived_at": "2024-11-01T23:59:27.427722Z",
"created_at": "2023-11-07T05:31:56Z",
"display_color": "<string>",
"id": "<string>",
"name": "<string>",
"type": "workspace"
}
],
"first_id": "<string>",
"has_more": true,
"last_id": "<string>"
}Headers
Query Parameters
Whether to include Workspaces that have been archived in the response
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object.
ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object.
Number of items to return per page.
Defaults to 20. Ranges from 1 to 1000.
Required range:
1 <= x <= 1000Response
Successful Response
Show child attributes
Show child attributes
First ID in the data list. Can be used as the before_id for the previous page.
Indicates if there are more results in the requested page direction.
Last ID in the data list. Can be used as the after_id for the next page.
Was this page helpful?
⌘I