In short.
Anthropic's Authentication guide helps developers connect applications to the Claude API, but it provides only an overview of federation and Apple app setup. Its detailed API-key guidance distinguishes personal, service-account and legacy workspace keys, including their workspace scope and lifecycle. It also explains short-lived federation tokens, device attestation and browser restrictions. No examples or services were executed, so operational behavior is not assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete Authentication document at [https://platform.claude.com/docs/en/manage-claude/authentication.md]: its three authentication methods, API-key types and lifecycle, workspace rules, examples, migration guidance and browser restrictions. Linked setup guides, SDK references, pricing and legal terms are excluded. Legacy and security notices are included where relevant. No code, API requests, token exchanges or device-attestation flows were executed; operational behavior remains unverified.
The overview
identity
This is Anthropic's Authentication documentation for the Claude API, available at [https://platform.claude.com/docs/en/manage-claude/authentication.md]. It is a technical guide rather than an application, SDK or authentication service.
The page covers three authentication methods: static API keys, Workload Identity Federation using an existing identity provider, and App Attest for registered iOS and macOS applications.
assessment
The guide is useful for choosing an authentication method and understanding API-key operations. Its practical detail includes who owns a key, when it stops working, how requests select a workspace and why a valid key can still fail in a browser.
Coverage is uneven by design: API-key creation and request examples are detailed, while full federation configuration and App Attest registration are delegated to linked documentation. Authentication reliability and security effectiveness were not independently assessed.
users
Individual developers and script authors get guidance on personal keys. Teams running shared services, production workloads or CI jobs get guidance on service-account keys and federation.
Cloud and infrastructure developers can use the method comparison when workloads already have an AWS, Google Cloud or standards-compliant OIDC identity. Apple app developers get an introduction to direct device access through App Attest. Web developers get specific guidance on keeping credentials in their own back end.
capabilities
The page explains key creation, ownership, workspace scope, expiration, disabling, deletion and migration from legacy workspace keys. It includes request or client examples for cURL, the CLI, Python, TypeScript, C#, Go, Java, PHP and Ruby.
It documents useful failure distinctions: omitting a required workspace header produces a 400 invalid_request_error; expired keys produce a 401 authentication_error; an unknown or inaccessible workspace produces a 404 not_found_error.
For credential lifecycle management, disabling is reversible, while deletion archives a key permanently. Expiration is fixed when a key is created, and expired keys cannot be reactivated.
Using it
requirements
API-key setup requires access to the Claude Console and an appropriate user or service-account identity. An organization administrator may need to create a service account and grant it workspace access. Static keys require protected storage and rotation.
A personal or service-account key without a workspace restriction requires the anthropic-workspace-id header on API requests. The Admin API accepts these key types only when they are not scoped to a specific workspace.
Federation requires an identity provider, a Claude service account, a federation issuer and a federation rule. App Attest requires registering an iOS or macOS app and using Apple's attestation service. Detailed prerequisites and compatible SDK versions are not established by this page.
mechanism
API keys authenticate each request through Authorization: Bearer <key>; the legacy x-api-key header is also accepted. Personal and service-account keys act as their associated identity and depend on that identity's access.
Workload Identity Federation exchanges an identity-provider-issued JWT at POST /v1/oauth/token for a short-lived Claude API access token. The guide says the SDK refreshes that token automatically. API keys and federation grant the same access to Claude API endpoints.
App Attest uses Apple's service to establish that an installation is a genuine, unmodified build of a registered app. Anthropic then issues a workspace-scoped access token lasting one hour and authorizing only Messages API calls.
setup
For API keys, open [https://platform.claude.com/settings/keys], create a key, choose its linked identity and expiration, and scope it to the integration's workspace when appropriate. Store it securely and provide it through ANTHROPIC_API_KEY or an explicit SDK parameter.
For a key that is not scoped to a single workspace, obtain the intended workspace ID (from the ID column on the Workspaces page or the List Workspaces endpoint) and send anthropic-workspace-id on each request, or configure that header on the client. When replacing a legacy key, update the integration, confirm requests succeed, then delete the old key.
Full federation setup is linked at [https://platform.claude.com/docs/en/manage-claude/workload-identity-federation]. App registration and attestation setup are linked at [https://platform.claude.com/docs/en/manage-claude/app-attest]. Those pages' contents are outside this report.
example
The documented HTTP request sends POST /v1/messages to [https://api.anthropic.com/v1/messages], with authentication, anthropic-version: 2026-10-21 and content-type: application/json. Its cURL example uses x-api-key, model claude-opus-5-5, max_tokens of 1024 and a user message saying Hello, Claude.
For an unscoped personal or service-account key, the workspace example adds anthropic-workspace-id. The Python example shows both a per-request extra_headers setting and client-wide default_headers. These are documented examples, not executed results or confirmation of current model availability.
Assessment & evidence
limitations
Static API keys remain secrets that require secure handling. Sharing a personal key ties a shared workload to one person's permissions and organization membership. Federation removes long-lived Claude keys, but its security still depends on the upstream identity configuration and credentials.
Browser access requires an explicit dangerous-direct-access setting and exposes any embedded key to users. Organizations with zero data retention or Compliance API enabled cannot make browser requests even with that setting. Compliance API restrictions can be inherited from an Enterprise parent organization.
A back end that forwards the browser's Origin header can encounter the same browser restriction; the guide advises creating a new upstream request. App Attest is limited here to iOS and macOS applications and Messages API access. SDK compatibility, performance and live integration behavior are not assessed.
reasoning
The guide's method choices follow credential ownership and deployment environment. A personal key suits an individual's development work; a service account gives a shared workload its own identity and lifecycle.
Federation is a practical fit when infrastructure already supplies a trusted identity, because it avoids distributing a separate long-lived Claude key. App Attest addresses direct access from registered Apple applications, with a narrower endpoint scope. These are architectural tradeoffs described by the guide, not measured comparisons.
alternatives
The alternatives covered are authentication methods within the Claude API. API keys offer a simpler starting point, federation uses an existing platform identity, and App Attest supports direct access from genuine Apple app installations.
Legacy workspace keys still work, but the guide prefers identity-backed keys or federation for new integrations. For browser applications, it recommends routing requests through an application back end. Other providers and authentication products are not compared.
evidence
The evidence is the complete Authentication page at [https://platform.claude.com/docs/en/manage-claude/authentication.md]. It supplies Anthropic's descriptions, configuration instructions, request examples and expected error responses.
No independent measurements, execution logs or end-to-end demonstrations are supplied. The documented behavior is attributable to Anthropic; practical outcomes were not verified by running requests, SDKs, federation exchanges or device attestation.
Access & freshness
costs
The page gives no API prices, authentication fees, free allowance or identity-provider costs. These costs remain unknown.
It explicitly states that App Attest access tokens bill usage to your workspace. It does not provide enough information to estimate a workload's total operating cost.
rights
The supplied page states no license or redistribution permission for its documentation or examples. Applicable API service terms and commercial-use conditions are also not provided, so those permissions are unknown from this evidence.
freshness
The available document was captured on 15 November 2026. It does not state a publication or last-update date.
The examples specify API version 2026-10-21; that is not a document revision date. Current SDK compatibility, later documentation changes and continued availability of the example model are unknown from this page alone.
actions
Choose the authentication method according to the deployment: personal key for individual development, service-account key for shared automation, federation for workloads with suitable platform identities, or App Attest for registered Apple applications.
Before integrating, establish workspace access, credential ownership and expiration handling. For web applications, keep credentials in the back end and create a fresh upstream request rather than forwarding the browser's Origin header.
Consult the linked setup guide for federation or App Attest, and establish current SDK compatibility and pricing separately. When migrating keys, confirm successful requests with the replacement before deleting the old credential.
