The whole hunk
from line 2, old and new numbered
/
lines
from line 2
22
33**GET** `/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}`
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
57Retrieve a service account's membership in a workspace.
68
79Returns the membership record, including the service account's
from line 72
7072```bash
7173curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/service_accounts/$SERVICE_ACCOUNT_ID \
7274 -H 'anthropic-version: 2023-06-01' \
73 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
75 -H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN"
7476```
7577
7678### Response (200)