List Workspaces For Service Account changedapi/admin/service_accounts/workspaces/list
Nearest release: v2.1.261, published 3 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+9added
Lines−3removed
From line
2
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits5to this page, all time
The whole hunk
from line 2, old and new numbered
/
from line 2
22
33**GET** `/v1/organizations/service_accounts/{service_account_id}/workspaces`
44
5**Requires an OAuth access token with the `org:admin` scope**, from `ant auth login --scope org:admin` or a workload identity federation rule; Admin API keys are not accepted. See [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
6
57List the workspaces a service account is a member of.
68
79Each entry includes the service account's `workspace_role` in that
from line 13
1113the first page; with `limit=1` the first page may return up to 2 entries
1214(the implicit entry plus one explicit membership) so a pagination cursor
1315can be derived. Memberships are returned only while
14the service account is active; an archived service account returns an
15empty list.
16the service account is active. Without a `page` cursor, an archived
17service account returns an empty list. A `page` cursor that does not
18match an active membership returns a 400 invalid-request error. A cursor
19stops matching when the membership is removed, the workspace is deleted,
20or the service account is archived. Restart pagination from the first
21page to recover.
1622
1723## Path parameters
1824
from line 93
8793```bash
8894curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/workspaces \
8995 -H 'anthropic-version: 2023-06-01' \
90 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
96 -H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN"
9197```
9298
9399### Response (200)
No line in this hunk matches that.