Follow Discord
Sweep 03 Nov 2026 · 22:27Z Build v2.1.318 536 read Stable v2.1.311 Latest v2.1.318 Next v2.1.318 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Organization changedapi/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+130added
Lines−208removed
From line 45 where the diff opens
First seen 30 Sep 2026 this site's first read of the page
Recorded edits13to this page, all time

The whole hunk

from line 45, old and new numbered
/
lines
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 1821
18421821```bash
18431822curl https://api.anthropic.com/v1/organizations/federation_issuers \
18441823 -H 'Content-Type: application/json' \
1845 -H 'anthropic-version: 2023-06-01' \
1846 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
1824 -H 'anthropic-version: 2026-10-21' \
1825 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
18471826 -d '{
18481827 "issuer_url": "x",
18491828 "name": "x"
from line 2037
20582037 
20592038```bash
20602039curl https://api.anthropic.com/v1/organizations/federation_issuers \
2061 -H 'anthropic-version: 2023-06-01' \
2062 -H "X-Api-Key: $ANTHROPIC_API_KEY"
2040 -H 'anthropic-version: 2026-10-21' \
2041 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
20632042```
20642043 
20652044##### Response (200)
from line 2241
22622241 
22632242```bash
22642243curl https://api.anthropic.com/v1/organizations/federation_issuers/$FEDERATION_ISSUER_ID \
2265 -H 'anthropic-version: 2023-06-01' \
2266 -H "X-Api-Key: $ANTHROPIC_API_KEY"
2244 -H 'anthropic-version: 2026-10-21' \
2245 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
22672246```
22682247 
22692248##### Response (200)
from line 2526
25472526```bash
25482527curl https://api.anthropic.com/v1/organizations/federation_issuers/$FEDERATION_ISSUER_ID \
25492528 -H 'Content-Type: application/json' \
2550 -H 'anthropic-version: 2023-06-01' \
2551 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
2529 -H 'anthropic-version: 2026-10-21' \
2530 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
25522531 -d '{}'
25532532```
25542533 
from line 2732
27532732```bash
27542733curl https://api.anthropic.com/v1/organizations/federation_issuers/$FEDERATION_ISSUER_ID/archive \
27552734 -X POST \
2756 -H 'anthropic-version: 2023-06-01' \
2757 -H "X-Api-Key: $ANTHROPIC_API_KEY"
2735 -H 'anthropic-version: 2026-10-21' \
2736 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
27582737```
27592738 
27602739##### Response (200)
from line 3018
30393018```bash
30403019curl https://api.anthropic.com/v1/organizations/federation_rules \
30413020 -H 'Content-Type: application/json' \
3042 -H 'anthropic-version: 2023-06-01' \
3043 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
3021 -H 'anthropic-version: 2026-10-21' \
3022 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
30443023 -d '{
30453024 "issuer_id": "issuer_id",
30463025 "match": {},
from line 3245
32663245 
32673246```bash
32683247curl https://api.anthropic.com/v1/organizations/federation_rules \
3269 -H 'anthropic-version: 2023-06-01' \
3270 -H "X-Api-Key: $ANTHROPIC_API_KEY"
3248 -H 'anthropic-version: 2026-10-21' \
3249 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
32713250```
32723251 
32733252##### Response (200)
from line 3455
34763455 
34773456```bash
34783457curl https://api.anthropic.com/v1/organizations/federation_rules/$FEDERATION_RULE_ID \
3479 -H 'anthropic-version: 2023-06-01' \
3480 -H "X-Api-Key: $ANTHROPIC_API_KEY"
3458 -H 'anthropic-version: 2026-10-21' \
3459 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
34813460```
34823461 
34833462##### Response (200)
from line 3755
37763755```bash
37773756curl https://api.anthropic.com/v1/organizations/federation_rules/$FEDERATION_RULE_ID \
37783757 -H 'Content-Type: application/json' \
3779 -H 'anthropic-version: 2023-06-01' \
3780 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
3758 -H 'anthropic-version: 2026-10-21' \
3759 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
37813760 -d '{}'
37823761```
37833762 
from line 3970
39913970```bash
39923971curl https://api.anthropic.com/v1/organizations/federation_rules/$FEDERATION_RULE_ID/archive \
39933972 -X POST \
3994 -H 'anthropic-version: 2023-06-01' \
3995 -H "X-Api-Key: $ANTHROPIC_API_KEY"
3973 -H 'anthropic-version: 2026-10-21' \
3974 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
39963975```
39973976 
39983977##### Response (200)
from line 4090
41114090```bash
41124091curl https://api.anthropic.com/v1/organizations/federation_rules/$FEDERATION_RULE_ID/workspaces \
41134092 -H 'Content-Type: application/json' \
4114 -H 'anthropic-version: 2023-06-01' \
4115 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
4093 -H 'anthropic-version: 2026-10-21' \
4094 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
41164095 -d '{
41174096 "workspace_id": "workspace_id"
41184097 }'
from line 4188
42094188 
42104189```bash
42114190curl https://api.anthropic.com/v1/organizations/federation_rules/$FEDERATION_RULE_ID/workspaces \
4212 -H 'anthropic-version: 2023-06-01' \
4213 -H "X-Api-Key: $ANTHROPIC_API_KEY"
4191 -H 'anthropic-version: 2026-10-21' \
4192 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
42144193```
42154194 
42164195##### Response (200)
from line 4260
42814260```bash
42824261curl https://api.anthropic.com/v1/organizations/federation_rules/$FEDERATION_RULE_ID/workspaces/$WORKSPACE_ID \
42834262 -X DELETE \
4284 -H 'anthropic-version: 2023-06-01' \
4285 -H "X-Api-Key: $ANTHROPIC_API_KEY"
4263 -H 'anthropic-version: 2026-10-21' \
4264 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
42864265```
42874266 
42884267##### Response (200)
from line 4403
44244403```bash
44254404curl https://api.anthropic.com/v1/organizations/invites \
44264405 -H 'Content-Type: application/json' \
4427 -H 'anthropic-version: 2023-06-01' \
4428 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
4406 -H 'anthropic-version: 2026-10-21' \
4407 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
44294408 -d '{
44304409 "email": "[email protected]",
44314410 "role": "user"
from line 4575
45964575 
45974576```bash
45984577curl https://api.anthropic.com/v1/organizations/invites \
4599 -H 'anthropic-version: 2023-06-01' \
4600 -H "X-Api-Key: $ANTHROPIC_API_KEY"
4578 -H 'anthropic-version: 2026-10-21' \
4579 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
46014580```
46024581 
46034582##### Response (200)
from line 4704
47254704 
47264705```bash
47274706curl https://api.anthropic.com/v1/organizations/invites/$INVITE_ID \
4728 -H 'anthropic-version: 2023-06-01' \
4729 -H "X-Api-Key: $ANTHROPIC_API_KEY"
4707 -H 'anthropic-version: 2026-10-21' \
4708 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
47304709```
47314710 
47324711##### Response (200)
from line 4765
47864765```bash
47874766curl https://api.anthropic.com/v1/organizations/invites/$INVITE_ID \
47884767 -X DELETE \
4789 -H 'anthropic-version: 2023-06-01' \
4790 -H "X-Api-Key: $ANTHROPIC_API_KEY"
4768 -H 'anthropic-version: 2026-10-21' \
4769 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
47914770```
47924771 
47934772##### Response (200)
from line 4894
49154894```bash
49164895curl https://api.anthropic.com/v1/organizations/service_accounts \
49174896 -H 'Content-Type: application/json' \
4918 -H 'anthropic-version: 2023-06-01' \
4919 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
4897 -H 'anthropic-version: 2026-10-21' \
4898 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
49204899 -d '{
49214900 "name": "ci-deploy-bot"
49224901 }'
from line 5023
50445023 
50455024```bash
50465025curl https://api.anthropic.com/v1/organizations/service_accounts \
5047 -H 'anthropic-version: 2023-06-01' \
5048 -H "X-Api-Key: $ANTHROPIC_API_KEY"
5026 -H 'anthropic-version: 2026-10-21' \
5027 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
50495028```
50505029 
50515030##### Response (200)
from line 5139
51605139 
51615140```bash
51625141curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID \
5163 -H 'anthropic-version: 2023-06-01' \
5164 -H "X-Api-Key: $ANTHROPIC_API_KEY"
5142 -H 'anthropic-version: 2026-10-21' \
5143 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
51655144```
51665145 
51675146##### Response (200)
from line 5272
52935272```bash
52945273curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID \
52955274 -H 'Content-Type: application/json' \
5296 -H 'anthropic-version: 2023-06-01' \
5297 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
5275 -H 'anthropic-version: 2026-10-21' \
5276 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
52985277 -d '{}'
52995278```
53005279 
from line 5390
54115390```bash
54125391curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/archive \
54135392 -X POST \
5414 -H 'anthropic-version: 2023-06-01' \
5415 -H "X-Api-Key: $ANTHROPIC_API_KEY"
5393 -H 'anthropic-version: 2026-10-21' \
5394 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
54165395```
54175396 
54185397##### Response (200)
from line 5504
55255504```bash
55265505curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/workspaces \
55275506 -H 'Content-Type: application/json' \
5528 -H 'anthropic-version: 2023-06-01' \
5529 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
5507 -H 'anthropic-version: 2026-10-21' \
5508 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
55305509 -d '{
55315510 "workspace_id": "workspace_id",
55325511 "workspace_role": "workspace_admin"
from line 5619
56405619 
56415620```bash
56425621curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/workspaces \
5643 -H 'anthropic-version: 2023-06-01' \
5644 -H "X-Api-Key: $ANTHROPIC_API_KEY"
5622 -H 'anthropic-version: 2026-10-21' \
5623 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
56455624```
56465625 
56475626##### Response (200)
from line 5694
57155694```bash
57165695curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/workspaces/$WORKSPACE_ID \
57175696 -X DELETE \
5718 -H 'anthropic-version: 2023-06-01' \
5719 -H "X-Api-Key: $ANTHROPIC_API_KEY"
5697 -H 'anthropic-version: 2026-10-21' \
5698 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
57205699```
57215700 
57225701##### Response (200)
from line 5822
58435822 
58445823```bash
58455824curl https://api.anthropic.com/v1/organizations/users \
5846 -H 'anthropic-version: 2023-06-01' \
5847 -H "X-Api-Key: $ANTHROPIC_API_KEY"
5825 -H 'anthropic-version: 2026-10-21' \
5826 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
58485827```
58495828 
58505829##### Response (200)
from line 5922
59435922 
59445923```bash
59455924curl https://api.anthropic.com/v1/organizations/users/$USER_ID \
5946 -H 'anthropic-version: 2023-06-01' \
5947 -H "X-Api-Key: $ANTHROPIC_API_KEY"
5925 -H 'anthropic-version: 2026-10-21' \
5926 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
59485927```
59495928 
59505929##### Response (200)
from line 6034
60556034```bash
60566035curl https://api.anthropic.com/v1/organizations/users/$USER_ID \
60576036 -H 'Content-Type: application/json' \
6058 -H 'anthropic-version: 2023-06-01' \
6059 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
6037 -H 'anthropic-version: 2026-10-21' \
6038 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
60606039 -d '{
60616040 "role": "user"
60626041 }'
from line 6093
61146093```bash
61156094curl https://api.anthropic.com/v1/organizations/users/$USER_ID \
61166095 -X DELETE \
6117 -H 'anthropic-version: 2023-06-01' \
6118 -H "X-Api-Key: $ANTHROPIC_API_KEY"
6096 -H 'anthropic-version: 2026-10-21' \
6097 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
61196098```
61206099 
61216100##### Response (200)
from line 6264
62856264 
62866265```bash
62876266curl https://api.anthropic.com/v1/organizations/workspaces \
6288 -H 'anthropic-version: 2023-06-01' \
6289 -H "X-Api-Key: $ANTHROPIC_API_KEY"
6267 -H 'anthropic-version: 2026-10-21' \
6268 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
62906269```
62916270 
62926271##### Response (200)
from line 6474
64956474```bash
64966475curl https://api.anthropic.com/v1/organizations/workspaces \
64976476 -H 'Content-Type: application/json' \
6498 -H 'anthropic-version: 2023-06-01' \
6499 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
6477 -H 'anthropic-version: 2026-10-21' \
6478 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
65006479 -d '{
65016480 "name": "x",
65026481 "display_color": "#6C5BB9",
from line 6631
66526631 
66536632```bash
66546633curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID \
6655 -H 'anthropic-version: 2023-06-01' \
6656 -H "X-Api-Key: $ANTHROPIC_API_KEY"
6634 -H 'anthropic-version: 2026-10-21' \
6635 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
66576636```
66586637 
66596638##### Response (200)
from line 6834
68556834```bash
68566835curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID \
68576836 -H 'Content-Type: application/json' \
6858 -H 'anthropic-version: 2023-06-01' \
6859 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
6837 -H 'anthropic-version: 2026-10-21' \
6838 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
68606839 -d '{
68616840 "display_color": "#6C5BB9",
68626841 "external_key_id": "ekey_01SDCCSbTxrXDpWc1phhtcfK",
from line 6989
70106989```bash
70116990curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/archive \
70126991 -X POST \
7013 -H 'anthropic-version: 2023-06-01' \
7014 -H "X-Api-Key: $ANTHROPIC_API_KEY"
6992 -H 'anthropic-version: 2026-10-21' \
6993 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
70156994```
70166995 
70176996##### Response (200)
from line 7099
71207099 
71217100 - `group: OrganizationRateLimitModelGroup or OrganizationRateLimitBatchGroup or OrganizationRateLimitTokenCountGroup or 3 more`
71227101 
7123 The rate-limit group this entry's limits apply to. Its `type` equals `group_type`.
7102 The rate-limit group this entry's limits apply to.
71247103 
71257104 - `OrganizationRateLimitModelGroup object`
71267105 
from line 7215
72367215 
72377216 - `models: array of string or null`
72387217 
7239 Model names this entry's limits apply to, including aliases. `null` when `group_type` is not `"model_group"`.
7218 Model names this entry's limits apply to, including aliases. `null` when `group.type` is not `"model_group"`.
72407219 
72417220 - `rate_limit_id: string`
72427221 
from line 7225
72467225 
72477226 ID of the Workspace this entry applies to.
72487227 
7249 - `group_type: "batch" or "files" or "model_group" or 3 more`
7250 
7251 **Deprecated**: Use `group.type` instead. `group_type` is still returned and always equals `group.type`.
7252 
7253 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`.
7254 
7255 - `"batch"`
7256 
7257 - `"files"`
7258 
7259 - `"model_group"`
7260 
7261 - `"skills"`
7262 
7263 - `"token_count"`
7264 
7265 - `"web_search"`
7266 
72677228- `next_page: string or null`
72687229 
72697230 Opaque cursor for the next page of results, or `null` when no entries remain beyond this response.
from line 7233
72727233 
72737234```bash
72747235curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/rate_limits \
7275 -H 'anthropic-version: 2023-06-01' \
7276 -H "X-Api-Key: $ANTHROPIC_API_KEY"
7236 -H 'anthropic-version: 2026-10-21' \
7237 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
72777238```
72787239 
72797240##### Response (200)
from line 7248
72877248 "display_name": "display_name",
72887249 "type": "model_group"
72897250 },
7290 "group_type": "batch",
72917251 "limits": [
72927252 {
72937253 "org_limit": 0,
from line 7352
73927352 
73937353 - `group: OrganizationRateLimitModelGroup or OrganizationRateLimitBatchGroup or OrganizationRateLimitTokenCountGroup or 3 more`
73947354 
7395 The rate-limit group this entry's limits apply to. Its `type` equals `group_type`.
7355 The rate-limit group this entry's limits apply to.
73967356 
73977357 - `OrganizationRateLimitModelGroup object`
73987358 
from line 7468
75087468 
75097469 - `models: array of string or null`
75107470 
7511 Model names this entry's limits apply to, including aliases. `null` when `group_type` is not `"model_group"`.
7471 Model names this entry's limits apply to, including aliases. `null` when `group.type` is not `"model_group"`.
75127472 
75137473 - `rate_limit_id: string`
75147474 
from line 7478
75187478 
75197479 ID of the Workspace this entry applies to.
75207480 
7521 - `group_type: "batch" or "files" or "model_group" or 3 more`
7522 
7523 **Deprecated**: Use `group.type` instead. `group_type` is still returned and always equals `group.type`.
7524 
7525 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`.
7526 
7527 - `"batch"`
7528 
7529 - `"files"`
7530 
7531 - `"model_group"`
7532 
7533 - `"skills"`
7534 
7535 - `"token_count"`
7536 
7537 - `"web_search"`
7538 
75397481#### Example
75407482 
75417483```bash
75427484curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/rate_limits/$RATE_LIMIT_ID \
75437485 -H 'Content-Type: application/json' \
7544 -H 'anthropic-version: 2023-06-01' \
7545 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
7486 -H 'anthropic-version: 2026-10-21' \
7487 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
75467488 -d '{
75477489 "limits": [
75487490 {
from line 7504
75627504 "display_name": "display_name",
75637505 "type": "model_group"
75647506 },
7565 "group_type": "batch",
75667507 "limits": [
75677508 {
75687509 "org_limit": 0,
from line 7613
76727613 
76737614```bash
76747615curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/members \
7675 -H 'anthropic-version: 2023-06-01' \
7676 -H "X-Api-Key: $ANTHROPIC_API_KEY"
7616 -H 'anthropic-version: 2026-10-21' \
7617 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
76777618```
76787619 
76797620##### Response (200)
from line 7712
77717712```bash
77727713curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/members \
77737714 -H 'Content-Type: application/json' \
7774 -H 'anthropic-version: 2023-06-01' \
7775 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
7715 -H 'anthropic-version: 2026-10-21' \
7716 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
77767717 -d '{
77777718 "user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
77787719 "workspace_role": "workspace_admin"
from line 7793
78527793 
78537794```bash
78547795curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/members/$USER_ID \
7855 -H 'anthropic-version: 2023-06-01' \
7856 -H "X-Api-Key: $ANTHROPIC_API_KEY"
7796 -H 'anthropic-version: 2026-10-21' \
7797 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
78577798```
78587799 
78597800##### Response (200)
from line 7887
79467887```bash
79477888curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/members/$USER_ID \
79487889 -H 'Content-Type: application/json' \
7949 -H 'anthropic-version: 2023-06-01' \
7950 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
7890 -H 'anthropic-version: 2026-10-21' \
7891 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
79517892 -d '{
79527893 "workspace_role": "workspace_admin"
79537894 }'
from line 7952
80117952```bash
80127953curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/members/$USER_ID \
80137954 -X DELETE \
8014 -H 'anthropic-version: 2023-06-01' \
8015 -H "X-Api-Key: $ANTHROPIC_API_KEY"
7955 -H 'anthropic-version: 2026-10-21' \
7956 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
80167957```
80177958 
80187959##### Response (200)
from line 8055
81148055 
81158056```bash
81168057curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/service_accounts \
8117 -H 'anthropic-version: 2023-06-01' \
8118 -H "X-Api-Key: $ANTHROPIC_API_KEY"
8058 -H 'anthropic-version: 2026-10-21' \
8059 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
81198060```
81208061 
81218062##### Response (200)
from line 8169
82288169```bash
82298170curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/service_accounts \
82308171 -H 'Content-Type: application/json' \
8231 -H 'anthropic-version: 2023-06-01' \
8232 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
8172 -H 'anthropic-version: 2026-10-21' \
8173 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
82338174 -d '{
82348175 "service_account_id": "service_account_id",
82358176 "workspace_role": "workspace_admin"
from line 8265
83248265 
83258266```bash
83268267curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/service_accounts/$SERVICE_ACCOUNT_ID \
8327 -H 'anthropic-version: 2023-06-01' \
8328 -H "X-Api-Key: $ANTHROPIC_API_KEY"
8268 -H 'anthropic-version: 2026-10-21' \
8269 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
83298270```
83308271 
83318272##### Response (200)
from line 8372
84318372```bash
84328373curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/service_accounts/$SERVICE_ACCOUNT_ID \
84338374 -H 'Content-Type: application/json' \
8434 -H 'anthropic-version: 2023-06-01' \
8435 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
8375 -H 'anthropic-version: 2026-10-21' \
8376 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
84368377 -d '{
84378378 "workspace_role": "workspace_admin"
84388379 }'
from line 8443
85028443```bash
85038444curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/service_accounts/$SERVICE_ACCOUNT_ID \
85048445 -X DELETE \
8505 -H 'anthropic-version: 2023-06-01' \
8506 -H "X-Api-Key: $ANTHROPIC_API_KEY"
8446 -H 'anthropic-version: 2026-10-21' \
8447 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
85078448```
85088449 
85098450##### Response (200)
from line 8533
85928533 
85938534 - `group: OrganizationRateLimitModelGroup or OrganizationRateLimitBatchGroup or OrganizationRateLimitTokenCountGroup or 3 more`
85948535 
8595 The rate-limit group this entry's limits apply to. Its `type` equals `group_type`.
8536 The rate-limit group this entry's limits apply to.
85968537 
85978538 - `OrganizationRateLimitModelGroup object`
85988539 
from line 8625
86848625 
86858626 - `models: array of string or null`
86868627 
8687 Model names this entry's limits apply to, including aliases. `null` when `group_type` is not `"model_group"`.
8628 Model names this entry's limits apply to, including aliases. `null` when `group.type` is not `"model_group"`.
86888629 
8689 - `group_type: "batch" or "files" or "model_group" or 3 more`
8690 
8691 **Deprecated**: Use `group.type` instead. `group_type` is still returned and always equals `group.type`.
8692 
8693 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`.
8694 
8695 - `"batch"`
8696 
8697 - `"files"`
8698 
8699 - `"model_group"`
8700 
8701 - `"skills"`
8702 
8703 - `"token_count"`
8704 
8705 - `"web_search"`
8706 
87078630- `next_page: string or null`
87088631 
87098632 Opaque cursor for the next page of results, or `null` when no entries remain beyond this response.
from line 8635
87128635 
87138636```bash
87148637curl https://api.anthropic.com/v1/organizations/rate_limits \
8715 -H 'anthropic-version: 2023-06-01' \
8716 -H "X-Api-Key: $ANTHROPIC_API_KEY"
8638 -H 'anthropic-version: 2026-10-21' \
8639 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
87178640```
87188641 
87198642##### Response (200)
from line 8651
87288651 "display_name": "display_name",
87298652 "type": "model_group"
87308653 },
8731 "group_type": "batch",
87328654 "limits": [
87338655 {
87348656 "type": "type",
from line 8716
87948716 
87958717```bash
87968718curl https://api.anthropic.com/v1/organizations/compliance_settings \
8797 -H 'anthropic-version: 2023-06-01' \
8798 -H "X-Api-Key: $ANTHROPIC_API_KEY"
8719 -H 'anthropic-version: 2026-10-21' \
8720 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
87998721```
88008722 
88018723##### Response (200)
from line 8801
88798801```bash
88808802curl https://api.anthropic.com/v1/organizations/compliance_settings \
88818803 -H 'Content-Type: application/json' \
8882 -H 'anthropic-version: 2023-06-01' \
8883 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
8804 -H 'anthropic-version: 2026-10-21' \
8805 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
88848806 -d '{
88858807 "state": {
88868808 "type": "enabled"
Feedback