Daily · · Claude · 🌶️🌶️Worth a lookMedium: worth a look Why: Breaking changes on upgrade
Claude API 2026-10-21: What now returns a 400 error
Claude SDK users, check before you upgrade: the new major SDK and ant CLI versions released on Oct 21, 2026 send API version 2026-10-21 by default.
In that version, temperature, top_p or top_k in a request returns a 400 error, and so do document blocks placed directly in assistant messages. The new versions also move from the MIT License to Apache 2.0.
What changed
A routine dependency bump could start failing your Claude calls. Each SDK sends the API version that was current when its major version came out, so moving to a new major version also moves you to the new API version.
What changed
Earlier SDK and CLI versions sent 2023-06-01 with every request. The new major versions of the Python, TypeScript, C#, Go, Java, PHP and Ruby SDKs and the ant CLI send 2026-10-21, including their Amazon Bedrock and Google Cloud clients.
If you call the API without an SDK, you switch by setting the anthropic-version header to 2026-10-21 yourself.
What breaks on the new version
- The sampling settings are gone. Sending
temperature,top_portop_kreturns a 400 error, even at the default value. Models that already accept only the defaults sample as before, but on models that accept other values, a loweredtemperatureloses its effect and nothing replaces it. - A
documentblock placed directly in anassistantmessage returns a 400 error. Send documents inusermessages instead. - A
textblock with a non-emptycitationsarray in ausermessage returns a 400 error. - Some Admin API and Claude Enterprise Analytics API fields drop their old names. API keys, for example, replace
workspace_idwith ascopeobject that holds different values: a key bound to a workspace, the Default Workspace included, has that workspace’s real ID inscope., and an all-workspaces key has no workspace ID. Code that treated a nullworkspace_ id workspace_idas the Default Workspace needs a change.
What to do
- Remove
temperature,top_pandtop_kfrom your requests, or keep a request that relies on a non-default value on2023-06-01. - Upgrade the SDK and make the code changes its new major version needs. The migration guide lists them per language, including new Go import paths.
- Test against
2026-10-21before you release. On Amazon Bedrock, older models don’t support the new version, so the guide says to stay on your current SDK for those calls. - If you track dependency licenses, update the entry for the switch to Apache 2.0.
Source: Claude Platform release notes, Oct 21, 2026 · Claude docs: migrate to API version 2026-10-21