from line 1
1---
2title: List Service Account Workspace Members
3url: https://platform.claude.com/docs/en/api/admin/workspaces/service_accounts/list
4---
1# List Service Account Workspace Members
52
6## List Service Account Workspace Members
3**GET** `/v1/organizations/workspaces/{workspace_id}/service_accounts`
74
8**get** `/v1/organizations/workspaces/{workspace_id}/service_accounts`
9
105List the service accounts that are members of a workspace.
116
127Each entry includes the service account's `workspace_role`. Use `limit`
from line 11
1611included in this list. Memberships of archived service accounts are
1712omitted from the results.
1813
19### Path Parameters
14## Path parameters
2015
2116- `workspace_id: string`
2217
2318 ID of the workspace.
2419
25### Query Parameters
20## Query parameters
2621
2722- `limit: optional number`
2823
2924 Number of results per page.
3025
26 default: 20, maximum: 100, minimum: 1
27
3128- `page: optional string`
3229
3330 Opaque cursor from a previous response's `next_page`.
3431
35### Header Parameters
32## Headers
3633
3734- `"anthropic-beta": optional array of string`
3835
from line 37
4037
4138 To use multiple betas, use a comma separated list like `beta1,beta2` or specify the header multiple times for each beta.
4239
43### Returns
40## Returns
4441
45- `data: array of object { created_by_actor_id, implicit, service_account_id, 3 more }`
42- `data: array of object`
4643
4744 - `created_by_actor_id: string or null`
4845
from line 55
5855
5956 - `type: "service_account_workspace_member"`
6057
61 - `"service_account_workspace_member"`
58 default: service_account_workspace_member
6259
6360 - `workspace_id: string`
6461
from line 79
8279
8380 Opaque cursor for the next page, or null if no more results.
8481
85### Example
82## Example
8683
87```http
84```bash
8885curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/service_accounts \
8986 -H 'anthropic-version: 2023-06-01' \
9087 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
9188```
9289
93#### Response
90### Response (200)
9491
9592```json
9693{
No line in this hunk matches that.