Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

1,300 pages for code.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

access-transparency-log Claude Developer Platform · in the page manage-claude/access-transparency-log …2911554b q83vATBFAiEAvL8m…(base64)… ``` * The first 4 bytes of the decoded signature value are the signing key's `key_hash`, which tells you which entry in the [verifier key set](https://platform.cla… admin-api Claude Developer Platform · in the page manage-claude/admin-api …rkload-to-manage-wif). Call the Admin API with the exported token: <CodeGroup> ```bash cURL curl --fail-with-body -sS "https://api.anthropic.com/v1/organizations/me" \ -H "authorization: Bea… admin-api-keys Claude Developer Platform · in the page manage-claude/admin-api-keys …//platform.claude.com/docs/en/manage-claude/rate-limits-api), [Claude Code Analytics API](https://platform.claude.com/docs/en/manage-claude/claude-code-analytics-api), and the Compliance API [Activity… analytics-api Claude Developer Platform · in the page manage-claude/analytics-api …and API key your organization needs, then provision access to Claude Code productivity metrics or Claude Enterprise engagement and adoption data. --- Anthropic provides two analytics APIs, and which… api-and-data-retention Claude Developer Platform · in the page manage-claude/api-and-data-retention …(from sessions on users' machines, in apps such as Cowork and Claude Code) are stored for 6 years by default, or for your organization's custom conversation retention period when a finite one is set… app-attest Claude Developer Platform · in the page manage-claude/app-attest …cally and requests new tokens as they expire; there is no attestation code for you to write. Tokens are scoped to your workspace, expire after 1 hour, and authorize only [Messages API](https://platfo… authentication Claude Developer Platform · in the page manage-claude/authentication …ou create a key to limit how long a leaked credential stays usable. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropi… cmek Claude Developer Platform · in the page manage-claude/cmek …Claude workspace data at rest with a key you control. --- Ask Claude Code about this feature ```text /claude-api tell me about customer-managed encryption keys ``` A customer-managed encryption key… cmek-aws-kms Claude Developer Platform · in the page manage-claude/cmek-aws-kms …S to provide an encryption key for your organization. --- Let Claude Code set up this feature for you ```text /claude-api help me configure a customer-managed encryption key with AWS KMS ``` This g… cmek-azure-key-vault Claude Developer Platform · in the page manage-claude/cmek-azure-key-vault …t to provide an encryption key for your organization. --- Let Claude Code set up this feature for you ```text /claude-api help me configure a customer-managed encryption key with Azure Key Vault ```… cmek-google-cloud-kms Claude Developer Platform · in the page manage-claude/cmek-google-cloud-kms …S to provide an encryption key for your organization. --- Let Claude Code set up this feature for you ```text /claude-api help me configure a customer-managed encryption key with Google Cloud KMS ``… Fetch the first page (newest activities first). Claude Developer Platform · in the page manage-claude/compliance-activity-feed …"https://api.anthropic.com/v1/compliance/activities" \ --data-urlencode "activity_types[]=claude_file_uploaded" \ --data-urlencode "activity_types[]=claude_chat_created" \ --data-urlencode "cre… compliance-api Claude Developer Platform · in the page manage-claude/compliance-api …d projects in claude.ai organizations; and sessions in Cowork, Claude Code, Claude Science, Claude for Microsoft 365, the Claude add-ins for Google Docs, Google Sheets, and Google Slides, and Claude i… compliance-api-access Claude Developer Platform · in the page manage-claude/compliance-api-access …, chats, files, projects, sessions (in apps such as Cowork and Claude Code), users, organization metadata, and organization settings | Yes (all endpoints) | | **Admin API key** (`sk-ant-adm… WARNING: This operation PERMANENTLY deletes the chat, all of its messages, Claude Developer Platform · in the page manage-claude/compliance-content-data …d projects; transcripts of sessions in apps such as Cowork and Claude Code are covered on [Retrieve session transcripts](https://platform.claude.com/docs/en/manage-claude/compliance-sessions). See [Se… compliance-errors Claude Developer Platform · in the page manage-claude/compliance-errors …nce-errors description: Compliance API error responses by HTTP status code, with the cause and fix for each. --- <Note> To enable the Compliance API, see [Set up the Compliance API](https://platfor… compliance-faq Claude Developer Platform · in the page manage-claude/compliance-faq …transcripts of sessions on users' machines (such as Cowork and Claude Code sessions) through the [local session endpoints](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retriev… before_id is the first_id from a previous response Claude Developer Platform · in the page manage-claude/compliance-integration-patterns …CE_ACCESS_KEY" \ -H "anthropic-version: 2023-06-01" \ --data-urlencode "created_at.gte=2026-04-20T07:00:00Z" \ --data-urlencode "created_at.lt=2026-04-20T08:00:00Z" \ --data-urlencode "limit=5… compliance-org-data Claude Developer Platform · in the page manage-claude/compliance-org-data …CE_ACCESS_KEY" \ -H "anthropic-version: 2023-06-01" \ --data-urlencode "limit=500" ``` ```text Response wrap { "data": [ { "id": "user_01XyDMpzjS89pFZXqSFUBDr6", "full_name": "P… compliance-sessions Claude Developer Platform · in the page manage-claude/compliance-sessions …users run in Claude apps and agents, such as Claude Cowork and Claude Code, and retrieve their transcripts through the Compliance API. --- <Note> The endpoints on this page are available only to Cl… data-residency Claude Developer Platform · in the page manage-claude/data-residency …at rest and where endpoint processing (such as image transcoding and code execution) occurs. Configured at the workspace level in the [Claude Console](https://platform.claude.com/). <Note> [Claude… inference-hooks Claude Developer Platform · in the page manage-claude/inference-hooks …ments unless the user removes them. A new chat also works. * **Claude Code.** The user runs `/rewind` and selects the prompt that first brought the content in. If asked, they select **Restore conversa… inference-hooks-endpoint Claude Developer Platform · in the page manage-claude/inference-hooks-endpoint …connection** result reports the allow verdict your server returned. <CodeGroup exclude="shell"> ```python Python # Run with: python server.py from http.server import BaseHTTPRequestHandler, Thr… opentelemetry Claude Developer Platform · in the page manage-claude/opentelemetry …laude/opentelemetry#example-traces-and-how-to-read-them). Let Claude Code set up this feature for you ```text Set up OpenTelemetry tracing with the Claude API and Claude SDK ``` <CardGroup cols={3}… api Claude Developer Platform · in the page manage-claude/opentelemetry/api …view these spans in your observability platform without changing your code. The API emits spans for your Messages API requests and Managed Agents sessions. To receive them, add a *destination* in the… sdk Claude Developer Platform · in the page manage-claude/opentelemetry/sdk …he SDK options and the span schema can change in ways that break your code, your queries, or your dashboards. For example, a new version of the SDK can rename a span, an attribute, an option, or an en… organization-webhooks Claude Developer Platform · in the page manage-claude/organization-webhooks …ation'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: $ANTHROPIC_API_KEY" \… plugins-api Claude Developer Platform · in the page manage-claude/plugins-api …the plugins in your organization's own marketplaces, newest first: <CodeGroup> ```bash cURL curl "https://api.anthropic.com/v1/organizations/plugins?owner_type=organization&limit=20" \ -H "x… rate-limits-api Claude Developer Platform · in the page manage-claude/rate-limits-api …Quick start List the rate limits configured for your organization: <CodeGroup> ```bash cURL curl "https://api.anthropic.com/v1/organizations/rate_limits" \ -H "x-api-key: $ANTHROPIC_API_KEY"… spend-limits-api Claude Developer Platform · in the page manage-claude/spend-limits-api …ry member's effective monthly spend limit and period-to-date spend: <CodeGroup> ```bash cURL curl "https://api.anthropic.com/v1/organizations/spend_limits/effective?limit=20" \ -H "x-api-key:… First request Claude Developer Platform · in the page manage-claude/usage-cost-api …for monitoring your Claude API usage and cost, without writing custom code. These integrations provide dashboards, alerting, and analytics to help you manage your API usage effectively. <CardGroup co… user-management Claude Developer Platform · in the page manage-claude/user-management …n` headers for you. List the organization's members, newest first: <CodeGroup> ```bash cURL curl "https://api.anthropic.com/v1/organizations/users?limit=20" \ -H "x-api-key: $ANTHROPIC_API_K… user-profiles Claude Developer Platform · in the page manage-claude/user-profiles …-profiles#decide-who-gets-a-profile) compares the two access types. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/user_profiles \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "ant… user-profiles-verification-portal Claude Developer Platform · in the page manage-claude/user-profiles-verification-portal …me status as for a profile ID it can't find, so check the ID first. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/user_profiles/uprof_011CZkZCu8hGbp5mYRQgUmz9/action_urls \ -H "x… wif-admin-api Claude Developer Platform · in the page manage-claude/wif-admin-api …e accounts, issuers, and rules programmatically for infrastructure-as-code and CI workflows. --- The Admin API lets you create and manage [Workload Identity Federation](https://platform.claude.com/do… aws Claude Developer Platform · in the page manage-claude/wif-providers/aws …nd ensure your AWS SDK is recent enough to include the API. </Note> <CodeGroup> ```bash cURL JWT=$(aws sts get-web-identity-token \ --region us-east-1 \ --audience "https://api.anthropic.… Create the app registration that represents the Claude API audience. Claude Developer Platform · in the page manage-claude/wif-providers/azure …econd user-assigned identity is attached. </Step> <Step title="Decode a sample token"> Request a token from the endpoint and decode its payload to confirm the claims your federation rule need… gcp Claude Developer Platform · in the page manage-claude/wif-providers/gcp …anage-claude/wif-providers/gcp#acquire-and-use-the-token). The decoded token payload looks like this: ```json { "iss": "https://accounts.google.com", "aud": "https://api.anth… github-actions Claude Developer Platform · in the page manage-claude/wif-providers/github-actions …API_KEY` secret stored in your repository. The token's `sub` claim encodes the repository and trigger context. For a push to a branch it has the form `repo:<owner>/<repo>:ref:refs/heads/<branch>`. Pu… kubernetes Claude Developer Platform · in the page manage-claude/wif-providers/kubernetes …ry exchange and refreshes the Anthropic access token automatically. <CodeGroup> ```bash cURL JWT=$(cat "$ANTHROPIC_IDENTITY_TOKEN_FILE") ACCESS_TOKEN=$(curl -sS https://api.anthropic.com/v1/oa… okta Claude Developer Platform · in the page manage-claude/wif-providers/okta …JWT, then pass that JWT to the Anthropic SDK as the identity token. <CodeGroup> ```bash cURL # 1. Request an access token from Okta (client_credentials with private_key_jwt). OKTA_JWT=$(curl -s… Replace NODE_UID with the node's UID: Claude Developer Platform · in the page manage-claude/wif-providers/spiffe …ference#environment-variables) for where each value comes from. <CodeGroup> ```bash cURL JWT=$(cat "$ANTHROPIC_IDENTITY_TOKEN_FILE") ACCESS_TOKEN=$(curl -sS https://api.anthrop… wif-reference Claude Developer Platform · in the page manage-claude/wif-reference …your container image or switch between environments without changing code. ### Configuration directory The SDK locates the configuration directory in this order: 1. `$ANTHROPIC_CONFIG_DIR` 2. `~/.… workload-identity-federation Claude Developer Platform · in the page manage-claude/workload-identity-federation …every request and refreshes it before it expires.** Your application code constructs the client with no API key and calls the API as usual. The SDK re-runs the exchange before the token expires. ##… workspaces Claude Developer Platform · in the page manage-claude/workspaces …er or service account must have access to that workspace. ### Claude Code workspace When a member of your organization first signs in to [Claude Code](https://code.claude.com/docs/en/overview) with… agent-setup Claude Developer Platform · in the page managed-agents/agent-setup …cess to the pre-built agent toolset. The toolset lets the agent write code, read files, search the web, and more. See the [agent tools reference](https://platform.claude.com/docs/en/managed-agents/too… budgets Claude Developer Platform · in the page managed-agents/budgets …`budget` (csharp, go: `Budget`) field when you create the session: <CodeGroup> ```bash cURL curl -sS --fail-with-body https://api.anthropic.com/v1/sessions \ -H "x-api-key: $ANTHROPIC_API_KE… choosing-an-environment Claude Developer Platform · in the page managed-agents/choosing-an-environment …vironment description: Decide whether Claude Managed Agents tools and code run in an Anthropic-managed cloud environment or a self-hosted sandbox, and see what changes if you switch. featureMetadata:… DCF Model Rubric Claude Developer Platform · in the page managed-agents/define-outcomes …me)), or upload it through the Files API for reuse across sessions. <CodeGroup> ```bash cURL curl -fsSL https://api.anthropic.com/v1/files \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthr… dreams Claude Developer Platform · in the page managed-agents/dreams …n empty `outputs` (csharp, go: `Outputs`) array. ## Create a dream <CodeGroup> ```bash cURL curl -s https://api.anthropic.com/v1/dreams \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthrop…
Feedback