Search the documentation
20 pages for --header.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Process results programmatically
Claude Developer Platform · in the page
agents-and-tools/tool-use/programmatic-tool-calling
…> ```bash cURL curl https://api.anthropic.com/v1/messages \ --header "x-api-key: $ANTHROPIC_API_KEY" \ --header "anthropic-version: 2023-06-01" \ --header "content-type: applicat…
Message Batches API
Claude Developer Platform · in the page
build-with-claude/batch-processing
…sh cURL curl https://api.anthropic.com/v1/messages/batches \ --header "x-api-key: $ANTHROPIC_API_KEY" \ --header "anthropic-version: 2023-06-01" \ --header "content-type: applic…
context-editing
Claude Developer Platform · in the page
build-with-claude/context-editing
…> ```bash cURL curl https://api.anthropic.com/v1/messages \ --header "x-api-key: $ANTHROPIC_API_KEY" \ --header "anthropic-version: 2023-06-01" \ --header "content-type: applicat…
access-transparency
Claude Developer Platform · in the page
manage-claude/access-transparency
…ctivity_types[]=anthropic_access" \ --data-urlencode "limit=50" \ --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" ``` Pagination, date-range filtering (`created_at.gte` / `.lt`), and the r…
analytics-api
Claude Developer Platform · in the page
manage-claude/analytics-api
…rganizations/usage_report/claude_code?starting_at=2025-09-08" \ --header "anthropic-version: 2023-06-01" \ --header "x-api-key: $ANTHROPIC_ADMIN_KEY" ``` </Step> </Steps> For the av…
Fetch the first page (newest activities first) and capture its trailing cursor.
Claude Developer Platform · in the page
manage-claude/compliance-activity-feed
…\ "https://api.anthropic.com/v1/compliance/activities?limit=1" \ --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" ``` ```json Response { "data": [ { "id": "activity_01XyDMpzjS8…
compliance-api
Claude Developer Platform · in the page
manage-claude/compliance-api
…\ "https://api.anthropic.com/v1/compliance/activities?limit=1" \ --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" ``` A successful response returns a JSON object containing `data` (an arra…
WARNING: This operation PERMANENTLY deletes the chat, all of its messages,
Claude Developer Platform · in the page
manage-claude/compliance-content-data
…y -sS -G \ "https://api.anthropic.com/v1/compliance/apps/chats" \ --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \ --data-urlencode "order_by=updated_at" \ --data-urlencode "updated_at…
compliance-integration-patterns
Claude Developer Platform · in the page
manage-claude/compliance-integration-patterns
…y -sS -G \ "https://api.anthropic.com/v1/compliance/activities" \ --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \ --data-urlencode "created_at.gte=2026-04-20T07:00:00Z" \ --data-urlen…
compliance-sessions
Claude Developer Platform · in the page
manage-claude/compliance-sessions
…\ "https://api.anthropic.com/v1/compliance/apps/sessions/local" \ --header "x-api-key: $ANTHROPIC_COMPLIANCE_ACCESS_KEY" \ --data-urlencode "created_at.gte=2026-07-01T00:00:00Z" \ --data-urlen…
spend-limits-api
Claude Developer Platform · in the page
manage-claude/spend-limits-api
…i.anthropic.com/v1/organizations/spend_limits/effective?limit=20" \ --header "x-api-key: $ANTHROPIC_ADMIN_KEY" ``` ## Key concepts ### The spend limit hierarchy An **effective spend limit** appli…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…e mcp add --transport http secure-api https://api.example.com/mcp \ --header "Authorization: Bearer your-token" ``` When configuring MCP servers via JSON in `.mcp.json`, `~/.claude.json`, or `claud…
Connect to MCP servers
Claude Code CLI · in the page
mcp-quickstart
…ver is reachable but needs a browser sign-in, or a token passed with `--header`. See [Connect a server that requires sign-in](#connect-a-server-that-requires-sign-in) | | `✘ Failed to connect`…
Use Claude Code in VS Code
Claude Code CLI · in the page
vs-code
…cp add --transport http github https://api.githubcopilot.com/mcp/ \ --header "Authorization: Bearer YOUR_GITHUB_PAT" ``` Replace `YOUR_GITHUB_PAT` with your personal access token. The `claude mcp a…
CLI client
Model Context Protocol · in the page
docs/2026-07-28/tools/inspector/cli
…nnection, resolved exactly as the TUI and web client resolve them. A `--header` flag overrides the file's headers for that run while leaving its timeouts and OAuth in place. Later examples abbreviate…
Configuration and flags
Model Context Protocol · in the page
docs/2026-07-28/tools/inspector/configuration
…| | `--header "Name: Value"` | HTTP headers for an HTTP/SSE server. Repeatable. | Requires an ad-hoc HTTP/SSE server on the web cl…
Recipes
Model Context Protocol · in the page
docs/2026-07-28/tools/inspector/recipes
…spector --server-url https://api.example.com/mcp --transport http \ --header "X-Tenant: acme" ``` `--transport` accepts `http` (Streamable HTTP) and `sse`. If the server is protected, see [Authoriz…
CLI client
Model Context Protocol · in the page
docs/draft/tools/inspector/cli
…nnection, resolved exactly as the TUI and web client resolve them. A `--header` flag overrides the file's headers for that run while leaving its timeouts and OAuth in place. Later examples abbreviate…
Configuration and flags
Model Context Protocol · in the page
docs/draft/tools/inspector/configuration
…| | `--header "Name: Value"` | HTTP headers for an HTTP/SSE server. Repeatable. | Requires an ad-hoc HTTP/SSE server on the web cl…
Recipes
Model Context Protocol · in the page
docs/draft/tools/inspector/recipes
…spector --server-url https://api.example.com/mcp --transport http \ --header "X-Tenant: acme" ``` `--transport` accepts `http` (Streamable HTTP) and `sse`. If the server is protected, see [Authoriz…