You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
ImprovementsKind: in v2.1.333,
ImprovementsSection of the release
What
Claude Code includes guidance for the model (the AI) on how to call Anthropic's API. When the credential comes from ANTHROPIC_AUTH_TOKEN, that guidance now says to send it in the Authorization: Bearer header and not in the x-api-key header. Before, it said to send the Bearer header together with another header.
Why
In practice, code Claude writes against the API with ANTHROPIC_AUTH_TOKEN should now use only the Bearer header.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added sinceA small documentation edit on attribute-requests touched a line naming ANTHROPIC_AUTH_TOKEN after this was published.This sample and others like it on this page send an access token from `ANTHROPIC_AUTH_TOKEN`, such as a [workload identity federation](https://platform.claude.com/docs/en/manage-claude/workload-identity-federation#authenticate-from-your-wo…manage-claude/user-profiles/attribute-requestssee the edit
Confirmed sinceAnthropic's documentation has since written up ANTHROPIC_AUTH_TOKEN, on external-storage.* **An OAuth bearer token with the `org:admin` scope:** Every request on this page takes one in the `authorization: Bearer` header. To get one, see [OAuth bearer token](https://platform.claude.com/docs/en/manage-claude/admin-api#oauth-bear…manage-claude/enterprise-frontier-safeguards/external-storagesee the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up ANTHROPIC_AUTH_TOKEN, on external-storage.