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

370 pages for prefix.

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

context-windows Claude Developer Platform · in the page build-with-claude/context-windows …clearing:** Manage thinking blocks from earlier turns Cached prompt prefixes still occupy the context window: [prompt caching](https://platform.claude.com/docs/en/build-with-claude/prompt-caching) c… effort Claude Developer Platform · in the page build-with-claude/effort …hanges it. Everything before that message is unchanged, so the cached prefix still matches. The following example starts at `high`, then drops to `low` for a routine follow-up: <CodeGroup> ```bash… fallback-credit Claude Developer Platform · in the page build-with-claude/fallback-credit …l declines a request and you retry on another model, the conversation prefix already cached for the first model must be written into the new model's cache in full. Cache writes cost more than cache re… fast-mode Claude Developer Platform · in the page build-with-claude/fast-mode …rompt-caching) miss. Requests at different speeds do not share cached prefixes. </Note> Because setting `max_retries` (typescript, java, php: `maxRetries`; csharp: `MaxRetries`; go: `option.WithMaxRe… files Claude Developer Platform · in the page build-with-claude/files …t.Files`; java: `client.files()`; php: `$client->files`), with `Beta`-prefixed type names (in PHP, classes in the `Anthropic\Beta` namespace). It takes beta names through `betas` (csharp, go: `Betas`;… handling-stop-reasons Claude Developer Platform · in the page build-with-claude/handling-stop-reasons …eta().messages()`; php: `$client->beta->messages`) and use the `Beta`-prefixed types. On Sonnet 4.5 (deprecated) and newer models, the API returns this value without a beta header. For earlier models,… mid-conversation-effort-example Claude Developer Platform · in the page build-with-claude/mid-conversation-effort-example …turned off. The top-level `system` field never changes, so the cached prefix stays intact. 3. **Standing consent in the tool description:** the orchestration tool's description states that while the m… mid-conversation-system-messages Claude Developer Platform · in the page build-with-claude/mid-conversation-system-messages …bility partway through a conversation without invalidating the cached prefix that came before them. --- <Note> To learn how zero data retention (ZDR) applies to this feature, see [API and data rete… preserved-thinking Claude Developer Platform · in the page build-with-claude/preserved-thinking …vel `system` prompt, `tools`, and `messages` before the block are its prefix. If the prefix differs from what you sent when the block was produced, that block and every later thinking block are invali… Request 2 caches its request content (not the response) Claude Developer Platform · in the page build-with-claude/prompt-caching …om/docs/en/build-with-claude/prompt-caching description: Cache prompt prefixes with `cache_control` to cut costs and latency, using automatic caching or explicit breakpoints with 5-minute or 1-hour TT… Delivering work Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-fable-5-1 …d-in-conversation): a request that replays a thinking block after its prefix (the system prompt, the tool list, or any earlier message) has changed returns a 400, or drops the affected blocks if you s… prompting-claude-opus-5-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-opus-5-5 …t of the session: adding it to `tools` later edits the conversation's prefix and invalidates earlier thinking blocks (see [tool changes in Preserved thinking](https://platform.claude.com/docs/en/build… refusals-and-fallback Claude Developer Platform · in the page build-with-claude/refusals-and-fallback …ur organization. * It is stored as a content hash of the conversation prefix plus the model that served it. The message content itself is not stored. * It is best-effort, so your code must handle the… skills-guide Claude Developer Platform · in the page build-with-claude/skills-guide …prompt in a fixed order, so the same list produces the same cacheable prefix: <CodeGroup> ```bash cURL # Skills render into the system prompt in a fixed, cache-friendly order curl https://api.a… task-budgets Claude Developer Platform · in the page build-with-claude/task-budgets …g` on each follow-up request, the changed value invalidates any cache prefix that contains it. To preserve caching, set the budget once on the initial request and let the model self-regulate against t… thinking Claude Developer Platform · in the page build-with-claude/thinking …r or drops the invalid blocks, whichever you choose. See [Keeping the prefix unchanged](https://platform.claude.com/docs/en/build-with-claude/preserved-thinking#prefix-check). Thinking blocks from Cl… thinking-troubleshooting Claude Developer Platform · in the page build-with-claude/thinking-troubleshooting …ferent conversation. Remove the block, or set `thinking.block_binding.prefix_mismatch_behavior` to "drop_block". ``` If the request didn't send the `thinking-binding-controls-2026-08-01` beta header,… token-counting Claude Developer Platform · in the page build-with-claude/token-counting …g"> Reduce cost and latency on repeated prompts by caching prompt prefixes. </Card> </CardGroup> working-with-messages Claude Developer Platform · in the page build-with-claude/working-with-messages …to the end of the message history, it does not invalidate any cached prefix that came before it. Use the top-level `system` field for instructions that should apply from the very first turn, and a mi… API usage primer for Claude Claude Developer Platform · in the page claude_api_primer …java, php, ruby"> ```bash CLI # Option 1: base64-encoded image (@ prefix auto-encodes binary files as base64) curl -sSo vision-example.jpg \ https://platform.claude.com/docs/images/vision-ex… using Claude Developer Platform · in the page cli-sdks-libraries/cli/using …ents, sessions, deployments, and environments) live under the `beta:` prefix. Commands in this namespace automatically send the appropriate `anthropic-beta` header for that resource, so you don't need… csharp Claude Developer Platform · in the page cli-sdks-libraries/sdks/csharp …s. To access response headers, status code, or the raw response body, prefix any HTTP method call on a client or service with `WithRawResponse`: ```csharp var response = await client.WithRawResponse.… go Claude Developer Platform · in the page cli-sdks-libraries/sdks/go …` ### Request unions Unions are represented as a struct with fields prefixed by "Of" for each of its variants. Only one field can be non-zero. The non-zero field is serialized. Subproperties of the… java Claude Developer Platform · in the page cli-sdks-libraries/sdks/java …erridden }); ``` To access a property's raw JSON value, call its `_` prefixed method: ```java import com.anthropic.core.JsonField; import com.anthropic.models.messages.StopReason; JsonField<StopRea… For Amazon Bedrock support Claude Developer Platform · in the page cli-sdks-libraries/sdks/python …fu5pfWkrYcMdjWG ``` <Note> Unlike other properties that use an `_` prefix, the `_request_id` property is public. Unless documented otherwise, all other `_` prefix properties, methods, and modules a… access-transparency-log Claude Developer Platform · in the page manage-claude/access-transparency-log …` Returns `application/octet-stream`: consecutive leaf entries, each prefixed with its big-endian `uint16` length, as tlog-tiles specifies. Entry bundles contain event plaintext: the [canonical bytes… admin-api-keys Claude Developer Platform · in the page manage-claude/admin-api-keys …| Key prefix | Who can create it… cmek-aws-kms Claude Developer Platform · in the page manage-claude/cmek-aws-kms …**Finding your organization ID:** Use the bare UUID, not the `org_`-prefixed ID. Copy it from one of these places: * **Claude Console:** the **Organization ID** field on the [Organization](https:… cmek-azure-key-vault Claude Developer Platform · in the page manage-claude/cmek-azure-key-vault …**Finding your organization ID:** Use the bare UUID, not the `org_`-prefixed ID. Copy it from one of these places: * **Claude Console:** the **Organization ID** field on the [Organization](https:… cmek-google-cloud-kms Claude Developer Platform · in the page manage-claude/cmek-google-cloud-kms …**Finding your organization ID:** Use the bare UUID, not the `org_`-prefixed ID. Copy it from one of these places: * **Claude Console:** the **Organization ID** field on the [Organization](https:… compliance-api-access Claude Developer Platform · in the page manage-claude/compliance-api-access …on a key you already have, use one of the following signals. * **Key prefix.** `sk-ant-admin01-` is an Admin API key (carries `read:compliance_activities` only, subject to the enablement timing in th… compliance-errors Claude Developer Platform · in the page manage-claude/compliance-errors …stead. **Fix:** Send the key in the `x-api-key` header and check its prefix: the Compliance API accepts only `sk-ant-api01-...` and `sk-ant-admin01-...` keys; see [Which key do you need?](https://pla… compliance-org-data Claude Developer Platform · in the page manage-claude/compliance-org-data …| Same organization, `org_`-prefixed. Deprecated on chat and project records; use `organization_uuid` instead. |… compliance-sessions Claude Developer Platform · in the page manage-claude/compliance-sessions …| | ID prefix | `clls_`… inference-hooks-configuration Claude Developer Platform · in the page manage-claude/inference-hooks-configuration …warded-*`, the `webhook-*` signature headers, and the `X-Anthropic-*` prefix). Values must be printable ASCII. * **Test connection:** Claude sends a synthetic test prompt to the URL and headers cu… inference-hooks-endpoint Claude Developer Platform · in the page manage-claude/inference-hooks-endpoint …base64 decoder.** The signing secret is the value after the `whsec_` prefix, encoded with the standard base64 alphabet (`+` and `/`), as is the signature in the header. A URL-safe decoder derives the… api Claude Developer Platform · in the page manage-claude/opentelemetry/api …HTTP endpoint, with a hostname, not an IP address. It can have a path prefix, for example `https://gateway.example.com/otlp`. Don't add `/v1/traces`, because the API adds it. If you set an **OTLP trac… organization-webhooks Claude Developer Platform · in the page manage-claude/organization-webhooks …| | `signing_secret` | string | A `whsec_`-prefixed secret, created with the endpoint. Only the responses that create the endpoint or replace the secret include it, so store… plugins-api Claude Developer Platform · in the page manage-claude/plugins-api …ID is the organization UUID shown in claude.ai's settings (its `org_`-prefixed form is accepted too). Without the parameter, the key reads the organization it was created in. A `404` means the named o… rate-limits-api Claude Developer Platform · in the page manage-claude/rate-limits-api …e `group_type` values, and `id`, an opaque identifier with the `rlg_` prefix. On `model_group` entries it also has `display_name`, Anthropic's current label for the group, such as `Claude Sonnet 4.x`.… user-management Claude Developer Platform · in the page manage-claude/user-management …. The optional `rbac_group_ids` field lists groups (by `rbac_group_`-prefixed ID) to assign to the member when they accept. Passing a non-empty `rbac_group_ids` additionally requires the key to carry… wif-admin-api Claude Developer Platform · in the page manage-claude/wif-admin-api …he Claude Console. These endpoints share the `/v1/organizations` path prefix with the rest of the [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api). ## Prerequisites Every req… aws Claude Developer Platform · in the page manage-claude/wif-providers/aws …prod-inference", "issuer_id": "fdis_...", "match": { "subject_prefix": "arn:aws:iam::123456789012:role/inference-worker", "audience": "https://api.anthropic.com" }, "target": { "type":… Create the app registration that represents the Claude API audience. Claude Developer Platform · in the page manage-claude/wif-providers/azure …r rule A federation rule can match the token's subject with `subject_prefix` in addition to (or instead of) the `claims` map; see [Rule matching semantics](https://platform.claude.com/docs/en/manage-… gcp Claude Developer Platform · in the page manage-claude/wif-providers/gcp …m is the service account's opaque numeric unique ID and has no stable prefix. A `subject_prefix` with a trailing `*` matches arbitrary service accounts across every Google Cloud project, and any of th… github-actions Claude Developer Platform · in the page manage-claude/wif-providers/github-actions …me": "gha-main", "issuer_id": "fdis_...", "match": { "subject_prefix": "repo:your-org/your-repo:ref:refs/heads/main", "audience": "https://api.anthropic.com", "claims": { "reposi… kubernetes Claude Developer Platform · in the page manage-claude/wif-providers/kubernetes …prem-inference", "issuer_id": "fdis_...", "match": { "subject_prefix": "system:serviceaccount:inference:inference-worker", "audience": "https://api.anthropic.com" }, "target": { "t… okta Claude Developer Platform · in the page manage-claude/wif-providers/okta …"okta-pipeline", "issuer_id": "fdis_...", "match": { "subject_prefix": "0oa1b2c3d4e5f6g7h8i9", "audience": "https://api.anthropic.com" }, "target": { "type": "service_account", "servic… Replace NODE_UID with the node's UID: Claude Developer Platform · in the page manage-claude/wif-providers/spiffe …, note its SPIFFE ID, which you use in the federation rule's `subject_prefix`. If not, register it. For a Kubernetes pod, the selectors are typically the namespace and Kubernetes service account: ```… wif-reference Claude Developer Platform · in the page manage-claude/wif-reference …----- | | `access_token` | string | The short-lived Anthropic token, prefixed `sk-ant-oat01-...`. Pass it as `Authorization: Bearer <token>`. | | `token_type` | string | Always `Bearer`.…
Feedback