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 17
1717
1818 The version of the Claude API you want to use.
1919
20 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
20 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
2121
2222### Returns
2323
from line 157
157157
158158 The version of the Claude API you want to use.
159159
160 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
160 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
161161
162162#### Returns
163163
from line 355
355355
356356 The version of the Claude API you want to use.
357357
358 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
358 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
359359
360360#### Returns
361361
from line 534
534534
535535 The version of the Claude API you want to use.
536536
537 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
537 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
538538
539539#### Body parameters
540540
from line 729
729729
730730 The version of the Claude API you want to use.
731731
732 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
732 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
733733
734734#### Body parameters
735735
from line 963
963963
964964 The version of the Claude API you want to use.
965965
966 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
966 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
967967
968968#### Returns
969969
from line 1120
11201120
11211121 The version of the Claude API you want to use.
11221122
1123 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
1123 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
11241124
11251125#### Returns
11261126
from line 1278
12781278
12791279 The version of the Claude API you want to use.
12801280
1281 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
1281 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
12821282
12831283#### Body parameters
12841284
from line 1502
15021502
15031503 The version of the Claude API you want to use.
15041504
1505 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
1505 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
15061506
15071507#### Returns
15081508
from line 1557
15571557
15581558 The version of the Claude API you want to use.
15591559
1560 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
1560 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
15611561
15621562#### Returns
15631563
from line 1602
16021602
16031603**POST** `/v1/organizations/federation_issuers`
16041604
1605**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).
1605**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).
16061606
16071607Register an OIDC issuer that Anthropic will trust for workload identity
16081608federation in your organization.
from line 1622
16221622
16231623 The version of the Claude API you want to use.
16241624
1625 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
1625 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
16261626
16271627- `"anthropic-beta": optional array of AnthropicBeta`
16281628
from line 1990
19901990
19911991**GET** `/v1/organizations/federation_issuers`
19921992
1993**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).
1993**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).
19941994
19951995List federation issuers in your organization.
19961996
from line 2020
20202020
20212021 The version of the Claude API you want to use.
20222022
2023 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
2023 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
20242024
20252025- `"anthropic-beta": optional array of AnthropicBeta`
20262026
from line 2313
23132313
23142314**GET** `/v1/organizations/federation_issuers/{federation_issuer_id}`
23152315
2316**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).
2316**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).
23172317
23182318Retrieve a federation issuer by its ID (`fdis_...`).
23192319
from line 2329
23292329
23302330 The version of the Claude API you want to use.
23312331
2332 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
2332 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
23332333
23342334- `"anthropic-beta": optional array of AnthropicBeta`
23352335
from line 2618
26182618
26192619**POST** `/v1/organizations/federation_issuers/{federation_issuer_id}`
26202620
2621**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).
2621**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).
26222622
26232623Partially update a federation issuer.
26242624
from line 2641
26412641
26422642 The version of the Claude API you want to use.
26432643
2644 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
2644 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
26452645
26462646- `"anthropic-beta": optional array of AnthropicBeta`
26472647
from line 3010
30103010
30113011**POST** `/v1/organizations/federation_issuers/{federation_issuer_id}/archive`
30123012
3013**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).
3013**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).
30143014
30153015Archive a federation issuer.
30163016
from line 3031
30313031
30323032 The version of the Claude API you want to use.
30333033
3034 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
3034 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
30353035
30363036- `"anthropic-beta": optional array of AnthropicBeta`
30373037
from line 3323
33233323
33243324**POST** `/v1/organizations/federation_rules`
33253325
3326**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).
3326**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).
33273327
33283328Create a federation rule owned by your organization.
33293329
from line 3347
33473347
33483348 The version of the Claude API you want to use.
33493349
3350 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
3350 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
33513351
33523352- `"anthropic-beta": optional array of AnthropicBeta`
33533353
from line 3735
37353735
37363736**GET** `/v1/organizations/federation_rules`
37373737
3738**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).
3738**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).
37393739
37403740List federation rules in your organization.
37413741
from line 3770
37703770
37713771 The version of the Claude API you want to use.
37723772
3773 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
3773 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
37743774
37753775- `"anthropic-beta": optional array of AnthropicBeta`
37763776
from line 4063
40634063
40644064**GET** `/v1/organizations/federation_rules/{federation_rule_id}`
40654065
4066**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).
4066**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).
40674067
40684068Retrieve a federation rule by its ID (`fdrl_...`).
40694069
from line 4079
40794079
40804080 The version of the Claude API you want to use.
40814081
4082 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
4082 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
40834083
40844084- `"anthropic-beta": optional array of AnthropicBeta`
40854085
from line 4374
43744374
43754375**POST** `/v1/organizations/federation_rules/{federation_rule_id}`
43764376
4377**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).
4377**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).
43784378
43794379Partially update a federation rule.
43804380
from line 4406
44064406
44074407 The version of the Claude API you want to use.
44084408
4409 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
4409 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
44104410
44114411- `"anthropic-beta": optional array of AnthropicBeta`
44124412
from line 4781
47814781
47824782**POST** `/v1/organizations/federation_rules/{federation_rule_id}/archive`
47834783
4784**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).
4784**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).
47854785
47864786Archive a federation rule.
47874787
from line 4805
48054805
48064806 The version of the Claude API you want to use.
48074807
4808 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
4808 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
48094809
48104810- `"anthropic-beta": optional array of AnthropicBeta`
48114811
from line 5103
51035103
51045104**POST** `/v1/organizations/federation_rules/{federation_rule_id}/workspaces`
51055105
5106**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).
5106**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).
51075107
51085108Enable a federation rule for a workspace.
51095109
from line 5128
51285128
51295129 The version of the Claude API you want to use.
51305130
5131 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
5131 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
51325132
51335133- `"anthropic-beta": optional array of AnthropicBeta`
51345134
from line 5301
53015301
53025302**GET** `/v1/organizations/federation_rules/{federation_rule_id}/workspaces`
53035303
5304**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).
5304**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).
53055305
53065306List workspaces where this federation rule is enabled.
53075307
from line 5335
53355335
53365336 The version of the Claude API you want to use.
53375337
5338 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
5338 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
53395339
53405340- `"anthropic-beta": optional array of AnthropicBeta`
53415341
from line 5507
55075507
55085508**DELETE** `/v1/organizations/federation_rules/{federation_rule_id}/workspaces/{workspace_id}`
55095509
5510**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).
5510**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).
55115511
55125512Disable a federation rule for a workspace.
55135513
from line 5532
55325532
55335533 The version of the Claude API you want to use.
55345534
5535 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
5535 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
55365536
55375537- `"anthropic-beta": optional array of AnthropicBeta`
55385538
from line 5689
56895689
56905690 The version of the Claude API you want to use.
56915691
5692 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
5692 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
56935693
56945694#### Body parameters
56955695
from line 5880
58805880
58815881 The version of the Claude API you want to use.
58825882
5883 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
5883 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
58845884
58855885#### Returns
58865886
from line 6021
60216021
60226022 The version of the Claude API you want to use.
60236023
6024 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
6024 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
60256025
60266026#### Returns
60276027
from line 6143
61436143
61446144 The version of the Claude API you want to use.
61456145
6146 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
6146 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
61476147
61486148#### Returns
61496149
from line 6183
61836183
61846184**POST** `/v1/organizations/service_accounts`
61856185
6186**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).
6186**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).
61876187
61886188Create a service account.
61896189
from line 6201
62016201
62026202 The version of the Claude API you want to use.
62036203
6204 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
6204 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
62056205
62066206- `"anthropic-beta": optional array of AnthropicBeta`
62076207
from line 6428
64286428
64296429**GET** `/v1/organizations/service_accounts`
64306430
6431**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).
6431**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).
64326432
64336433List service accounts in the caller's organization.
64346434
from line 6460
64606460
64616461 The version of the Claude API you want to use.
64626462
6463 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
6463 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
64646464
64656465- `"anthropic-beta": optional array of AnthropicBeta`
64666466
from line 6665
66656665
66666666**GET** `/v1/organizations/service_accounts/{service_account_id}`
66676667
6668**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).
6668**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).
66696669
66706670Retrieve a service account by its ID (`svac_...`).
66716671
from line 6681
66816681
66826682 The version of the Claude API you want to use.
66836683
6684 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
6684 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
66856685
66866686- `"anthropic-beta": optional array of AnthropicBeta`
66876687
from line 6882
68826882
68836883**POST** `/v1/organizations/service_accounts/{service_account_id}`
68846884
6885**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).
6885**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).
68866886
68876887Update a service account.
68886888
from line 6903
69036903
69046904 The version of the Claude API you want to use.
69056905
6906 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
6906 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
69076907
69086908- `"anthropic-beta": optional array of AnthropicBeta`
69096909
from line 7122
71227122
71237123**POST** `/v1/organizations/service_accounts/{service_account_id}/archive`
71247124
7125**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).
7125**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).
71267126
71277127Archive a service account.
71287128
from line 7143
71437143
71447144 The version of the Claude API you want to use.
71457145
7146 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
7146 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
71477147
71487148- `"anthropic-beta": optional array of AnthropicBeta`
71497149
from line 7347
73477347
73487348**POST** `/v1/organizations/service_accounts/{service_account_id}/workspaces`
73497349
7350**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).
7350**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).
73517351
73527352Add a service account to a workspace with the given `workspace_role`.
73537353
from line 7370
73707370
73717371 The version of the Claude API you want to use.
73727372
7373 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
7373 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
73747374
73757375- `"anthropic-beta": optional array of AnthropicBeta`
73767376
from line 7564
75647564
75657565**GET** `/v1/organizations/service_accounts/{service_account_id}/workspaces`
75667566
7567**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).
7567**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).
75687568
75697569List the workspaces a service account is a member of.
75707570
from line 7606
76067606
76077607 The version of the Claude API you want to use.
76087608
7609 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
7609 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
76107610
76117611- `"anthropic-beta": optional array of AnthropicBeta`
76127612
from line 7786
77867786
77877787**DELETE** `/v1/organizations/service_accounts/{service_account_id}/workspaces/{workspace_id}`
77887788
7789**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).
7789**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).
77907790
77917791Remove a service account from a workspace.
77927792
from line 7814
78147814
78157815 The version of the Claude API you want to use.
78167816
7817 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
7817 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
78187818
78197819- `"anthropic-beta": optional array of AnthropicBeta`
78207820
from line 7999
79997999
80008000 The version of the Claude API you want to use.
80018001
8002 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
8002 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
80038003
80048004#### Returns
80058005
from line 8111
81118111
81128112 The version of the Claude API you want to use.
81138113
8114 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
8114 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
81158115
81168116#### Returns
81178117
from line 8204
82048204
82058205 The version of the Claude API you want to use.
82068206
8207 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
8207 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
82088208
82098209#### Body parameters
82108210
from line 8319
83198319
83208320 The version of the Claude API you want to use.
83218321
8322 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
8322 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
83238323
83248324#### Returns
83258325
from line 8397
83978397
83988398 The version of the Claude API you want to use.
83998399
8400 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
8400 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
84018401
84028402#### Returns
84038403
from line 8558
85588558
85598559 The version of the Claude API you want to use.
85608560
8561 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
8561 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
85628562
85638563- `"anthropic-beta": optional array of AnthropicBeta`
85648564
from line 8882
88828882
88838883 The version of the Claude API you want to use.
88848884
8885 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
8885 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
88868886
88878887#### Returns
88888888
from line 9028
90289028
90299029 The version of the Claude API you want to use.
90309030
9031 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
9031 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
90329032
90339033#### Body parameters
90349034
from line 9239
92399239
92409240 The version of the Claude API you want to use.
92419241
9242 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
9242 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
92439243
92449244#### Returns
92459245
from line 9436
94369436
94379437 The version of the Claude API you want to use.
94389438
9439 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
9439 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
94409440
94419441#### Returns
94429442
from line 9680
96809680
96819681 The version of the Claude API you want to use.
96829682
9683 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
9683 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
96849684
96859685#### Returns
96869686
from line 9772
97729772
97739773 The version of the Claude API you want to use.
97749774
9775 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
9775 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
97769776
97779777#### Body parameters
97789778
from line 9872
98729872
98739873 The version of the Claude API you want to use.
98749874
9875 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
9875 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
98769876
98779877#### Returns
98789878
from line 9949
99499949
99509950 The version of the Claude API you want to use.
99519951
9952 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
9952 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
99539953
99549954#### Body parameters
99559955
from line 10046
1004610046
1004710047 The version of the Claude API you want to use.
1004810048
10049 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
10049 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
1005010050
1005110051#### Returns
1005210052
from line 10091
1009110091
1009210092**GET** `/v1/organizations/workspaces/{workspace_id}/service_accounts`
1009310093
10094**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).
10094**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).
1009510095
1009610096List the service accounts that are members of a workspace.
1009710097
from line 10126
1012610126
1012710127 The version of the Claude API you want to use.
1012810128
10129 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
10129 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
1013010130
1013110131- `"anthropic-beta": optional array of AnthropicBeta`
1013210132
from line 10306
1030610306
1030710307**POST** `/v1/organizations/workspaces/{workspace_id}/service_accounts`
1030810308
10309**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).
10309**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).
1031010310
1031110311Add a service account to a workspace with the given `workspace_role`.
1031210312
from line 10331
1033110331
1033210332 The version of the Claude API you want to use.
1033310333
10334 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
10334 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning?sdk_languages=http).
1033510335
1033610336- `"anthropic-beta": optional array of AnthropicBeta`
1033710337
from line 10499
1049910499
1050010500```bash
1050110501curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/service_accounts \
10502 -H 'Content-Type: application/json' \
10503 -H 'anthropic-version: 2023-06-01' \
10504 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
10505 -d '{
10506 "service_account_id": "service_account_id",
10507 "workspace_role": "workspace_admin"
10508 }'
10509```
10510
10511##### Response (200)
10512
10513```json
10514{
10515 "created_by_actor_id": "created_by_actor_id",
10516 "implicit": true,
10517 "service_account_id": "service_account_id",
10518 "type": "service_account_workspace_member",
10519 "workspace_id": "workspace_id",
10520 "workspace_role": "workspace_admin"
10521}
10522```
10523
10524### Get Service Account Workspace Member
10525
10526**GET** `/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}`
10527
10528**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).
10529
10530Retrieve a service account's membership in a workspace.
10531
10532Returns the membership record, including the service account's
10533`workspace_role` in this workspace. Archived workspaces return 400. For
10534the default workspace, returns the implicit (`implicit: true`)
10535membership when no explicit membership exists; an explicitly added
10536membership is returned with its assigned role. An archived service
10537account returns 404.
10538
10539#### Path parameters
10540
10541- `workspace_id: string`
10542
10543 ID of the workspace.
10544
10545- `service_account_id: string`
10546
10547 ID of the service account.
10548
10549#### Headers
10550
10551- `"anthropic-version": optional string`
10552
10553 The version of the Claude API you want to use.
10554
10555 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
10556
10557- `"anthropic-beta": optional array of AnthropicBeta`
10558
10559 Optional header to specify the beta version(s) you want to use.
10560
10561 - `string`
10562
10563 - `"message-batches-2024-09-24"`
10564
10565 - `"prompt-caching-2024-07-31"`
10566
10567 - `"computer-use-2024-10-22"`
10568
10569 - `"computer-use-2025-01-24"`
10570
10571 - `"pdfs-2024-09-25"`
10572
10573 - `"token-counting-2024-11-01"`
10574
10575 - `"token-efficient-tools-2025-02-19"`
10576
10577 - `"output-128k-202
10502 -H 'Content-Type: a