The whole hunk
from line 2, old and new numbered
/
lines
from line 2
22
33**POST** `/v1/organizations/service_accounts`
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
57Create a service account.
68
79A service account is a named workload identity that federation rules
810target. `organization_role` is `developer` (default) or `admin`; a rule
911may only be created or retargeted to grant `org:admin` scope when the
10target's `organization_role` is `admin`. Requires an OAuth bearer (user
11or WIF-minted service account token) or a Console session; Admin API
12keys are not accepted. Creating an `admin`-role service account requires
13an interactive credential (a user OAuth token or a Console session) — a
14workload may only create `developer`-role service accounts.
12target's `organization_role` is `admin`. Creating an `admin`-role service
13account requires an interactive credential (a user OAuth token or a
14Console session) — a workload may only create `developer`-role service
15accounts.
1516
1617## Headers
1718
from line 113
112113curl https://api.anthropic.com/v1/organizations/service_accounts \
113114 -H 'Content-Type: application/json' \
114115 -H 'anthropic-version: 2023-06-01' \
115 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN" \
116 -H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN" \
116117 -d '{
117118 "name": "ci-deploy-bot"
118119 }'