Service Accounts changedapi/organization/service_accounts
Nearest release: v2.1.309, published 2 hours 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.
Recorded here
Lines+16added
Lines−16removed
From line
119
where the diff opens
First seen
30 Sep 2026
this site's first read of the page
Recorded edits4to this page, all time
The whole hunk
from line 119, old and new numbered
/
from line 119
119119```bash
120120curl https://api.anthropic.com/v1/organizations/service_accounts \
121121 -H 'Content-Type: application/json' \
122 -H 'anthropic-version: 2023-06-01' \
123 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
122 -H 'anthropic-version: 2026-10-21' \
123 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
124124 -d '{
125125 "name": "ci-deploy-bot"
126126 }'
from line 248
248248
249249```bash
250250curl https://api.anthropic.com/v1/organizations/service_accounts \
251 -H 'anthropic-version: 2023-06-01' \
252 -H "X-Api-Key: $ANTHROPIC_API_KEY"
251 -H 'anthropic-version: 2026-10-21' \
252 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
253253```
254254
255255#### Response (200)
from line 364
364364
365365```bash
366366curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID \
367 -H 'anthropic-version: 2023-06-01' \
368 -H "X-Api-Key: $ANTHROPIC_API_KEY"
367 -H 'anthropic-version: 2026-10-21' \
368 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
369369```
370370
371371#### Response (200)
from line 497
497497```bash
498498curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID \
499499 -H 'Content-Type: application/json' \
500 -H 'anthropic-version: 2023-06-01' \
501 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
500 -H 'anthropic-version: 2026-10-21' \
501 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
502502 -d '{}'
503503```
504504
from line 615
615615```bash
616616curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/archive \
617617 -X POST \
618 -H 'anthropic-version: 2023-06-01' \
619 -H "X-Api-Key: $ANTHROPIC_API_KEY"
618 -H 'anthropic-version: 2026-10-21' \
619 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
620620```
621621
622622#### Response (200)
from line 832
832832```bash
833833curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/workspaces \
834834 -H 'Content-Type: application/json' \
835 -H 'anthropic-version: 2023-06-01' \
836 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
835 -H 'anthropic-version: 2026-10-21' \
836 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
837837 -d '{
838838 "workspace_id": "workspace_id",
839839 "workspace_role": "workspace_admin"
from line 947
947947
948948```bash
949949curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/workspaces \
950 -H 'anthropic-version: 2023-06-01' \
951 -H "X-Api-Key: $ANTHROPIC_API_KEY"
950 -H 'anthropic-version: 2026-10-21' \
951 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
952952```
953953
954954##### Response (200)
from line 1022
10221022```bash
10231023curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/workspaces/$WORKSPACE_ID \
10241024 -X DELETE \
1025 -H 'anthropic-version: 2023-06-01' \
1026 -H "X-Api-Key: $ANTHROPIC_API_KEY"
1025 -H 'anthropic-version: 2026-10-21' \
1026 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
10271027```
10281028
10291029##### Response (200)
No line in this hunk matches that.