API Keys changedapi/organization/api_keys
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+14added
Lines−41removed
From line
161
where the diff opens
First seen
30 Sep 2026
this site's first read of the page
Recorded edits4to this page, all time
The whole hunk
from line 161, old and new numbered
/
from line 161
161161
162162 - `workspace_id: string`
163163
164 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.
164 ID of the Workspace the API key belongs to, including when it is the organization's default Workspace.
165165
166166 - `status: "active" or "archived" or "expired" or "inactive"`
167167
from line 175
175175
176176 - `"inactive"`
177177
178 - `workspace_id: string or null`
179
180 **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.
181
182 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.
183
184178- `first_id: string or null`
185179
186180 First ID in the `data` list. Can be used as the `before_id` for the previous page.
from line 191
197191
198192```bash
199193curl https://api.anthropic.com/v1/organizations/api_keys \
200 -H 'anthropic-version: 2023-06-01' \
201 -H "X-Api-Key: $ANTHROPIC_API_KEY"
194 -H 'anthropic-version: 2026-10-21' \
195 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
202196```
203197
204198#### Response (200)
from line 219
225219 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
226220 },
227221 "status": "active",
228 "type": "api_key",
229 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
222 "type": "api_key"
230223 }
231224 ],
232225 "first_id": "first_id",
from line 352
359352
360353 - `workspace_id: string`
361354
362 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.
355 ID of the Workspace the API key belongs to, including when it is the organization's default Workspace.
363356
364357 - `status: "active" or "archived" or "expired" or "inactive"`
365358
from line 366
373366
374367 - `"inactive"`
375368
376 - `workspace_id: string or null`
377
378 **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.
379
380 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.
381
382369### Example
383370
384371```bash
385372curl https://api.anthropic.com/v1/organizations/api_keys/$API_KEY_ID \
386 -H 'anthropic-version: 2023-06-01' \
387 -H "X-Api-Key: $ANTHROPIC_API_KEY"
373 -H 'anthropic-version: 2026-10-21' \
374 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
388375```
389376
390377#### Response (200)
from line 396
409396 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
410397 },
411398 "status": "active",
412 "type": "api_key",
413 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
399 "type": "api_key"
414400}
415401```
416402
from line 542
556542
557543 - `workspace_id: string`
558544
559 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.
545 ID of the Workspace the API key belongs to, including when it is the organization's default Workspace.
560546
561547 - `status: "active" or "archived" or "expired" or "inactive"`
562548
from line 556
570556
571557 - `"inactive"`
572558
573 - `workspace_id: string or null`
574
575 **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.
576
577 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.
578
579559### Example
580560
581561```bash
582562curl https://api.anthropic.com/v1/organizations/api_keys/$API_KEY_ID \
583563 -H 'Content-Type: application/json' \
584 -H 'anthropic-version: 2023-06-01' \
585 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
564 -H 'anthropic-version: 2026-10-21' \
565 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
586566 -d '{}'
587567```
588568
from line 588
608588 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
609589 },
610590 "status": "active",
611 "type": "api_key",
612 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
591 "type": "api_key"
613592}
614593```
615594
from line 698
719698
720699 - `workspace_id: string`
721700
722 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.
701 ID of the Workspace the API key belongs to, including when it is the organization's default Workspace.
723702
724703 - `status: "active" or "archived" or "expired" or "inactive"`
725704
from line 712
733712
734713 - `"inactive"`
735714
736 - `workspace_id: string or null`
737
738 **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.
739
740 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.
741
742715### API Key Created By
743716
744717- `APIKeyCreatedBy object`
from line 778
805778
806779 - `workspace_id: string`
807780
808 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.
781 ID of the Workspace the API key belongs to, including when it is the organization's default Workspace.
809782
No line in this hunk matches that.