Retrieve API Key (Admin API) changedapi/organization/api_keys/retrieve
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+4added
Lines−11removed
From line
127
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 127, old and new numbered
/
from line 127
127127
128128 - `workspace_id: string`
129129
130 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.
130 ID of the Workspace the API key belongs to, including when it is the organization's default Workspace.
131131
132132 - `status: "active" or "archived" or "expired" or "inactive"`
133133
from line 141
141141
142142 - `"inactive"`
143143
144 - `workspace_id: string or null`
145
146 **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.
147
148 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.
149
150144## Example
151145
152146```bash
153147curl https://api.anthropic.com/v1/organizations/api_keys/$API_KEY_ID \
154 -H 'anthropic-version: 2023-06-01' \
155 -H "X-Api-Key: $ANTHROPIC_API_KEY"
148 -H 'anthropic-version: 2026-10-21' \
149 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
156150```
157151
158152### Response (200)
from line 171
177171 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
178172 },
179173 "status": "active",
180 "type": "api_key",
181 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
174 "type": "api_key"
182175}
183176```
184177
No line in this hunk matches that.