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

771 pages for headers.

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

On a remote host without a browser: Claude Developer Platform · in the page cli-sdks-libraries/cli/authentication …e admin --scope "org:admin" # Print a bearer token for Authorization headers: ant auth print-credentials --profile admin --access-token ``` The `org:admin` scope is granted only to organization memb… using Claude Developer Platform · in the page cli-sdks-libraries/cli/using …--debug` to any command to print the exact HTTP request and response (headers and body) to stderr. API keys are redacted. ```bash ant --debug beta:agents list ``` ```text Output wrap GET /v1/agents?… apple-foundation-models Claude Developer Platform · in the page cli-sdks-libraries/libraries/apple-foundation-models …the Claude API credential server-side, so the app ships no key. The `headers` you provide are sent on every request so your proxy can authorize the caller. Pass `[:]` if it needs none: ```swift Clau… openai-sdk Claude Developer Platform · in the page cli-sdks-libraries/libraries/openai-sdk …nthropic-workspace-id` header on every request (for example, `default_headers` in the Python SDK or `defaultHeaders` in TypeScript); see [Select a workspace](https://platform.claude.com/docs/en/manage… csharp Claude Developer Platform · in the page cli-sdks-libraries/sdks/csharp …eserialize responses into instances of C# classes. To access response headers, status code, or the raw response body, prefix any HTTP method call on a client or service with `WithRawResponse`: ```csh… go Claude Developer Platform · in the page cli-sdks-libraries/sdks/go …n the SDK). The error also includes the `RequestID` from the response headers, which is useful for troubleshooting with Anthropic support. To handle errors, use the `errors.As` pattern: ```go _, err… java Claude Developer Platform · in the page cli-sdks-libraries/sdks/java …eLimitException e) { IO.println("Rate limited, retry after: " + e.headers()); } catch (UnauthorizedException e) { IO.println("Invalid API key"); } catch (AnthropicServiceException e) { IO.… php Claude Developer Platform · in the page cli-sdks-libraries/sdks/php …extraBodyParams: ['my_body_parameter' => 'value'], extraHeaders: ['my-header' => 'value'], ), ); ``` ### Undocumented request parameters If you want to explicitly send an extra par… For Amazon Bedrock support Claude Developer Platform · in the page cli-sdks-libraries/sdks/python …rint(batch.id) # Remove `await` for non-async usage. ``` ## Default headers The SDK automatically sends the `anthropic-version` header set to the API version for this major version of the SDK (see… Automatically handles tool execution loop Claude Developer Platform · in the page cli-sdks-libraries/sdks/ruby …er: value}, extra_body: {my_body_parameter: value}, extra_headers: {"my-header": value} } ) puts(message[:my_undocumented_property]) ``` ### Undocumented request parameters If you… typescript Claude Developer Platform · in the page cli-sdks-libraries/sdks/typescript …console.log(err.name); // BadRequestError console.log(err.headers); // {server: 'nginx', ...} } else { throw err; } }); ``` Error codes are as follows: | Status code | Er… authentication Claude Developer Platform · in the page manage-claude/authentication …ry request for a key that isn't scoped to a workspace. # Omit extra_headers for a key scoped to one workspace. message = client.messages.create( model="claude-opus-5-5", max_tokens=102… cmek Claude Developer Platform · in the page manage-claude/cmek …om/docs/en/manage-claude/opentelemetry/api#add-a-destination) request headers, such as the API key header of your observability platform. These are stored under Anthropic-managed encryption. Their val… cmek-coverage-claude-platform Claude Developer Platform · in the page manage-claude/cmek-coverage-claude-platform …om/docs/en/manage-claude/opentelemetry/api#add-a-destination) request headers, such as the API key header of your observability platform | Write-only and never returned in API responses.… compliance-api Claude Developer Platform · in the page manage-claude/compliance-api …nage-claude/compliance-errors#429-too-many-requests) for the response headers and retry contract. *** ## Versioning Send the `anthropic-version` header on every request; see [API versions](https://… WARNING: This operation PERMANENTLY deletes the chat, all of its messages, Claude Developer Platform · in the page manage-claude/compliance-content-data …ytes, not from its name or declared type. The response carries these headers: * `Content-Disposition: attachment; filename*=utf-8''<percent-encoded filename>` carries the original upload file name i… compliance-errors Claude Developer Platform · in the page manage-claude/compliance-errors …es report the shared budget through the standard [rate-limit response headers](https://platform.claude.com/docs/en/api/rate-limits#response-headers) so your client can throttle proactively instead of… before_id is the first_id from a previous response Claude Developer Platform · in the page manage-claude/compliance-integration-patterns …nage-claude/compliance-errors#429-too-many-requests) for the response headers and retry contract. | Pattern | Choose when… inference-hooks-configuration Claude Developer Platform · in the page manage-claude/inference-hooks-configuration …The dialog box asks for nothing else at this point: custom request headers come in step 5, and failure handling in step 6. Click **Next** to save. Once an endpoint is saved, the button reads **Edit… inference-hooks-endpoint Claude Developer Platform · in the page manage-claude/inference-hooks-endpoint …ody; transcripts can be megabytes. self.rfile.read(int(self.headers.get("Content-Length", 0))) verdict = b'{"action": "allow"}' self.send_response(200) self.sen… api Claude Developer Platform · in the page manage-claude/opentelemetry/api …, such as an API key, instead of the **OTLP endpoint URL**, **Request headers**, and **OTLP traces endpoint URL**.… sdk Claude Developer Platform · in the page manage-claude/opentelemetry/sdk …| Stop sending trace context and baggage headers with requests, for example when your HTTP client instrumentation already sends them. The SDK still emits spans. Available… organization-webhooks Claude Developer Platform · in the page manage-claude/organization-webhooks …arries the `webhook-id`, `webhook-timestamp`, and `webhook-signature` headers. Before you trust an event, verify its signature with the endpoint's signing secret, using any Standard Webhooks library.… plugins-api Claude Developer Platform · in the page manage-claude/plugins-api …nclude the [beta header](https://platform.claude.com/docs/en/api/beta-headers) `anthropic-beta: ce-plugins-2026-09-01` (the SDK and the `ant` CLI send it for you). A request without it returns `404`,… user-management Claude Developer Platform · in the page manage-claude/user-management …026-07-13` [beta header](https://platform.claude.com/docs/en/api/beta-headers). Requests that still send it are accepted and behave identically. </Note> ## Which endpoints can your organization use?… Create the app registration that represents the Claude API audience. Claude Developer Platform · in the page manage-claude/wif-providers/azure …response = requests.get( endpoint, headers={"X-IDENTITY-HEADER": os.environ["IDENTITY_HEADER"]}, params={"api-version": "2019-08-01", "resource": AUDIE… gcp Claude Developer Platform · in the page manage-claude/wif-providers/gcp …mise<string> { const response = await fetch(METADATA_URL, { headers: { "Metadata-Flavor": "Google" } }); return response.text(); } const client = new Anthropic({ credentials… okta Claude Developer Platform · in the page manage-claude/wif-providers/okta …(`${process.env.OKTA_ISSUER}/v1/token`, { method: "POST", headers: { "content-type": "application/x-www-form-urlencoded" }, body: new URLSearchParams({ grant_type: "client_cr… wif-reference Claude Developer Platform · in the page manage-claude/wif-reference …rror in Python, TypeScript, and Ruby, and in the exception's response headers in Java. In Go it is only in the error's message, because the error's type is in an internal package; the C# and PHP error… workspaces Claude Developer Platform · in the page manage-claude/workspaces …alongside the `request-id` and `anthropic-organization-id` [response headers](https://platform.claude.com/docs/en/api/overview#response-headers). Its value is the `wrkspc_`-prefixed ID of the workspa… dreams Claude Developer Platform · in the page managed-agents/dreams …access to dreams. The dream-endpoint examples on this page send both headers; session and memory-store calls need only `managed-agents-2026-04-01`. The SDK sets these automatically. </Note> ## How i… memory Claude Developer Platform · in the page managed-agents/memory …e request: sending both returns a `400` error. If your code sets beta headers explicitly, replace `managed-agents-2026-04-01` with `agent-memory-2026-07-22` on memory store calls rather than adding a… secure-deployment Claude Developer Platform · in the page managed-agents/secure-deployment …n` and `networking` on each environment variable credential | Request headers only, and `limited` networking with only the hosts the key is for… spawn.sh: called once per claimed work item Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes …t, return_exceptions=True) async def handle(raw: bytes, headers: dict[str, str]) -> tuple[dict[str, str], int]: try: event = client.beta.webhooks.unwr… self-hosted-sandboxes-custom-tools Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-custom-tools …ent` (typescript: `requestInit`; go: `HTTPClient`; csharp: `AdditionalHeaders`; java: `.customizeRequest()`; php, ruby: `headers`) you hand to the MCP transport. ### Declare and serve the tools <Ste… self-hosted-sandboxes-workers Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-workers …light, return_exceptions=True) async def handle(raw: bytes, headers: dict[str, str]) -> tuple[dict[str, str], int]: try: event = client.beta.webhooks.unwrap(raw.d… vaults Claude Developer Platform · in the page managed-agents/vaults …`), with two Boolean fields: `header` (csharp, go: `Header`) (request headers) and `body` (csharp, go: `Body`) (request body). `injection_location` (java, php: `injectionLocation`; csharp, go: `Inject… webhooks Claude Developer Platform · in the page managed-agents/webhooks …arries the `webhook-id`, `webhook-timestamp`, and `webhook-signature` headers. Use the SDK's `unwrap()` (csharp, go: `Unwrap()`) helper to verify the signature and parse the event in one step. It thro… Or, for Claude Mythos 5.1, which offers the same capabilities to verified organizations: Claude Developer Platform · in the page models/fable-5-1/migration-guide …026-08-01` [beta header](https://platform.claude.com/docs/en/api/beta-headers): responses then carry an `input_transformations` array naming each dropped block with `reason: "model_binding_mismatch"`.… whats-new-fable-5-1 Claude Developer Platform · in the page models/fable-5-1/whats-new-fable-5-1 …writing-density). * **Less formatting in chat.** The model uses bold, headers, and lists less than earlier Claude models, so anti-formatting rules written for those models can suppress structure the c… migration-guide Claude Developer Platform · in the page models/opus-5-5/migration-guide …string parameter handling for trailing newlines. * Remove legacy beta headers (`token-efficient-tools-2025-02-19`, `output-128k-2025-02-19`). * Review and update prompts following [prompting best prac… migration-guide Claude Developer Platform · in the page models/sonnet-5-5/migration-guide …/overview) model page. Remove any context-window beta header. **Beta headers.** Remove `interleaved-thinking-2025-05-14`, because adaptive thinking interleaves automatically. Replace `fine-grained-to… overview Claude Developer Platform · in the page release-notes/overview …o longer send the `files-api-2025-04-14` and `skills-2025-10-02` beta headers and return the same shapes as `client.files` and `client.skills`. With this change, `client.beta.skills.delete()` deletes… claude-fable-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-fable-5 …<lists_and_bullets> Claude avoids over-formatting with bold emphasis, headers, lists, and bullet points, using the minimum formatting needed for clarity. Claude uses lists, bullets, and formatting onl… claude-fable-5-1 Claude Developer Platform · in the page release-notes/system-prompts/claude-fable-5-1 …y requests minimal formatting or for Claude to not use bullet points, headers, lists, bold emphasis and so on, Claude should always format its responses without these things as requested. Claude neve… claude-haiku-3-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-haiku-3-5 …and consistency. It always uses a single space after hash symbols for headers (e.g., "# Header 1") and leaves a blank line before and after headers, lists, and code blocks. For emphasis, Claude uses a… claude-haiku-4-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-haiku-4-5 …de avoids over-formatting responses with elements like bold emphasis, headers, lists, and bullet points. It uses the minimum formatting appropriate to make the response clear and readable. In typical… claude-haiku-5-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-haiku-5-5 …<lists_and_bullets> Claude avoids over-formatting with bold emphasis, headers, lists, and bullet points, using the minimum formatting needed for clarity. Claude uses lists, bullets, and formatting onl… claude-opus-4-5 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-4-5 …de avoids over-formatting responses with elements like bold emphasis, headers, lists, and bullet points. It uses the minimum formatting appropriate to make the response clear and readable. If the per… claude-opus-4-6 Claude Developer Platform · in the page release-notes/system-prompts/claude-opus-4-6 …de avoids over-formatting responses with elements like bold emphasis, headers, lists, and bullet points. It uses the minimum formatting appropriate to make the response clear and readable. If the per…
Feedback