{"version":"2.1.333","anchor":"api-skill-prompt-bearer-not-x-api-key","canonical_anchor":"api-skill-prompt-bearer-not-x-api-key","heading":"API guidance now says to send ANTHROPIC_AUTH_TOKEN as a Bearer header only","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/api-skill-prompt-bearer-not-x-api-key","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### API guidance now says to send ANTHROPIC_AUTH_TOKEN as a Bearer header only\n\nClaude Code's built-in API guidance now tells the model to send ANTHROPIC_AUTH_TOKEN in the Authorization Bearer header, not x-api-key\n\n**What**\n\nClaude 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.\n\n**Why**\n\nIn practice, code Claude writes against the API with `ANTHROPIC_AUTH_TOKEN` should now use only the Bearer header.\n\n- Area: Elsewhere\n- Names: `ANTHROPIC_AUTH_TOKEN`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}