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

1,297 pages for code.

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

spans Claude Developer Platform · in the page api/opentelemetry/spans …| | `http.response.status_code` | `int` | The final response's HTTP status code. For a stream, the status code sent with the headers. Absent when there w… Organization Claude Developer Platform · in the page api/organization …anization Role - `OrganizationRole = "admin" or "billing" or "claude_code_user" or 6 more` - `"admin"` - `"billing"` - `"claude_code_user"` - `"developer"` - `"managed"` - `"members… Invites Claude Developer Platform · in the page api/organization/invites …Email of the User. format: email - `role: "billing" or "claude_code_user" or "developer" or 2 more` Role for the invited User. The accepted values depend on the organization type. Console… Create Invite Claude Developer Platform · in the page api/organization/invites/create …Email of the User. format: email - `role: "billing" or "claude_code_user" or "developer" or 2 more` Role for the invited User. The accepted values depend on the organization type. Console… List Invites Claude Developer Platform · in the page api/organization/invites/list …nizations accept `user`, `developer`, `billing`, `admin`, and `claude_code_user`; Claude Enterprise organizations accept `user`, `owner`, `primary_owner`, `membership_admin`, and `managed`. - `status… Get Invite Claude Developer Platform · in the page api/organization/invites/retrieve …role of the User. - `"admin"` - `"billing"` - `"claude_code_user"` - `"developer"` - `"managed"` - `"membership_admin"` - `"owner"` - `"primary_owner"` - `… Users Claude Developer Platform · in the page api/organization/users …nizations accept `user`, `developer`, `billing`, `admin`, and `claude_code_user`; Claude Enterprise organizations accept `user`, `owner`, `primary_owner`, `membership_admin`, and `managed`. ### Heade… List Users Claude Developer Platform · in the page api/organization/users/list …nizations accept `user`, `developer`, `billing`, `admin`, and `claude_code_user`; Claude Enterprise organizations accept `user`, `owner`, `primary_owner`, `membership_admin`, and `managed`. ## Header… Get User Claude Developer Platform · in the page api/organization/users/retrieve …role of the User. - `"admin"` - `"billing"` - `"claude_code_user"` - `"developer"` - `"managed"` - `"membership_admin"` - `"owner"` - `"primary_owner"` - `… Update User Claude Developer Platform · in the page api/organization/users/update …k_languages=http). ## Body parameters - `role: "billing" or "claude_code_user" or "developer" or 2 more` New role for the User. The accepted values depend on the organization type. Console and… Workspaces Claude Developer Platform · in the page api/organization/workspaces …Immutable after creation. - `display_color: string` Hex color code representing the Workspace in the Anthropic Console. - `external_key_id: string or null` ID of the customer-managed e… Archive Workspace Claude Developer Platform · in the page api/organization/workspaces/archive …Immutable after creation. - `display_color: string` Hex color code representing the Workspace in the Anthropic Console. - `external_key_id: string or null` ID of the customer-managed e… Create Workspace Claude Developer Platform · in the page api/organization/workspaces/create …if omitted. - `display_color: optional string or null` Hex color code representing the Workspace in the Anthropic Console. maxLength: 7, pattern: ^#[0-9A-Fa-f]{6}$ - `external_key_id: optiona… List Workspaces Claude Developer Platform · in the page api/organization/workspaces/list …Immutable after creation. - `display_color: string` Hex color code representing the Workspace in the Anthropic Console. - `external_key_id: string or null` ID of the customer-managed e… Get Workspace Claude Developer Platform · in the page api/organization/workspaces/retrieve …Immutable after creation. - `display_color: string` Hex color code representing the Workspace in the Anthropic Console. - `external_key_id: string or null` ID of the customer-managed e… Update Workspace Claude Developer Platform · in the page api/organization/workspaces/update …obal"` - `"us"` - `display_color: optional string` Hex color code representing the Workspace in the Anthropic Console. maxLength: 7, pattern: ^#[0-9A-Fa-f]{6}$ - `external_key_id: optiona… overview Claude Developer Platform · in the page api/overview …d Environments endpoints </Card> <Card title="Client SDKs" icon="code" href="https://platform.claude.com/docs/en/cli-sdks-libraries/overview"> Python, TypeScript, C#, Go, Java, PHP, and Ruby… rate-limits Claude Developer Platform · in the page api/rate-limits …l regain access on 2026-09-01 at 00:00 UTC.", "details": { "error_code": "enforced_spend_limit_reached" } }, "request_id": "req_018EeWyXxfu5pfWkrYcMdjWG" } ``` * The error type is `rate_limit… service-tiers Claude Developer Platform · in the page api/service-tiers …can be used for a request by setting the `service_tier` parameter: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropi… User Profiles Claude Developer Platform · in the page api/user_profiles …f the platform), as the platform determines it: an ISO 3166-1 alpha-2 code in upper case, for example `US`. Only the form, two uppercase ASCII letters, is checked. - `email_hash: optional string or… Create User Profile Claude Developer Platform · in the page api/user_profiles/create …f the platform), as the platform determines it: an ISO 3166-1 alpha-2 code in upper case, for example `US`. Only the form, two uppercase ASCII letters, is checked. - `email_hash: optional string or… List User Profiles Claude Developer Platform · in the page api/user_profiles/list …try the platform associates with the entity, as an ISO 3166-1 alpha-2 code. `null` until the platform supplies one. - `email_hash: string or null` The platform-computed hash of the entity'… Get User Profile Claude Developer Platform · in the page api/user_profiles/retrieve …try the platform associates with the entity, as an ISO 3166-1 alpha-2 code. `null` until the platform supplies one. - `email_hash: string or null` The platform-computed hash of the entity'… Update User Profile Claude Developer Platform · in the page api/user_profiles/update …f the platform), as the platform determines it: an ISO 3166-1 alpha-2 code in upper case, for example `US`. Only the form, two uppercase ASCII letters, is checked. - `email_hash: optional string or… Message Batches API Claude Developer Platform · in the page build-with-claude/batch-processing …cs/en/agents-and-tools/tool-use/server-tools) (web search, web fetch, code execution, MCP connectors, advisor, and tool search) * System messages * Multi-turn conversations * Extended thinking * Most… cache-diagnostics Claude Developer Platform · in the page build-with-claude/cache-diagnostics …no longer required, and requests that still send it work as before. <CodeGroup> ```bash cURL # Turn 1: establish the cache and opt in to diagnostics curl -sS --fail-with-body https://api.anthro… citations Claude Developer Platform · in the page build-with-claude/citations …to enable citations on a plain text document with the Messages API: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-k… claude-in-amazon-bedrock Claude Developer Platform · in the page build-with-claude/claude-in-amazon-bedrock …| Use the latest version of Claude Code with Claude in Amazon Bedrock; run `claude update` to upgrade. <Tip> Upgrading to a newer Claude model? The [Claude API sk… claude-in-microsoft-foundry Claude Developer Platform · in the page build-with-claude/claude-in-microsoft-foundry …or the full base URL directly. </Note> **Example using API key:** <CodeGroup> ```bash cURL curl https://{resource}.services.ai.azure.com/anthropic/v1/messages \ -H "content-type: applicatio… claude-on-amazon-bedrock-legacy Claude Developer Platform · in the page build-with-claude/claude-on-amazon-bedrock-legacy …/anthropic-sdk-go/bedrock ``` </Tab> <Tab title="Java"> <CodeGroup exclude="shell, python, typescript, csharp, go, php, ruby"> ```groovy Gradle implementation("com.anthropic:a… claude-on-vertex-ai Claude Developer Platform · in the page build-with-claude/claude-on-vertex-ai …opics/anthropic-sdk-go/v2 ``` </Tab> <Tab title="Java"> <CodeGroup exclude="shell, python, typescript, csharp, go, php, ruby"> ```groovy Gradle implementation("com.anthropic:a… claude-platform-on-aws Claude Developer Platform · in the page build-with-claude/claude-platform-on-aws …hropic platform experience, including the Messages API, Agent Skills, code execution, and beta features, accessible through your AWS account. Unlike [Amazon Bedrock](https://platform.claude.com/docs/e… sent_count = len(messages sent in the compaction request) Claude Developer Platform · in the page build-with-claude/compaction …s context management automatically, without client-side summarization code. </Tip> Compaction extends the effective context length for long-running conversations and tasks by automatically summarizin… compaction-background Claude Developer Platform · in the page build-with-claude/compaction-background …d the following list takes them in the order the program runs them. <CodeGroup exclude="shell, php"> ```python Python from concurrent.futures import Future, ThreadPoolExecutor import anthropic… compaction-keep-recent-turns Claude Developer Platform · in the page build-with-claude/compaction-keep-recent-turns …o turns. The highlighted lines show where it differs from the loop. <CodeGroup exclude="shell"> ```python Python from anthropic.types.beta import BetaMessageParam client = anthropic.Anthropic(… compaction-on-demand Claude Developer Platform · in the page build-with-claude/compaction-on-demand …mple has no `system` prompt or tools, so the request sends neither: <CodeGroup> ```bash cURL # max_tokens caps the whole call, including any thinking, so allow several thousand tokens. curl htt… compaction-thinking-blocks Claude Developer Platform · in the page build-with-claude/compaction-thinking-blocks …nput_transformations` has; no entries means the kept thinking held: <CodeGroup exclude="shell"> ```python Python from anthropic.types.beta import BetaMessageParam, BetaThinkingConfigParam clie… compaction-threshold Claude Developer Platform · in the page build-with-claude/compaction-threshold …trategy to `context_management.edits` in your Messages API request. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropi… context-editing Claude Developer Platform · in the page build-with-claude/context-editing …| Use this strategy to override the default. If your code runs across multiple model tiers, set `keep` explicitly rather than relying on the per-model default. </Tip> An assistant co… effort Claude Developer Platform · in the page build-with-claude/effort …request. The following example runs one request at `medium` effort. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropi… This will automatically use the environment variable VOYAGE_API_KEY. Claude Developer Platform · in the page build-with-claude/embeddings …| | `voyage-code-4` | 32,000 | 1024 (default), 256, 512, 2048 | Optimized for **code** retrieval and agentic coding applications. See… extended-thinking Claude Developer Platform · in the page build-with-claude/extended-thinking …Here is an example of using extended thinking in the Messages API: <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropi… fallback-credit Claude Developer Platform · in the page build-with-claude/fallback-credit …ocs/en/build-with-claude/fallback-credit#when-a-retry-is-rejected). <CodeGroup exclude="shell:cURL, shell:CLI"> <CodeGroupItem language="cURL"> This workflow needs more logic than a single shel… fast-mode Claude Developer Platform · in the page build-with-claude/fast-mode …ted-models) for details, including which models need a beta header. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropi… files Claude Developer Platform · in the page build-with-claude/files …d in Messages requests, and download outputs created by skills or the code execution tool. featureMetadata: status: ga zdr: not-eligible supportedPlatforms: Claude API: ga Claude Platfor… handling-stop-reasons Claude Developer Platform · in the page build-with-claude/handling-stop-reasons …mon stop reason. Indicates Claude completed its response naturally. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropi… mid-conversation-effort-example Claude Developer Platform · in the page build-with-claude/mid-conversation-effort-example …ll orchestration; leave it unset when running the example yourself. <CodeGroup exclude="shell:cURL, shell:CLI"> ```python Python import atexit import concurrent.futures import hashlib impor… mid-conversation-system-messages Claude Developer Platform · in the page build-with-claude/mid-conversation-system-messages …ls` returns a 400 error (on the Claude API, with `error.details.error_code` set to `tool_reference_unresolved`). A `tool_addition` block can instead [carry the tool's full definition](https://platform… multilingual-support Claude Developer Platform · in the page build-with-claude/multilingual-support …h keeps the instruction stable across every turn of a conversation. <CodeGroup> ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-k… overview Claude Developer Platform · in the page build-with-claude/overview …| Up to 1M tokens for processing large documents, extensive code bases, and long conversations.…
Feedback