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,027 pages for path.

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

preserved-thinking Claude Developer Platform · in the page build-with-claude/preserved-thinking …ut_transformations": [ { "type": "thinking_dropped", "path": "messages.3.content.0", "reason": "model_binding_mismatch" } ] } ``` Without the header, the drop is silent. T… Delivering work Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-fable-5-1 …ema": { "type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"], }, } ] messages: list[BetaMessageParam] = [… prompting-claude-haiku-5-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-haiku-5-5 …r the whole conversation. Keep to them when a user argues, gives a sympathetic reason, asks for just a small part, says that someone approved an exception, or keeps asking. ``` In Anthropic's testing… refusals-and-fallback Claude Developer Platform · in the page build-with-claude/refusals-and-fallback …an agent plus its subagents. * **Configure fallback on every request path.** Retry handlers, error-recovery branches, and background workers all need it. A handler that re-issues a request without fa… skills-guide Claude Developer Platform · in the page build-with-claude/skills-guide …SDK also provides a `files_from_dir` helper that accepts a directory path, and the CLI's `ant apply` uploads the directory itself. Files are identified by the file name you attach (the `;filename=`… thinking Claude Developer Platform · in the page build-with-claude/thinking …ng asked, tries approaches, checks intermediate results, and abandons paths that do not hold up. That up-front thinking arrives in `thinking` content blocks ahead of the response, and Claude draws on… token-counting Claude Developer Platform · in the page build-with-claude/token-counting …4 import anthropic client = anthropic.Anthropic() with open("/path/to/document.pdf", "rb") as pdf_file: pdf_base64 = base64.standard_b64encode(pdf_file.read()).decode("utf-8") respons… vision Claude Developer Platform · in the page build-with-claude/vision …tream>builder() .value(Files.newInputStream(Path.of("vision-example.jpg"))) .filename("vision-example.jpg") .contentType("… apply Claude Developer Platform · in the page cli-sdks-libraries/cli/apply …ibraries/cli/apply#kind-inference) that the file is an agent from its path, here the `agents/` directory. In an interactive terminal, `ant apply` prints the plan and waits for your approval: ```text… On a remote host without a browser: Claude Developer Platform · in the page cli-sdks-libraries/cli/authentication …rkspace the active token is bound to, and the configuration directory paths. Use it to diagnose why a workload picked the wrong credential or workspace. ```bash CLI ant auth status ``` ```text Activ… quickstart Claude Developer Platform · in the page cli-sdks-libraries/cli/quickstart …-written JSON, and inlines file contents into string fields with an `@path` reference. It extracts response fields with a built-in `--transform` query, so you don't need a separate tool such as `jq`,… using Claude Developer Platform · in the page cli-sdks-libraries/cli/using …| Filter or reshape the response with a GJSON path. See [Transform output with GJSON](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/using#transform-output-with-gjs… apple-foundation-models Claude Developer Platform · in the page cli-sdks-libraries/libraries/apple-foundation-models …directly from your app to the Claude API; Apple is not in the request path and does not see prompts or responses. Usage is billed to your Anthropic account at [standard API pricing](https://platform.c… middleware Claude Developer Platform · in the page cli-sdks-libraries/middleware …IO.println(request.method() + " /" + String.join("/", request.pathSegments())); // Forward the request to the next handler HttpResponse response = nextClient.execute(reque… csharp Claude Developer Platform · in the page cli-sdks-libraries/sdks/csharp …eam = await response.ReadAsStream(); using var fileStream = File.Open(path, FileMode.OpenOrCreate); await contentStream.CopyToAsync(fileStream); // Or any other Stream ``` ### Raw responses The SDK… go Claude Developer Platform · in the page cli-sdks-libraries/sdks/go …ent type. ```go // A file from the filesystem file, err := os.Open("/path/to/file.json") anthropic.FileUploadParams{ File: anthropic.File(file, "custom-name.json", "application/json"), } // A file… java Claude Developer Platform · in the page cli-sdks-libraries/sdks/java …tField.<InputStream>builder() .value(Files.newInputStream(Paths.get("/path/to/file.pdf"))) .contentType("application/pdf") .build() ) .build(); FileMetadat… php Claude Developer Platform · in the page cli-sdks-libraries/sdks/php …new Client(); $response = $client->request( method: 'post', path: '/undocumented/endpoint', query: ['dog' => 'woof'], headers: ['useful-header' => 'interesting-value'], body: ['h… For Amazon Bedrock support Claude Developer Platform · in the page cli-sdks-libraries/sdks/python …rrespond to file uploads can be passed in many different forms: * A `PathLike` object (for example, `pathlib.Path`) * A tuple of `(filename, content, content_type)` * A `BinaryIO` file-like object `… Automatically handles tool execution loop Claude Developer Platform · in the page cli-sdks-libraries/sdks/ruby …rs that correspond to file uploads can be passed as raw contents, a [`Pathname`](https://rubyapi.org/3.2/o/pathname) instance, [`StringIO`](https://rubyapi.org/3.2/o/stringio), or more. ```ruby anthr… typescript Claude Developer Platform · in the page cli-sdks-libraries/sdks/typescript …content const resource = await mcpClient.readResource({ uri: "file:///path/to/doc.txt" }); await anthropic.beta.messages.create({ model: "claude-opus-5-5", max_tokens: 1024, messages: [ {… get-started Claude Developer Platform · in the page get-started …/install/) or [Maven](https://maven.apache.org/install.html) on your `PATH`. Create a directory for your project with a Java source directory inside it: ```bash mkdir -p claude-quicks… intro Claude Developer Platform · in the page intro …s://platform.claude.com/docs/en/models/overview) *** ## Recommended path for new developers Follow these steps to build a working Claude integration. <Steps> <Step title="Make your first API cal… access-transparency-log Claude Developer Platform · in the page manage-claude/access-transparency-log …is lets you check a key you hold locally against a source the serving path cannot alter. The key you hold might come from an earlier `GET /keys` response or from tooling that pins the key. | Key hash… analytics-api Claude Developer Platform · in the page manage-claude/analytics-api …m/docs/en/manage-claude/usage-cost-api) , which explains the right path for both Claude Console and Claude Enterprise organizations. </Note> <Note> If you want to view engagement and adoption da… api-and-data-retention Claude Developer Platform · in the page manage-claude/api-and-data-retention …for your organization. #### Build with eligible features Whichever path you use, confirm which features are supported in the [feature eligibility table](https://platform.claude.com/docs/en/manage-c… cmek Claude Developer Platform · in the page manage-claude/cmek …cted data in that workspace permanently inaccessible, with no backout path. * **No retroactive encryption:** CMEK only protects data written after your key takes effect (see [How it works](https://pla… compliance-api Claude Developer Platform · in the page manage-claude/compliance-api …laude.com/docs/en/api/compliance" title="API reference"> Endpoint paths, parameters, and response schemas for every Compliance API call. </Card> <Card href="https://platform.claude.com/docs/e… WARNING: This operation PERMANENTLY deletes the chat, all of its messages, Claude Developer Platform · in the page manage-claude/compliance-content-data …ave the upload, so treat it as untrusted before using it as an output path: * Keep only the base name. * Allow only characters that are safe on your filesystem. * Refuse names that begin with `-` or… compliance-errors Claude Developer Platform · in the page manage-claude/compliance-errors …re message `Not found` means the request did not authenticate (or the path does not exist), not that a resource is gone; see [Request not authenticated](https://platform.claude.com/docs/en/manage-clau… compliance-org-data Claude Developer Platform · in the page manage-claude/compliance-org-data …------------------------------------------ | | `{org_uuid}` | Path parameter on per-organization endpoints on this page… compliance-sessions Claude Developer Platform · in the page manage-claude/compliance-sessions …| File paths; Claude Code can also capture contents with an optional, size-capped setting | | Host and device metad… inference-hooks-endpoint Claude Developer Platform · in the page manage-claude/inference-hooks-endpoint …n server.cs var app = WebApplication.Create(); app.MapPost("/{**path}", async (HttpRequest request) => { // Drain the body; transcripts can be megabytes. await request.Body.CopyToA… api Claude Developer Platform · in the page manage-claude/opentelemetry/api …OTLP/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… plugins-api Claude Developer Platform · in the page manage-claude/plugins-api …ip` files. Packaged MCP servers (`.mcpb`, `.dxt`) are allowed. * File paths must be relative, contain no `..`, and use only letters, digits, spaces, and `_ . - / ( ) ,`. * The request body and the unc… First request Claude Developer Platform · in the page manage-claude/usage-cost-api …arry no Admin API keys, so for them the Analytics API key is the only path to this data. See [Analytics APIs](https://platform.claude.com/docs/en/manage-claude/analytics-api) for how to create each ke… user-management Claude Developer Platform · in the page manage-claude/user-management …o custom roles (role-based access control, the `rbac` in the endpoint paths and scope names). Groups are owned by your enterprise as a whole (the parent organization together with every organization u… user-profiles-verification-portal Claude Developer Platform · in the page manage-claude/user-profiles-verification-portal …en/api/user_profiles/action_urls/create) with the profile's ID in the path. In the request body, set `action.type` to `enroll_end_user`. The call returns a `404` if creating enrollment links isn't en… wif-admin-api Claude Developer Platform · in the page manage-claude/wif-admin-api …ugh the 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 Ever… aws Claude Developer Platform · in the page manage-claude/wif-providers/aws …keys by exchanging an AWS-signed OIDC identity token. The recommended path calls the AWS STS [`GetWebIdentityToken`](https://docs.aws.amazon.com/STS/latest/APIReference/API_GetWebIdentityToken.html) A… Create the app registration that represents the Claude API audience. Claude Developer Platform · in the page manage-claude/wif-providers/azure …-oat01-...` Anthropic access token and calls Claude with it. On both paths the token you present to Anthropic carries your tenant-specific Entra issuer and the managed identity's object ID in the `su… gcp Claude Developer Platform · in the page manage-claude/wif-providers/gcp …lusters/CLUSTER`) with a projected `serviceAccountToken` volume. That path uses a per-cluster issuer rather than `accounts.google.com`. See [Use WIF with Kubernetes](https://platform.claude.com/docs/e… github-actions Claude Developer Platform · in the page manage-claude/wif-providers/github-actions …lls `ACTIONS_ID_TOKEN_REQUEST_URL` directly instead of using the file path. ## Verify the setup A successful exchange returns an `access_token` starting with `sk-ant-oat01-` and an `expires_in` valu… kubernetes Claude Developer Platform · in the page manage-claude/wif-providers/kubernetes …The `serviceAccountToken` projection writes a fresh JWT to the mount path and rotates it before `expirationSeconds` elapses. ```yaml Pod apiVersion: v1 kind: Pod metadata: name: inference-worker… okta Claude Developer Platform · in the page manage-claude/wif-providers/okta …oauth2/<auth-server-id>`. If you use the built-in default server, the path is `/oauth2/default`. <Note> You must use an Okta **custom authorization server** (including the `default` one). Tokens is… Replace NODE_UID with the node's UID: Claude Developer Platform · in the page manage-claude/wif-providers/spiffe …workload a stable identity URI of the form `spiffe://<trust-domain>/<path>`, and SPIRE issues that identity as a JWT-SVID on demand through the Workload API. A JWT-SVID is an ordinary signed JWT whos… wif-reference Claude Developer Platform · in the page manage-claude/wif-reference …_IDENTITY_TOKEN_FILE` | One of `_TOKEN_FILE` or `_TOKEN` | Filesystem path to the JWT issued by your identity provider (IdP). The SDK re-reads this file on every exchange so that projected tokens that… workload-identity-federation Claude Developer Platform · in the page manage-claude/workload-identity-federation …uilder() .source("file") .path("/var/run/secrets/anthropic.com/token") .build()) .build()) .build()))… cloud-sandboxes-reference Claude Developer Platform · in the page managed-agents/cloud-sandboxes-reference …m (`/opt/pw-browsers/chromium`) - Browser used by Playwright, not on `PATH` The sandbox sets `PLAYWRIGHT_BROWSERS_PATH` to `/opt/pw-browsers`, so the pre-installed Playwright packages find Chromium t… DCF Model Rubric Claude Developer Platform · in the page managed-agents/define-outcomes …--file /tmp/rubric.md ``` ```python Python import time from pathlib import Path from anthropic import Anthropic client = Anthropic() RUBRIC = """# DCF Model Rubric ## Revenue Pro…
Feedback