List Workspace Members
api/admin/workspaces/members/list
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/admin/workspaces/members/list Changed · +11 / -14 lines
# List Workspace Members ## Path parameters ## Query parameters ## Returns ## Example ### Response (200) ## List Workspace Members ### Path Parameters ### Query Parameters ### Returns ### Example #### Response
---- -title: List Workspace Members -url: https://platform.claude.com/docs/en/api/admin/workspaces/members/list ---- +# List Workspace Members -## List Workspace Members +**GET** `/v1/organizations/workspaces/{workspace_id}/members` -**get** `/v1/organizations/workspaces/{workspace_id}/members` - List Workspace Members -### Path Parameters +## Path parameters - `workspace_id: string` ID of the Workspace. -### Query Parameters +## Query parameters - `after_id: optional string`
Defaults to `20`. Ranges from `1` to `1000`. -### Returns + default: 20, maximum: 1000, minimum: 1 +## Returns + - `data: array of WorkspaceMember` - `type: "workspace_member"`
For Workspace Members, this is always `"workspace_member"`. - - `"workspace_member"` + default: workspace_member - `user_id: string`
Last ID in the `data` list. Can be used as the `after_id` for the next page. -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/members \ -H 'anthropic-version: 2023-06-01' \ -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN" ``` -#### Response +### Response (200) ```json {