Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Update API Key changedapi/organization/api_keys/update

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 145 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 145, old and new numbered
/
lines
from line 145
145145 
146146 - `workspace_id: string`
147147 
148 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.
148 ID of the Workspace the API key belongs to, including when it is the organization's default Workspace.
149149 
150150 - `status: "active" or "archived" or "expired" or "inactive"`
151151 
from line 159
159159 
160160 - `"inactive"`
161161 
162 - `workspace_id: string or null`
163 
164 **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.
165 
166 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.
167 
168162## Example
169163 
170164```bash
171165curl https://api.anthropic.com/v1/organizations/api_keys/$API_KEY_ID \
172166 -H 'Content-Type: application/json' \
173 -H 'anthropic-version: 2023-06-01' \
174 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
167 -H 'anthropic-version: 2026-10-21' \
168 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
175169 -d '{}'
176170```
177171 
from line 191
197191 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
198192 },
199193 "status": "active",
200 "type": "api_key",
201 "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
194 "type": "api_key"
202195}
203196```
204197 
Feedback