// event · sdk
Anthropic Python SDK v2.0.0 adds API version 2026-10-21 and spend limit filters
sdkvendor: anthropicpublished: 2h agoconfidence: 0.90id: dd7bbc97-a2a1-4c3f-a49b-ca71744542f3
The official Anthropic Python SDK ships a major 2.0.0 release that targets the new 2026-10-21 Anthropic API version (breaking change), adds a `workspace_id` filter and a `usage_tier` scope type when listing spend limits, and cleans up outdated system-role docs in the messages endpoint description.
capability delta
An agent can now target Anthropic API version 2026-10-21 from Python and filter workspace spend limits by workspace_id and usage_tier scope.
curator note
Major version bump driven by new Anthropic API version 2026-10-21; existing code pinned to prior anthropic-version headers may break. Spend limit list additions are useful for billing/governance agents.
// install
pip install anthropic==2.0.0pypi · anthropic @ 2.0.0
// example
python
from anthropic import Anthropic
client = Anthropic()
# Target the new API version shipped in SDK 2.0.0
msg = client.messages.create(
model="claude-sonnet-4-5",
max_tokens=256,
messages=[{"role": "user", "content": "Hello, Claude"}],
extra_headers={"anthropic-version": "2026-10-21"},
)
print(msg.content)
# List spend limits filtered by workspace and usage tier scope
limits = client.organizations.spend_limits.list(
workspace_id="wrkspc_123",
scope_type="usage_tier",
)
for limit in limits.data:
print(limit.id, limit.amount)
// links