What this thread does
Do first: remove temperature, top_p and top_k from your Messages requests, and move any @anthropic-ai/bedrock-sdk, vertex-sdk, foundry-sdk, aws-sdk or google-cloud-sdk to v1 in the same upgrade. Not for: the Python SDK (its major version is 2.0.0).
Sources read, checked 2026-10-30: the official release notes for sdk-v1.0.0 (published 2026-10-21), the repo's MIGRATION.md, which points to Anthropic's guide Migrating to API version 2026-10-21, and the notes for sdk-v1.1.0, v1.2.0 and v1.3.0. This page restates them in short; the guide is the authority.
What the release notes list
- Under "BREAKING CHANGES": support for the new API version 2026-10-21.
- Features: a
workspace_idfilter and ausage_tierscope type to list spend limits. - A documentation fix: an outdated system role note removed from the messages description.
What the migration guide says to do
- Upgrade
@anthropic-ai/sdkto 1.0.0. The guide says SDK requests use the API version in use when the SDK's major version was released, so 1.0.0 is the first TypeScript version on 2026-10-21. Without an SDK, send theanthropic-version: 2026-10-21header. - The v1 platform packages need
@anthropic-ai/sdkv1, and their earlier versions need a version below 1. The guide says to move them together, otherwise your package manager installs a second, older copy of the SDK for them. - On Amazon Bedrock, 2026-10-21 is available only for Claude 4.7 and later models. For older Bedrock models the guide says to stay on the SDK version you use today.
- Test against 2026-10-21 before you release, together with your fixes for the items below.
API behavior that now returns errors
- A
documentblock placed directly in anassistantmessage returns a 400. Send documents inusermessages. - A
textblock with non-emptycitationsin ausermessage returns a 400. Citations on assistant text blocks you send back are still accepted. temperature,top_pandtop_kreturn a 400, even at default values. The SDK types no longer have them. The guide notes that on models accepting other values, such as Claude Sonnet 4.6, dropping a loweredtemperatureloses that effect; it offers keeping that request on 2023-06-01 as the alternative.- Admin API and Enterprise Analytics responses drop old field names (for example
workspace_idon API keys, replaced byscope). Read the guide's tables if you parse those responses.
TypeScript SDK code changes in the guide
MessageParamis nowUserMessageParam | AssistantMessageParam | SystemMessageParam;BetaMessageParamis split the same way. A literal that names its role still type-checks. Code that copies a message of any role must checkrolefirst, andinterface X extends MessageParambecomes a type alias.- The tool runner's
compactionControloption and its module are gone (the guide says it stopped working in v0.129.0, where passing it threwAnthropicError). Usebetas: ["compact-2026-01-12"]withcontext_management, orrunner.compactBeforeNextTurn(). - Text Completions is removed.
betasis gone from the non-beta Models methods: callclient.beta.modelsinstead. - The SDK sends your API key as
Authorization: Bearer <key>instead ofX-Api-Key. Change any proxy, gateway, log filter or test stub that readsX-Api-Key; the guide says the API accepts either header, and shows settingdefaultHeaders: { "X-Api-Key": apiKey, Authorization: null }to keep the old header.apiKeyin@anthropic-ai/foundry-sdkstill goes out asX-Api-Key. - A client holds one credential. Passing two of
apiKey,authToken,credentials,configorprofiletonew Anthropic()throws aTypeError. With none passed, the first ofANTHROPIC_API_KEY,ANTHROPIC_AUTH_TOKEN, theANTHROPIC_PROFILEprofile, federation variables and the active profile is used, with a one-time warning when both of the first two are set. - From 1.0.0 the SDK is licensed Apache 2.0 (earlier versions stay MIT); the platform packages change license in their own 1.0.0 releases.
Later 1.x releases (none labeled breaking)
- sdk-v1.1.0 (2026-10-21): enforcement status, actions and a filter on user profiles.
- sdk-v1.2.0 (2026-10-23): support for message threads; usage and cost reports by dimension, older reports marked legacy; fixes so a tool runner copies the messages it is created with again and keeps its behavior after
setMessagesParams()orpushMessages(). - sdk-v1.3.0 (2026-10-23): Claude Tag endpoints for Claude Enterprise organizations; long-request error messages now link to the SDK documentation.
Credit: Anthropic, the SDK maintainers and the release notes' authors. Not for: the Python SDK upgrade or Bedrock stream errors.
Started from a post by @anthropics, packaged by the editor. Original post