619 pages for anthropic_api_key.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
structured-outputs
Claude Developer Platform · in the page
build-with-claude/structured-outputs
…s \ -H "content-type: application/json" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -d '{ "model": "claude-opus-5-5", "max_token…
task-budgets
Claude Developer Platform · in the page
build-with-claude/task-budgets
…https://api.anthropic.com/v1/messages \ -N \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: task-budgets-2026-03-13" \ -H "content-t…
thinking
Claude Developer Platform · in the page
build-with-claude/thinking
…RL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{ "model": "…
thinking-tool-workflows
Claude Developer Platform · in the page
build-with-claude/thinking-tool-workflows
…-H "content-type: application/json" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -d '{ "model": "claude-opus-5-5", "max_tokens": 16000, "thinking": {"ty…
token-counting
Claude Developer Platform · in the page
build-with-claude/token-counting
…ps://api.anthropic.com/v1/messages/count_tokens \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "content-type: application/json" \ -H "anthropic-version: 2023-06-01" \ -d '{ "model": "…
vision
Claude Developer Platform · in the page
build-with-claude/vision
…RL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d @- <<EOF { "m…
working-with-messages
Claude Developer Platform · in the page
build-with-claude/working-with-messages
…sh curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{ "model": "…
apply
Claude Developer Platform · in the page
cli-sdks-libraries/cli/apply
…l be created Resources will be created with credentials API key (ANTHROPIC_API_KEY) host api.anthropic.com organization 1b0c2a4d-6c1f-4f0e-9a57-2e8d1c3b4a5f workspace wrkspc_0…
On a remote host without a browser:
Claude Developer Platform · in the page
cli-sdks-libraries/cli/authentication
…evated access. ## API key The CLI also reads your API key from the `ANTHROPIC_API_KEY` environment variable. Get a key from the [Claude Console](https://platform.claude.com/settings/keys). <Tabs>…
apple-foundation-models
Claude Developer Platform · in the page
cli-sdks-libraries/libraries/apple-foundation-models
…name: .sonnet5, auth: .apiKey(ProcessInfo.processInfo.environment["ANTHROPIC_API_KEY"] ?? "") ) let session = LanguageModelSession(model: model) let response = try await session.respond(to: "Plan…
openai-sdk
Claude Developer Platform · in the page
cli-sdks-libraries/libraries/openai-sdk
…penai import OpenAI client = OpenAI( api_key=os.environ.get("ANTHROPIC_API_KEY"), # Your Claude API key base_url="https://api.anthropic.com/v1/", # the Claude API endpoint ) resp…
csharp
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/csharp
…nment variables: ```csharp using Anthropic; // Configured using the ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL environment variables AnthropicClient client = new(); ``` Or manua…
go
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/go
…tion.WithAPIKey("my-anthropic-api-key"), // defaults to os.LookupEnv("ANTHROPIC_API_KEY") ) message, err := client.Messages.New(context.TODO(), anthropic.MessageNewParams{ MaxTokens: 1024, Messa…
java
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/java
…and `anthropic.baseUrl` system properties // Or configures using the `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN` and `ANTHROPIC_BASE_URL` environment variables AnthropicClient client = AnthropicOkHttp…
For Amazon Bedrock support
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/python
…# This is the default and can be omitted api_key=os.environ.get("ANTHROPIC_API_KEY"), ) message = client.messages.create( max_tokens=1024, messages=[ { "role": "user"…
Automatically handles tool execution loop
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/ruby
…## Usage ```ruby anthropic = Anthropic::Client.new( api_key: ENV["ANTHROPIC_API_KEY"] # This is the default and can be omitted ) message = anthropic.messages.create( max_tokens: 1024, message…
typescript
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/typescript
…```typescript const client = new Anthropic({ apiKey: process.env["ANTHROPIC_API_KEY"] // This is the default and can be omitted }); const message = await client.messages.create({ max_tokens: 10…
get-api-key
Claude Developer Platform · in the page
get-api-key
…your API key Set the key as an environment variable: ```bash export ANTHROPIC_API_KEY="sk-ant-api03-..." ``` The [client SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/overview) reads…
get-started
Claude Developer Platform · in the page
get-started
…ment variable. The cURL command in the following step reads it from `$ANTHROPIC_API_KEY`. ```bash export ANTHROPIC_API_KEY="your-api-key-here" ``` </Step> <Step t…
home
Claude Developer Platform · in the page
home
…s \ -H "content-type: application/json" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -d '{ "model": "claude-opus-5-5", "max_token…
admin-api
Claude Developer Platform · in the page
manage-claude/admin-api
…this page use the default client, which reads an Admin API key from `ANTHROPIC_API_KEY` or an OAuth bearer token from `ANTHROPIC_AUTH_TOKEN`. SDK list methods in Python, TypeScript, C#, Go, and Java…
authentication
Claude Developer Platform · in the page
manage-claude/authentication
…as `Authorization: Bearer <key>` on direct HTTP requests, or set the `ANTHROPIC_API_KEY` environment variable and the [client SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/overview) pick…
cmek-aws-kms
Claude Developer Platform · in the page
manage-claude/cmek-aws-kms
…com/v1/organizations/external_keys" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \…
cmek-azure-key-vault
Claude Developer Platform · in the page
manage-claude/cmek-azure-key-vault
…com/v1/organizations/external_keys" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \…
cmek-google-cloud-kms
Claude Developer Platform · in the page
manage-claude/cmek-google-cloud-kms
…com/v1/organizations/external_keys" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \…
data-residency
Claude Developer Platform · in the page
manage-claude/data-residency
…RL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{ "model": "…
api
Claude Developer Platform · in the page
manage-claude/opentelemetry/api
…om/docs/en/manage-claude/admin-api-keys) or a service account key in `ANTHROPIC_API_KEY`. On Claude Platform on AWS, send the requests to `https://aws-external-anthropic.{region}.api.aws` instead, sig…
organization-webhooks
Claude Developer Platform · in the page
manage-claude/organization-webhooks
…ple lists your organization's endpoints, using an Admin API key from `ANTHROPIC_API_KEY`. <CodeGroup> ```bash cURL curl "https://api.anthropic.com/v1/organizations/webhooks" \ -H "x-api-key:…
plugins-api
Claude Developer Platform · in the page
manage-claude/plugins-api
…efault client, which, like the CLI, reads the Admin API key from the `ANTHROPIC_API_KEY` environment variable; the curl examples read the key from the same variable and pass it in the `x-api-key` head…
rate-limits-api
Claude Developer Platform · in the page
manage-claude/rate-limits-api
…construct the default client, which reads the Admin API key from the `ANTHROPIC_API_KEY` environment variable. The SDKs expose these endpoints as `client.organization.rate_limits` (typescript: `client…
spend-limits-api
Claude Developer Platform · in the page
manage-claude/spend-limits-api
…ersion` header for you. The examples read the Admin API key from the `ANTHROPIC_API_KEY` environment variable. The SDK and the CLI fetch more pages for you as you go through the results, so `limit` se…
user-management
Claude Developer Platform · in the page
manage-claude/user-management
…the API reads them but cannot change them. ## Quick start Set the `ANTHROPIC_API_KEY` environment variable to your Admin API key. The examples on this page read the key from it. The SDK and the `an…
user-profiles
Claude Developer Platform · in the page
manage-claude/user-profiles
…curl https://api.anthropic.com/v1/user_profiles \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{ "name": "A…
user-profiles-verification-portal
Claude Developer Platform · in the page
manage-claude/user-profiles-verification-portal
…iles/uprof_011CZkZCu8hGbp5mYRQgUmz9/action_urls \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{"action": {"type"…
wif-admin-api
Claude Developer Platform · in the page
manage-claude/wif-admin-api
…K and the `ant` CLI read `ANTHROPIC_AUTH_TOKEN` automatically; leave `ANTHROPIC_API_KEY` unset in the same shell, because these endpoints reject API keys and every client uses the key when both are se…
github-actions
Claude Developer Platform · in the page
manage-claude/wif-providers/github-actions
…pic access token, so your CI jobs can call the Claude API without an `ANTHROPIC_API_KEY` secret stored in your repository. The token's `sub` claim encodes the repository and trigger context. For a pu…
wif-reference
Claude Developer Platform · in the page
manage-claude/wif-reference
…| | 2 | `ANTHROPIC_API_KEY` or `ANTHROPIC_AUTH_TOKEN` | Shadows federation entirely. Unset these when migrating from API…
workload-identity-federation
Claude Developer Platform · in the page
manage-claude/workload-identity-federation
…credentials in the same five-tier order: constructor arguments, then `ANTHROPIC_API_KEY` / `ANTHROPIC_AUTH_TOKEN`, then an explicit `ANTHROPIC_PROFILE`, then the federation environment variables, then…
workspaces
Claude Developer Platform · in the page
manage-claude/workspaces
…construct the default client, which reads the Admin API key from the `ANTHROPIC_API_KEY` environment variable; the SDK exposes these endpoints under `client.organization.workspaces` (csharp, go: `clie…
agent-setup
Claude Developer Platform · in the page
managed-agents/agent-setup
…curl -fsSL https://api.anthropic.com/v1/agents \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content…
budgets
Claude Developer Platform · in the page
managed-agents/budgets
…with-body https://api.anthropic.com/v1/sessions \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content…
DCF Model Rubric
Claude Developer Platform · in the page
managed-agents/define-outcomes
…curl -fsSL https://api.anthropic.com/v1/files \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -F file=@/t…
dreams
Claude Developer Platform · in the page
managed-agents/dreams
…L curl -s https://api.anthropic.com/v1/dreams \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01,dreaming-2026-04-2…
environments
Claude Developer Platform · in the page
managed-agents/environments
…-fsS https://api.anthropic.com/v1/environments \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content…
event-deltas
Claude Developer Platform · in the page
managed-agents/event-deltas
…eam?beta=true&event_deltas%5B%5D=agent.message" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "accept:…
events-and-streaming
Claude Developer Platform · in the page
managed-agents/events-and-streaming
…1/sessions/$SESSION_ID/events/stream?beta=true" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "accept:…
files
Claude Developer Platform · in the page
managed-agents/files
…ith-body -sS https://api.anthropic.com/v1/files \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -F file=@da…
github
Claude Developer Platform · in the page
managed-agents/github
…curl -fsS https://api.anthropic.com/v1/agents \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content…
mcp-connector
Claude Developer Platform · in the page
managed-agents/mcp-connector
…l-with-body https://api.anthropic.com/v1/agents \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: managed-agents-2026-04-01" \ -H "content…
memory
Claude Developer Platform · in the page
managed-agents/memory
…l -s https://api.anthropic.com/v1/memory_stores \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "anthropic-beta: agent-memory-2026-07-22" \ -H "content-t…