Before changedapi/migration-2026-10-21
Nearest release: v2.1.333, published 4 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+6added
Lines−3removed
From line
161
where the diff opens
First seen
23 Oct 2026
this site's first read of the page
Recorded edits10to this page, all time
The whole hunk
from line 161, old and new numbered
/
from line 161
161161
162162Affects you if your code reads `workspace_id` on API keys.
163163
164In `2023-06-01`, an API key’s `workspace_id` is the ID of the workspace the key is bound to, or `null` for a key bound to the Default Workspace and for a key that isn’t bound to one workspace (an all-workspaces key).
164In `2023-06-01`, an API key’s `workspace_id` is the ID of the workspace the key is scoped to. It’s `null` for a key scoped to the default workspace and for a key scoped to the organization.
165165
166In `2026-10-21`, `workspace_id` is removed. Read `scope` instead: for a key bound to a workspace, including the Default Workspace, `scope.workspace_id` is that workspace’s real ID, and an all-workspaces key has a `scope` of `{"type": "organization"}`, with no `workspace_id`.
166In `2026-10-21`, `workspace_id` is removed. Read `scope` instead:
167
168* For a key scoped to a workspace, including the default workspace, `scope.workspace_id` is that workspace’s real ID.
169* A key scoped to the organization has a `scope` of `{"type": "organization"}`, with no `workspace_id`.
167170
168171If your code treated a `null` `workspace_id` as the Default Workspace, compare `scope.workspace_id` with your Default Workspace’s ID instead. To find that ID, call [List Workspaces](https://platform.claude.com/docs/en/api/organization/workspaces/list) with `include_default=true` and take the workspace named `"Default"`.
169172
No line in this hunk matches that.