cURL
curl "https://api.anthropic.com/v1/organizations/workspaces/wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ/members/user_01WCz1FkmYMm4gnmykNKUu3Q" \
--header "anthropic-version: 2023-06-01" \
--header "content-type: application/json" \
--header "x-api-key: $ANTHROPIC_ADMIN_KEY"{
"type": "workspace_member",
"user_id": "<string>",
"workspace_id": "<string>"
}获取工作区成员
GET
/
v1
/
organizations
/
workspaces
/
{workspace_id}
/
members
/
{user_id}
cURL
curl "https://api.anthropic.com/v1/organizations/workspaces/wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ/members/user_01WCz1FkmYMm4gnmykNKUu3Q" \
--header "anthropic-version: 2023-06-01" \
--header "content-type: application/json" \
--header "x-api-key: $ANTHROPIC_ADMIN_KEY"{
"type": "workspace_member",
"user_id": "<string>",
"workspace_id": "<string>"
}The Admin API is unavailable for individual accounts. To collaborate with teammates and add members, set up your organization in Console → Settings → Organization.
Headers
Response
Successful Response
Object type.
For Workspace Members, this is always "workspace_member".
Available options:
workspace_member Allowed value:
"workspace_member"ID of the User.
Example:
"user_01WCz1FkmYMm4gnmykNKUu3Q"
ID of the Workspace.
Example:
"wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
Role of the Workspace Member.
Available options:
workspace_user, workspace_developer, workspace_admin, workspace_billing Examples:
"workspace_user"
"workspace_developer"
"workspace_admin"
"workspace_billing"
Was this page helpful?
⌘I