Organization changedapi/beta/organization
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+305added
Lines−634removed
From line
45
where the diff opens
First seen
26 Aug 2026
this site's first read of the page
Recorded edits32to this page, all time
The whole hunk
from line 45, old and new numbered
/
This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.
from line 45
4545
4646```bash
4747curl https://api.anthropic.com/v1/organizations/me \
48 -H 'anthropic-version: 2023-06-01' \
49 -H "X-Api-Key: $ANTHROPIC_API_KEY"
48 -H 'anthropic-version: 2026-10-21' \
49 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
5050```
5151
5252#### Response (200)
from line 263
263263
264264 - `workspace_id: string`
265265
266 ID of the Workspace the API key belongs to. Unlike the deprecated top-level `workspace_id`, this is the Workspace's real ID even for the organization's default Workspace.
266 ID of the Workspace the API key belongs to, including when it is the organization's default Workspace.
267267
268268 - `status: "active" or "archived" or "expired" or "inactive"`
269269
from line 277
277277
278278 - `"inactive"`
279279
280 - `workspace_id: string or null`
281
282 **Deprecated**: Use `scope` instead. `workspace_id` is `null` both for an API key in the default Workspace and for a principal-bound API key that has no Workspace.
283
284 Deprecated: use `scope` instead. ID of the Workspace associated with the API key, or `null` if the API key belongs to the default Workspace. Also `null` for a principal-bound API key that has no Workspace; `scope` tells the two apart.
285
286280- `first_id: string or null`
287281
288282 First ID in the `data` list. Can be used as the `before_id` for the previous page.
from line 293
299293
300294```bash
301295curl https://api.anthropic.com/v1/organizations/api_keys \
302 -H 'anthropic-version: 2023-06-01' \
303 -H "X-Api-Key: $ANTHROPIC_API_KEY"
296 -H 'anthropic-version: 2026-10-21' \
297 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
304298```
305299
306300##### Response (200)
from line 321
327321 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
328322 },
329323 "status": "active",
330 "type": "api_key",
331 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
324 "type": "api_key"
332325 }
333326 ],
334327 "first_id": "first_id",
from line 454
461454
462455 - `workspace_id: string`
463456
464 ID of the Workspace the API key belongs to. Unlike the deprecated top-level `workspace_id`, this is the Workspace's real ID even for the organization's default Workspace.
457 ID of the Workspace the API key belongs to, including when it is the organization's default Workspace.
465458
466459 - `status: "active" or "archived" or "expired" or "inactive"`
467460
from line 468
475468
476469 - `"inactive"`
477470
478 - `workspace_id: string or null`
479
480 **Deprecated**: Use `scope` instead. `workspace_id` is `null` both for an API key in the default Workspace and for a principal-bound API key that has no Workspace.
481
482 Deprecated: use `scope` instead. ID of the Workspace associated with the API key, or `null` if the API key belongs to the default Workspace. Also `null` for a principal-bound API key that has no Workspace; `scope` tells the two apart.
483
484471#### Example
485472
486473```bash
487474curl https://api.anthropic.com/v1/organizations/api_keys/$API_KEY_ID \
488 -H 'anthropic-version: 2023-06-01' \
489 -H "X-Api-Key: $ANTHROPIC_API_KEY"
475 -H 'anthropic-version: 2026-10-21' \
476 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
490477```
491478
492479##### Response (200)
from line 498
511498 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
512499 },
513500 "status": "active",
514 "type": "api_key",
515 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
501 "type": "api_key"
516502}
517503```
518504
from line 644
658644
659645 - `workspace_id: string`
660646
661 ID of the Workspace the API key belongs to. Unlike the deprecated top-level `workspace_id`, this is the Workspace's real ID even for the organization's default Workspace.
647 ID of the Workspace the API key belongs to, including when it is the organization's default Workspace.
662648
663649 - `status: "active" or "archived" or "expired" or "inactive"`
664650
from line 658
672658
673659 - `"inactive"`
674660
675 - `workspace_id: string or null`
676
677 **Deprecated**: Use `scope` instead. `workspace_id` is `null` both for an API key in the default Workspace and for a principal-bound API key that has no Workspace.
678
679 Deprecated: use `scope` instead. ID of the Workspace associated with the API key, or `null` if the API key belongs to the default Workspace. Also `null` for a principal-bound API key that has no Workspace; `scope` tells the two apart.
680
681661#### Example
682662
683663```bash
684664curl https://api.anthropic.com/v1/organizations/api_keys/$API_KEY_ID \
685665 -H 'Content-Type: application/json' \
686 -H 'anthropic-version: 2023-06-01' \
687 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
666 -H 'anthropic-version: 2026-10-21' \
667 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
688668 -d '{}'
689669```
690670
from line 690
710690 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
711691 },
712692 "status": "active",
713 "type": "api_key",
714 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
693 "type": "api_key"
715694}
716695```
717696
from line 883
904883```bash
905884curl https://api.anthropic.com/v1/organizations/external_keys \
906885 -H 'Content-Type: application/json' \
907 -H 'anthropic-version: 2023-06-01' \
908 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
886 -H 'anthropic-version: 2026-10-21' \
887 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
909888 -d '{
910889 "provider_config": {
911890 "kms_arn": "arn:aws:kms:us-east-1:111122223333:key/abcd1234-5678-90ab-cdef-000011112222",
from line 1048
10691048
10701049```bash
10711050curl https://api.anthropic.com/v1/organizations/external_keys \
1072 -H 'anthropic-version: 2023-06-01' \
1073 -H "X-Api-Key: $ANTHROPIC_API_KEY"
1051 -H 'anthropic-version: 2026-10-21' \
1052 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
10741053```
10751054
10761055##### Response (200)
from line 1207
12281207
12291208```bash
12301209curl https://api.anthropic.com/v1/organizations/external_keys/$EXTERNAL_KEY_ID \
1231 -H 'anthropic-version: 2023-06-01' \
1232 -H "X-Api-Key: $ANTHROPIC_API_KEY"
1210 -H 'anthropic-version: 2026-10-21' \
1211 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
12331212```
12341213
12351214##### Response (200)
from line 1432
14531432```bash
14541433curl https://api.anthropic.com/v1/organizations/external_keys/$EXTERNAL_KEY_ID \
14551434 -H 'Content-Type: application/json' \
1456 -H 'anthropic-version: 2023-06-01' \
1457 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
1435 -H 'anthropic-version: 2026-10-21' \
1436 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
14581437 -d '{}'
14591438```
14601439
from line 1498
15191498```bash
15201499curl https://api.anthropic.com/v1/organizations/external_keys/$EXTERNAL_KEY_ID \
15211500 -X DELETE \
1522 -H 'anthropic-version: 2023-06-01' \
1523 -H "X-Api-Key: $ANTHROPIC_API_KEY"
1501 -H 'anthropic-version: 2026-10-21' \
1502 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
15241503```
15251504
15261505##### Response (200)
from line 1561
15821561```bash
15831562curl https://api.anthropic.com/v1/organizations/external_keys/$EXTERNAL_KEY_ID/validate \
15841563 -X POST \
1585 -H 'anthropic-version: 2023-06-01' \
1586 -H "X-Api-Key: $ANTHROPIC_API_KEY"
1564 -H 'anthropic-version: 2026-10-21' \
1565 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
15871566```
15881567
15891568##### Response (200)
from line 1931
19521931```bash
19531932curl https://api.anthropic.com/v1/organizations/federation_issuers \
19541933 -H 'Content-Type: application/json' \
1955 -H 'anthropic-version: 2023-06-01' \
1956 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
1934 -H 'anthropic-version: 2026-10-21' \
1935 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
19571936 -d '{
19581937 "issuer_url": "x",
19591938 "name": "x"
from line 2257
22782257
22792258```bash
22802259curl https://api.anthropic.com/v1/organizations/federation_issuers \
2281 -H 'anthropic-version: 2023-06-01' \
2282 -H "X-Api-Key: $ANTHROPIC_API_KEY"
2260 -H 'anthropic-version: 2026-10-21' \
2261 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
22832262```
22842263
22852264##### Response (200)
from line 2571
25922571
25932572```bash
25942573curl https://api.anthropic.com/v1/organizations/federation_issuers/$FEDERATION_ISSUER_ID \
2595 -H 'anthropic-version: 2023-06-01' \
2596 -H "X-Api-Key: $ANTHROPIC_API_KEY"
2574 -H 'anthropic-version: 2026-10-21' \
2575 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
25972576```
25982577
25992578##### Response (200)
from line 2966
29872966```bash
29882967curl https://api.anthropic.com/v1/organizations/federation_issuers/$FEDERATION_ISSUER_ID \
29892968 -H 'Content-Type: application/json' \
2990 -H 'anthropic-version: 2023-06-01' \
2991 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
2969 -H 'anthropic-version: 2026-10-21' \
2970 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
29922971 -d '{}'
29932972```
29942973
from line 3282
33033282```bash
33043283curl https://api.anthropic.com/v1/organizations/federation_issuers/$FEDERATION_ISSUER_ID/archive \
33053284 -X POST \
3306 -H 'anthropic-version: 2023-06-01' \
3307 -H "X-Api-Key: $ANTHROPIC_API_KEY"
3285 -H 'anthropic-version: 2026-10-21' \
3286 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
33083287```
33093288
33103289##### Response (200)
from line 3678
36993678```bash
37003679curl https://api.anthropic.com/v1/organizations/federation_rules \
37013680 -H 'Content-Type: application/json' \
3702 -H 'anthropic-version: 2023-06-01' \
3703 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
3681 -H 'anthropic-version: 2026-10-21' \
3682 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
37043683 -d '{
37053684 "issuer_id": "issuer_id",
37063685 "match": {},
from line 4015
40364015
40374016```bash
40384017curl https://api.anthropic.com/v1/organizations/federation_rules \
4039 -H 'anthropic-version: 2023-06-01' \
4040 -H "X-Api-Key: $ANTHROPIC_API_KEY"
4018 -H 'anthropic-version: 2026-10-21' \
4019 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
40414020```
40424021
40434022##### Response (200)
from line 4335
43564335
43574336```bash
43584337curl https://api.anthropic.com/v1/organizations/federation_rules/$FEDERATION_RULE_ID \
4359 -H 'anthropic-version: 2023-06-01' \
4360 -H "X-Api-Key: $ANTHROPIC_API_KEY"
4338 -H 'anthropic-version: 2026-10-21' \
4339 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
43614340```
43624341
43634342##### Response (200)
from line 4745
47664745```bash
47674746curl https://api.anthropic.com/v1/organizations/federation_rules/$FEDERATION_RULE_ID \
47684747 -H 'Content-Type: application/json' \
4769 -H 'anthropic-version: 2023-06-01' \
4770 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
4748 -H 'anthropic-version: 2026-10-21' \
4749 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
47714750 -d '{}'
47724751```
47734752
from line 5070
50915070```bash
50925071curl https://api.anthropic.com/v1/organizations/federation_rules/$FEDERATION_RULE_ID/archive \
50935072 -X POST \
5094 -H 'anthropic-version: 2023-06-01' \
5095 -H "X-Api-Key: $ANTHROPIC_API_KEY"
5073 -H 'anthropic-version: 2026-10-21' \
5074 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
50965075```
50975076
50985077##### Response (200)
from line 5300
53215300```bash
53225301curl https://api.anthropic.com/v1/organizations/federation_rules/$FEDERATION_RULE_ID/workspaces \
53235302 -H 'Content-Type: application/json' \
5324 -H 'anthropic-version: 2023-06-01' \
5325 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
5303 -H 'anthropic-version: 2026-10-21' \
5304 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
53265305 -d '{
53275306 "workspace_id": "workspace_id"
53285307 }'
from line 5508
55295508
55305509```bash
55315510curl https://api.anthropic.com/v1/organizations/federation_rules/$FEDERATION_RULE_ID/workspaces \
5532 -H 'anthropic-version: 2023-06-01' \
5533 -H "X-Api-Key: $ANTHROPIC_API_KEY"
5511 -H 'anthropic-version: 2026-10-21' \
5512 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
55345513```
55355514
55365515##### Response (200)
from line 5690
57115690```bash
57125691curl https://api.anthropic.com/v1/organizations/federation_rules/$FEDERATION_RULE_ID/workspaces/$WORKSPACE_ID \
57135692 -X DELETE \
5714 -H 'anthropic-version: 2023-06-01' \
5715 -H "X-Api-Key: $ANTHROPIC_API_KEY"
5693 -H 'anthropic-version: 2026-10-21' \
5694 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
57165695```
57175696
57185697##### Response (200)
from line 5833
58545833```bash
58555834curl https://api.anthropic.com/v1/organizations/invites \
58565835 -H 'Content-Type: application/json' \
5857 -H 'anthropic-version: 2023-06-01' \
5858 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
5836 -H 'anthropic-version: 2026-10-21' \
5837 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
58595838 -d '{
58615840 "role": "user"
from line 6005
60266005
60276006```bash
60286007curl https://api.anthropic.com/v1/organizations/invites \
6029 -H 'anthropic-version: 2023-06-01' \
6030 -H "X-Api-Key: $ANTHROPIC_API_KEY"
6008 -H 'anthropic-version: 2026-10-21' \
6009 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
60316010```
60326011
60336012##### Response (200)
from line 6134
61556134
61566135```bash
61576136curl https://api.anthropic.com/v1/organizations/invites/$INVITE_ID \
6158 -H 'anthropic-version: 2023-06-01' \
6159 -H "X-Api-Key: $ANTHROPIC_API_KEY"
6137 -H 'anthropic-version: 2026-10-21' \
6138 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
61606139```
61616140
61626141##### Response (200)
from line 6195
62166195```bash
62176196curl https://api.anthropic.com/v1/organizations/invites/$INVITE_ID \
62186197 -X DELETE \
6219 -H 'anthropic-version: 2023-06-01' \
6220 -H "X-Api-Key: $ANTHROPIC_API_KEY"
6198 -H 'anthropic-version: 2026-10-21' \
6199 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
62216200```
62226201
62236202##### Response (200)
from line 6434
64556434```bash
64566435curl https://api.anthropic.com/v1/organizations/service_accounts \
64576436 -H 'Content-Type: application/json' \
6458 -H 'anthropic-version: 2023-06-01' \
6459 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
6437 -H 'anthropic-version: 2026-10-21' \
6438 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
64606439 -d '{
64616440 "name": "ci-deploy-bot"
64626441 }'
from line 6673
66946673
66956674```bash
66966675curl https://api.anthropic.com/v1/organizations/service_accounts \
6697 -H 'anthropic-version: 2023-06-01' \
6698 -H "X-Api-Key: $ANTHROPIC_API_KEY"
6676 -H 'anthropic-version: 2026-10-21' \
6677 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
66996678```
67006679
67016680##### Response (200)
from line 6899
69206899
69216900```bash
69226901curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID \
6923 -H 'anthropic-version: 2023-06-01' \
6924 -H "X-Api-Key: $ANTHROPIC_API_KEY"
6902 -H 'anthropic-version: 2026-10-21' \
6903 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
69256904```
69266905
69276906##### Response (200)
from line 7142
71637142```bash
71647143curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID \
71657144 -H 'Content-Type: application/json' \
7166 -H 'anthropic-version: 2023-06-01' \
7167 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
7145 -H 'anthropic-version: 2026-10-21' \
7146 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
71687147 -d '{}'
71697148```
71707149
from line 7370
73917370```bash
73927371curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/archive \
73937372 -X POST \
7394 -H 'anthropic-version: 2023-06-01' \
7395 -H "X-Api-Key: $ANTHROPIC_API_KEY"
7373 -H 'anthropic-version: 2026-10-21' \
7374 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
73967375```
73977376
73987377##### Response (200)
from line 7594
76157594```bash
76167595curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/workspaces \
76177596 -H 'Content-Type: application/json' \
7618 -H 'anthropic-version: 2023-06-01' \
7619 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
7597 -H 'anthropic-version: 2026-10-21' \
7598 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
76207599 -d '{
76217600 "workspace_id": "workspace_id",
76227601 "workspace_role": "workspace_admin"
from line 7819
78407819
78417820```bash
78427821curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/workspaces \
7843 -H 'anthropic-version: 2023-06-01' \
7844 -H "X-Api-Key: $ANTHROPIC_API_KEY"
7822 -H 'anthropic-version: 2026-10-21' \
7823 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
78457824```
78467825
78477826##### Response (200)
from line 8004
80258004```bash
80268005curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/workspaces/$WORKSPACE_ID \
80278006 -X DELETE \
8028 -H 'anthropic-version: 2023-06-01' \
8029 -H "X-Api-Key: $ANTHROPIC_API_KEY"
8007 -H 'anthropic-version: 2026-10-21' \
8008 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
80308009```
80318010
80328011##### Response (200)
from line 8132
81538132
81548133```bash
81558134curl https://api.anthropic.com/v1/organizations/users \
8156 -H 'anthropic-version: 2023-06-01' \
8157 -H "X-Api-Key: $ANTHROPIC_API_KEY"
8135 -H 'anthropic-version: 2026-10-21' \
8136 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
81588137```
81598138
81608139##### Response (200)
from line 8232
82538232
82548233```bash
82558234curl https://api.anthropic.com/v1/organizations/users/$USER_ID \
8256 -H 'anthropic-version: 2023-06-01' \
8257 -H "X-Api-Key: $ANTHROPIC_API_KEY"
8235 -H 'anthropic-version: 2026-10-21' \
8236 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
82588237```
82598238
82608239##### Response (200)
from line 8344
83658344```bash
83668345curl https://api.anthropic.com/v1/organizations/users/$USER_ID \
83678346 -H 'Content-Type: application/json' \
8368 -H 'anthropic-version: 2023-06-01' \
8369 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
8347 -H 'anthropic-version: 2026-10-21' \
8348 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
83708349 -d '{
83718350 "role": "user"
83728351 }'
from line 8403
84248403```bash
84258404curl https://api.anthropic.com/v1/organizations/users/$USER_ID \
84268405 -X DELETE \
8427 -H 'anthropic-version: 2023-06-01' \
8428 -H "X-Api-Key: $ANTHROPIC_API_KEY"
8406 -H 'anthropic-version: 2026-10-21' \
8407 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
84298408```
84308409
84318410##### Response (200)
from line 8574
85958574
85968575```bash
85978576curl https://api.anthropic.com/v1/organizations/workspaces \
8598 -H 'anthropic-version: 2023-06-01' \
8599 -H "X-Api-Key: $ANTHROPIC_API_KEY"
8577 -H 'anthropic-version: 2026-10-21' \
8578 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
86008579```
86018580
86028581##### Response (200)
from line 8894
89158894```bash
89168895curl https://api.anthropic.com/v1/organizations/workspaces \
89178896 -H 'Content-Type: application/json' \
8918 -H 'anthropic-version: 2023-06-01' \
8919 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
8897 -H 'anthropic-version: 2026-10-21' \
8898 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
89208899 -d '{
89218900 "name": "x",
89228901 "display_color": "#6C5BB9",
from line 9051
90729051
90739052```bash
90749053curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID \
9075 -H 'anthropic-version: 2023-06-01' \
9076 -H "X-Api-Key: $ANTHROPIC_API_KEY"
9054 -H 'anthropic-version: 2026-10-21' \
9055 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
90779056```
90789057
90799058##### Response (200)
from line 9254
92759254```bash
92769255curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID \
92779256 -H 'Content-Type: application/json' \
9278 -H 'anthropic-version: 2023-06-01' \
9279 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
9257 -H 'anthropic-version: 2026-10-21' \
9258 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
92809259 -d '{
92819260 "display_color": "#6C5BB9",
92829261 "external_key_id": "ekey_01SDCCSbTxrXDpWc1phhtcfK",
from line 9409
94309409```bash
94319410curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/archive \
94329411 -X POST \
9433 -H 'anthropic-version: 2023-06-01' \
9434 -H "X-Api-Key: $ANTHROPIC_API_KEY"
9412 -H 'anthropic-version: 2026-10-21' \
9413 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
94359414```
94369415
94379416##### Response (200)
from line 9519
95409519
95419520 - `group: BetaOrganizationRateLimitModelGroup or BetaOrganizationRateLimitBatchGroup or BetaOrganizationRateLimitTokenCountGroup or 3 more`
95429521
9543 The rate-limit group this entry's limits apply to. Its `type` equals `group_type`.
9522 The rate-limit group this entry's limits apply to.
95449523
95459524 - `BetaOrganizationRateLimitModelGroup object`
95469525
from line 9635
96569635
96579636 - `models: array of string or null`
96589637
9659 Model names this entry's limits apply to, including aliases. `null` when `group_type` is not `"model_group"`.
9638 Model names this entry's limits apply to, including aliases. `null` when `group.type` is not `"model_group"`.
96609639
96619640 - `rate_limit_id: string`
96629641
from line 9645
96669645
96679646 ID of the Workspace this entry applies to.
96689647
9669 - `group_type: "batch" or "files" or "model_group" or 3 more`
9670
9671 **Deprecated**: Use `group.type` instead. `group_type` is still returned and always equals `group.type`.
9672
9673 Deprecated: use `group.type` instead. The kind of rate-limit group this entry represents. `model_group` entries apply to a family of models (listed in `models`); other values apply to an API-surface category and have `models` set to `null`. Always equal to `group.type`.
9674
9675 - `"batch"`
9676
9677 - `"files"`
9678
9679 - `"model_group"`
9680
9681 - `"skills"`
9682
9683 - `"token_count"`
9684
9685 - `"web_search"`
9686
96879648- `next_page: string or null`
96889649
96899650 Opaque cursor for the next page of results, or `null` when no entries remain beyond this response.
from line 9653
96929653
96939654```bash
96949655curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/rate_limits \
9695 -H 'anthropic-version: 2023-06-01' \
9696 -H "X-Api-Key: $ANTHROPIC_API_KEY"
9656 -H 'anthropic-version: 2026-10-21' \
9657 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
96979658```
96989659
96999660##### Response (200)
from line 9668
97079668 "display_name": "display_name",
97089669 "type": "model_group"
97099670 },
9710 "group_type": "batch",
97119671 "limits": [
97129672 {
97139673 "org_limit": 0,
from line 9772
98129772
98139773 - `group: BetaOrganizationRateLimitModelGroup or BetaOrganizationRateLimitBatchGroup or BetaOrganizationRateLimitTokenCountGroup or 3 more`
98149774
9815 The rate-limit group this entry's limits apply to. Its `type` equals `group_type`.
9775 The rate-limit group this entry's limits apply to.
98169776
98179777 - `BetaOrganizationRateLimitModelGroup object`
98189778
from line 9888
99289888
99299889 - `models: array of string or null`
99309890
9931 Model names this entry's limits apply to, including aliases. `null` when `group_type` is not `"model_group"`.
9891 Model names this entry's limits apply to, including aliases. `null` when `group.type` is not `"model_group"`.
99329892
99339893 - `rate_limit_id: string`
99349894
from line 9898
99389898
99399899 ID of the Workspace this entry applies to.
99409900
9941 - `group_type: "batch" or "files" or "model_group" or 3 more`
9942
9943 **Deprecated**: Use `group.type` instead. `group_type` is still returned and always equals `group.type`.
9944
9945 Deprecated: use `group.type` instead. The kind of rate-limit group this entry represents. `model_group` entries apply to a family of models (listed in `models`); other values apply to an API-surface category and have `models` set to `null`. Always equal to `group.type`.
9946
9947 - `"batch"`
9948
9949 - `"files"`
9950
9951 - `"model_group"`
9952
9953 - `"skills"`
9954
9955 - `"token_count"`
9956
9957 - `"web_search"`
9958
99599901#### Example
99609902
99619903```bash
99629904curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/rate_limits/$RATE_LIMIT_ID \
99639905 -H 'Content-Type: application/json' \
9964 -H 'anthropic-version: 2023-06-01' \
9965 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
9906 -H 'anthropic-version: 2026-10-21' \
9907 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
99669908 -d '{
99679909 "limits": [
99689910 {
from line 9924
99829924 "display_name": "display_name",
99839925 "type": "model_group"
99849926 },
9985 "group_type": "batch",
99869927 "limits": [
99879928 {
99889929 "org_limit": 0,
from line 10033
1009210033
1009310034```bash
1009410035curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/members \
10095 -H 'anthropic-version: 2023-06-01' \
10096 -H "X-Api-Key: $ANTHROPIC_API_KEY"
10036 -H 'anthropic-version: 2026-10-21' \
10037 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
1009710038```
1009810039
1009910040##### Response (200)
from line 10132
1019110132```bash
1019210133curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/members \
1019310134 -H 'Content-Type: application/json' \
10194 -H 'anthropic-version: 2023-06-01' \
10195 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
10135 -H 'anthropic-version: 2026-10-21' \
10136 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
1019610137 -d '{
1019710138 "user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
1019810139 "workspace_role": "workspace_admin"
from line 10213
1027210213
1027310214```bash
1027410215curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/members/$USER_ID \
10275 -H 'anthropic-version: 2023-06-01' \
10276 -H "X-Api-Key: $ANTHROPIC_API_KEY"
10216 -H 'anthropic-version: 2026-10-21' \
10217 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
1027710218```
1027810219
1027910220##### Response (200)
from line 10307
1036610307```bash
1036710308curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/members/$USER_ID \
1036810309 -H 'Content-Type: application/json' \
10369 -H 'anthropic-version: 2023-06-01' \
10370 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
10310 -H 'anthropic-version: 2026-10-21' \
10311 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
1037110312 -d '{
1037210313 "workspace_role": "workspace_admin"
1037310314 }'
from line 10372
1043110372```bash
1043210373curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/members/$USER_ID \
1043310374 -X DELETE \
10434 -H 'anthropic-version: 2023-06-01' \
10435 -H "X-Api-Key: $ANTHROPIC_API_KEY"
10375 -H 'anthropic-version: 2026-10-21' \
10376 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
1043610377```
1043710378
1043810379##### Response (200)
from line 10380
1043910380
1044010381```json
1044110382{
10442 "type": "workspace
10383 "type": "workspace_member_deleted",
10384 "user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
10385 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
10386}
10387```
10388
10389## Organization › Workspaces › Service Accounts
10390
10391### List Service Account Workspace Members
10392
10393**GET** `/v1/organizations/workspaces/{workspace_id}/service_accounts`
10394
10395**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](https://platform.claude.com/docs/en/manage-claude/wif-admin-api?sdk_languages=http).
10396
10397List the service accounts that are members of a workspace.
10398
10399Each entry includes the service account's `workspace_role`. Use `limit`
10400and the `next_page` cursor to paginate. Archived workspaces return 400;
10401use `GET /service_accounts/{id}/workspaces` to audit memberships of an
10402archived workspace. The implicit default-workspace membership is not
10403included in this list. Memberships of archived service accounts are
10404omitted from the results.
10405
10406#### Path parameters
10407
10408- `workspace_id: string`
10409
10410 ID of the workspace.
10411
10412#### Query parameters
10413
10414- `limit: optional number`
10415
10416 Number of results per page.
10417
10418 default: 20, minimum: 1, maximum: 100
10419
10420- `page: optional string`
10421
10422 Opaque cursor from a previous response's `next_page`.
10423
10424#### Headers
10425
10426- `"anthropic-version": optional string`
10427
10428 The version of the Claude API you want to use.
10429
10430 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
10431
10432- `"anthropic-beta": optional array of AnthropicBeta`
10433
10434 Optional header to specify the beta version(s) you want to use.
10435
10436 - `string`
10437
10438 - `"message-batches-2024-09-24"`
10439
10440 - `"prompt-caching-2024-07-31"`
10441
10442 - `"computer-use-2024-10-22"`
10443
10444 - `"computer-use-2025-01-24"`
10445
10446 - `"pdfs-2024-09-25"`
10447
10448 - `"token-counting-2024-11-01"`
10449
10450 - `"token-efficient-tools-2025-02-19"`
10451
10452 - `"output-128k-2025-02-19"`
10453
10454 - `"files-api-2025-04-14"`
10455
10456 - `"mcp-client-2025-04-04"`
10457
10458 - `"mcp-client-2025-11-20"`
10459
10460 - `"dev-full-thinking-2025-05-14"`
10461
10462 - `"interleaved-thinking-2025-05-14"`
10463
10464 - `"code-execution-2025-05-22"`
10465
10466 - `"extended-cache-ttl-2025-04-11"`
10467
10468 - `"context-1m-2025-08-07"`
10469
10470 - `"context-management-2025-06-27"`
10471
10472 - `"model-context-window-exceeded-2025-08-26"`
10473
10474 - `"skills-2025-10-02"`
10475
10476 - `"fast-mode-2026-02-01"`
10477
10478 - `"output-300k-2026-03
No line in this hunk matches that.