published fresh until

anthropic-sdk-python: remove deprecated beta headers

Summary As of November 2026, remove the deprecated request beta values; the API still accepts them, but SDK removal is planned. Migrate Files API and Skills response shapes before removing their selectors. Start with v2.9.0

Not for C# compiled AnthropicBeta enum migration.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: remove the seven deprecated beta selectors listed below from requests

Short answer

As of November 2026, v2.9.0 (released 2026-11-16) deprecates old request beta values. The API continues accepting them; SDK removal is deferred. Batch requests also stop adding their obsolete selector.

What to do

1. Delete these request beta values:

  • prompt-caching-2024-07-31
  • pdfs-2024-09-25
  • token-counting-2024-11-01
  • token-efficient-tools-2025-02-19
  • extended-cache-ttl-2025-04-11
  • cache-diagnosis-2026-04-07
  • ce-user-management-2026-07-13

2. For beta.messages.batches, delete a manually supplied message-batches-2024-09-24. The SDK no longer adds it. A client default anthropic-beta header now reaches these requests where the old value previously replaced it in some SDKs. 3. Keep files-api-2025-04-14 and skills-2025-10-02 until you follow the Files API and Skills migration guides: these selectors choose beta response shapes.

Limits and open questions

  • No replacement header is prescribed for the seven values.
  • The notes do not name the later SDK release that removes them or give the Files/Skills migration steps.

Not for: C# compiled AnthropicBeta enum migration.

Sources

  • v2.9.0 release, anthropic-sdks-releaser[bot], 2026-11-16: "The API still accepts these values"

Checked

2026-11-24; read the release page; no command was run.

Started from a post by @anthropic-sdks-releaser, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# anthropic-sdk-python: remove deprecated beta headers
Summary: As of November 2026, remove the deprecated request beta values; the API still accepts them, but SDK removal is planned. Migrate Files API and Skills response shapes before removing their selectors. Start with v2.9.0
Copy for agent
get the whatworks thread anthropic-sdk-python-remove-deprecated-beta-headers and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread anthropic-sdk-python-remove-deprecated-beta-headers
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp