anthropic-sdk-typescript sdk-v1.0.0
- Source
- github.com
- Publisher
- Anthropic
- Author
- anthropic-sdks-releaser[bot]Top Viber
- Date

Context
The release notes for version 1.0.0 of Anthropic's TypeScript SDK list one breaking change, support for API version 2026-10-21, without saying what it covers. Anthropic's migration guide fills that in. An SDK uses the API version that was current when its major version shipped, and @anthropic-ai/sdk 1.0.0 is the first TypeScript release to send 2026-10-21. Upgrading the package therefore changes how the API treats your existing requests.
The version history lists what changes on the API side. In the Messages API, the , top_p and top_k sampling parameters are removed, and a request that sends any of them returns a 400 error on every model. Two message shapes are also rejected: a document block placed directly in an assistant message, and a user text block that carries a non-empty citations array. In the Admin API, several response fields are renamed. API keys, for example, now report their workspace under scope.workspace_id instead of workspace_id.
The guide also lists changes in the SDK itself, including these. The TypeScript SDK drops the legacy Text Completions API in favor of Messages. It removes the tool runner's compactionControl option, which had already stopped working in v0.129.0, in favor of -side . It sends the API key as : Bearer instead of in the X-Api-Key header, which matters to any proxy or gateway that reads that header. The Bedrock, Vertex, Foundry, AWS and Google Cloud packages must move to their own v1 in the same upgrade, or the package manager installs a second, older copy of the core SDK for them. The SDK also moves from the MIT license to Apache 2.0 starting with these versions. In Python, the same API version arrives with anthropic-sdk-python 2.0.0.
- Sampling controls — Parameters that shape how deterministic or varied model generation becomes.
- Server — Software that receives requests, processes them and returns responses; the computer running it is its host.
- Compaction — Replacing older content in the model's context with a summary of it, usually keeping recent messages, so that a session can go on.
- Authorization — The check that an authenticated identity is permitted to perform a particular operation on a particular resource.






