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

773 pages for write.

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 …m/docs/en/manage-claude/workload-identity-federation) instead. Login writes credentials to `credentials/<profile>.json`. The first login for a profile also creates `configs/<profile>.json` and sets i… scripting Claude Developer Platform · in the page cli-sdks-libraries/cli/scripting …--session-id session_01JZCh78XvmxJjiXVy3oSi7K --format jsonl`, which writes each event to stdout as it arrives. Without `--format`, a terminal opens the interactive explorer instead. </Tip> </S… apple-foundation-models Claude Developer Platform · in the page cli-sdks-libraries/libraries/apple-foundation-models …ts 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://platform.claude.com/do… openai-sdk Claude Developer Platform · in the page cli-sdks-libraries/libraries/openai-sdk …assistant."), new UserChatMessage("Who are you?")); Console.WriteLine(completion.Content[0].Text); ``` ```go Go package main import ( "context" "fmt" "os" "github.com/… middleware Claude Developer Platform · in the page cli-sdks-libraries/middleware …{ // Before the request Console.WriteLine($"Sending {request.Method} {request.RequestUri}"); // Forward the request to the next handler… csharp Claude Developer Platform · in the page cli-sdks-libraries/sdks/csharp …{ if (block.TryPickText(out var textBlock)) { Console.WriteLine(textBlock.Text); } } ``` For authentication options including Workload Identity Federation, see [Authentication](ht… go Claude Developer Platform · in the page cli-sdks-libraries/sdks/go …can send non-conforming fields in the request body. Extra fields overwrite any struct fields with a matching key. <Warning> For security reasons, only use `SetExtraFields` with trusted data. </War… java Claude Developer Platform · in the page cli-sdks-libraries/sdks/java …rties()` methods. <Warning> The values passed to these methods overwrite values passed to earlier methods. For security reasons, use these methods only with trusted input data. </Warning> To set u… For Amazon Bedrock support Claude Developer Platform · in the page cli-sdks-libraries/sdks/python …ntrol: client = Anthropic( timeout=httpx2.Timeout(60.0, read=5.0, write=10.0, connect=2.0), ) # Override per-request: client.with_options(timeout=5.0).messages.create( max_tokens=1024, me… typescript Claude Developer Platform · in the page cli-sdks-libraries/sdks/typescript …e received and does not consume the response body, so you are free to write custom parsing or streaming logic. You can also use the `.withResponse()` method to get the raw `Response` along with the p… get-started Claude Developer Platform · in the page get-started …TryPickText(out var textBlock)) { Console.WriteLine(textBlock.Text); } } ``` </Step> <Step title="Run your code"> ```bash… home Claude Developer Platform · in the page home …if (block.TryPickText(out var textBlock)) { Console.WriteLine(textBlock.Text); } } ``` ```bash cURL curl https://api.anthropic.com/v1/messages \ -H "cont… access-transparency Claude Developer Platform · in the page manage-claude/access-transparency …ansparency#what-access-transparency-covers)) by an Anthropic employee writes an `anthropic_access` activity to your [Compliance API Activity Feed](https://platform.claude.com/docs/en/manage-claude/com… access-transparency-log Claude Developer Platform · in the page manage-claude/access-transparency-log …record of what the log said on a given day. `axt-verify --save FILE` writes the checkpoint a run verified, verbatim, and `--from FILE` on a later run makes the log prove it still extends that checkpo… admin-api Claude Developer Platform · in the page manage-claude/admin-api …var organization = await client.Organization.Retrieve(); Console.WriteLine($"id: {organization.ID}"); Console.WriteLine($"name: {organization.Name}"); ``` ```go Go client := anthropic.Ne… admin-api-keys Claude Developer Platform · in the page manage-claude/admin-api-keys …assign the `managed` role on a role change or an invite, also select `write:rbac_groups`)… app-attest Claude Developer Platform · in the page manage-claude/app-attest …ts 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://platform.claude.com/do… authentication Claude Developer Platform · in the page manage-claude/authentication …}, } ) .Messages.Create(parameters); Console.WriteLine(message); // Or set it once for every request from this client: AnthropicClient workspaceClient = new(new ClientOpt… First request Claude Developer Platform · in the page manage-claude/claude-code-analytics-api …and rejection rates for different Claude Code tools (Edit, MultiEdit, Write, NotebookEdit) * **Cost analysis:** View estimated costs and token usage broken down by Claude model * **Custom reporting:**… cmek Claude Developer Platform · in the page manage-claude/cmek …ent secrets. These are stored under Anthropic-managed encryption, are write-only, and are never returned in API responses. * [User profiles](https://platform.claude.com/docs/en/api/beta/user_profiles)… cmek-aws-kms Claude Developer Platform · in the page manage-claude/cmek-aws-kms …y-step>" } }); Console.WriteLine($"id: {externalKey.ID}"); Console.WriteLine($"display_name: {externalKey.DisplayName}"); ```… cmek-azure-key-vault Claude Developer Platform · in the page manage-claude/cmek-azure-key-vault …ant-id>" } }); Console.WriteLine($"id: {externalKey.ID}"); Console.WriteLine($"display_name: {externalKey.DisplayName}"); ```… cmek-google-cloud-kms Claude Developer Platform · in the page manage-claude/cmek-google-cloud-kms …r equivalent). * Cloud KMS Data Access audit logs (Data Read and Data Write) turned on for the project, so that Cloud Logging records Anthropic's use of your key. They're off by default. To turn them… compliance-org-data Claude Developer Platform · in the page manage-claude/compliance-org-data …settings, or a marketplace's settings requires an Admin API key with `write:plugins`. Of the read calls, only downloading the files of a plugin in a member's personal marketplace records an [Activity… compliance-sessions Claude Developer Platform · in the page manage-claude/compliance-sessions …as the marker that stands in for the system prompt. When the client rewrites or compacts its conversation history mid-session (for example, after context compaction), the transcript inserts a marker m… data-residency Claude Developer Platform · in the page manage-claude/data-residency …if (block.TryPickText(out var textBlock)) { Console.WriteLine(textBlock.Text); } } // Check where inference actually ran Console.WriteLine($"Inference geo: {response.Usa… inference-hooks-configuration Claude Developer Platform · in the page manage-claude/inference-hooks-configuration …after saving, only the header names are displayed. Because values are write-only, saving any change to the headers requires re-entering every value. Changing the endpoint URL clears all stored header… inference-hooks-endpoint Claude Developer Platform · in the page manage-claude/inference-hooks-endpoint …str(len(verdict))) self.end_headers() self.wfile.write(verdict) ThreadingHTTPServer(("", 8000), VerdictHandler).serve_forever() ``` ```typescript TypeScript // Run with… api Claude Developer Platform · in the page manage-claude/opentelemetry/api …etaTelemetryDestinationWorkspacesAllParams(), } ); Console.WriteLine(destination.ID); ``` ```go Go client := anthropic.NewClient() destination, err := client.Beta.Organization.Tel… sdk Claude Developer Platform · in the page manage-claude/opentelemetry/sdk …[new UserMessageParam { Content = "Hello, Claude" }], }); Console.WriteLine(message); ``` ```go Go package main import ( "context" "fmt" "github.com/anthropics/anthropic-sdk-go… organization-webhooks Claude Developer Platform · in the page manage-claude/organization-webhooks …await foreach (var endpoint in page.Paginate()) { Console.WriteLine($"{endpoint.ID}: {endpoint.Url} ({endpoint.State.Raw()})"); } ``` ```go Go client := anthropic.NewClient() e… plugins-api Claude Developer Platform · in the page manage-claude/plugins-api …ins` scope (for `GET` endpoints, including archive downloads) or the `write:plugins` scope (for `POST` and `DELETE` endpoints, except marketplace validation, which either scope allows); [Scopes](https… rate-limits-api Claude Developer Platform · in the page manage-claude/rate-limits-api …is null ? "" : $" ({string.Join(", ", entry.Models)})"; Console.WriteLine($"{entry.Group.Type.Raw()}{models}"); foreach (var limit in entry.Limits) { Console.WriteLine($"… spend-limits-api Claude Developer Platform · in the page manage-claude/spend-limits-api …key with the `read:spend_limits` scope (for `GET` endpoints) or the `write:spend_limits` scope (for `POST` and `DELETE` endpoints). See [Create an Admin API key](https://platform.claude.com/docs/en/m… user-management Claude Developer Platform · in the page manage-claude/user-management …and all custom-role endpoints; there is no separate role scope), the `write:members` scope (member and invite `POST` and `DELETE` endpoints), the `read:rbac_groups` scope (group `GET` endpoints), or t… user-profiles Claude Developer Platform · in the page manage-claude/user-profiles …ID = "cust-8f2a1c", Country = "US" } }); Console.WriteLine(profile.ID); ``` ```go Go client := anthropic.NewClient() profile, err := client.UserProfiles.New(context.Back… user-profiles-verification-portal Claude Developer Platform · in the page manage-claude/user-profiles-verification-portal …w() { Action = new UserProfileEnrollEndUserAction() } ); Console.WriteLine(actionUrl.Url); ``` ```go Go client := anthropic.NewClient() actionURL, err := client.UserProfiles.ActionURLs.… wif-admin-api Claude Developer Platform · in the page manage-claude/wif-admin-api …ait foreach (var serviceAccount in page.Paginate()) { Console.WriteLine($"{serviceAccount.ID}: {serviceAccount.Name}"); } ``` ```go Go client := anthropic.NewClient() serviceAccoun… aws Claude Developer Platform · in the page manage-claude/wif-providers/aws …if (block.Value is TextBlock textBlock) { Console.WriteLine(textBlock.Text); } } class StsTokenProvider : IIdentityTokenProvider { private readonly AmazonSecurit… Create the app registration that represents the Claude API audience. Claude Developer Platform · in the page manage-claude/wif-providers/azure …** Register your tenant's Entra issuer, create a service account, and write a federation rule that matches the token's claims. 4. **Exchange at runtime:** Your workload exchanges its Entra-issued toke… gcp Claude Developer Platform · in the page manage-claude/wif-providers/gcp …, "content": "Hello from Cloud Run"}] }' ``` ```bash CLI # Write the Google-signed identity token to a file the CLI can read export ANTHROPIC_IDENTITY_TOKEN_FILE=$(mktemp) curl -sS -H "… github-actions Claude Developer Platform · in the page manage-claude/wif-providers/github-actions …repository where you can edit workflow files and grant the `id-token: write` permission. * Permission to create service accounts, federation issuers, and federation rules in the Claude Console for you… kubernetes Claude Developer Platform · in the page manage-claude/wif-providers/kubernetes …at your federation rule expects. The `serviceAccountToken` projection writes a fresh JWT to the mount path and rotates it before `expirationSeconds` elapses. ```yaml Pod apiVersion: v1 kind: Pod meta… okta Claude Developer Platform · in the page manage-claude/wif-providers/okta …}' ``` ```bash CLI # 1. Request an access token from Okta and write it to a temp file. export ANTHROPIC_IDENTITY_TOKEN_FILE=$(mktemp) curl -sS "$OKTA_ISSUER/v1/token" \ -d grant_type=c… Replace NODE_UID with the node's UID: Claude Developer Platform · in the page manage-claude/wif-providers/spiffe …other OIDC token: register the discovery URL as a federation issuer, write a federation rule that matches the workload's SPIFFE ID, and have the workload present its JWT-SVID to Anthropic's token-exc… wif-reference Claude Developer Platform · in the page manage-claude/wif-reference …`version` field in `major.minor` format (currently `"1.0"`). The SDK writes this field automatically so future releases can detect and migrate older formats; omit it when authoring a config by hand a… workload-identity-federation Claude Developer Platform · in the page manage-claude/workload-identity-federation …if (block.Value is TextBlock textBlock) { Console.WriteLine(textBlock.Text); } } ``` ```go Go client := anthropic.NewClient( option.WithFederationTokenProvider(… workspaces Claude Developer Platform · in the page manage-claude/workspaces …orkspaces.Create(new() { Name = "Production" }); Console.WriteLine($"id: {workspace.ID}"); Console.WriteLine($"name: {workspace.Name}"); ``` ```go Go client := anthropic.NewClien… agent-setup Claude Developer Platform · in the page managed-agents/agent-setup …ith access 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-agen… budgets Claude Developer Platform · in the page managed-agents/budgets …ount = "125", Currency = BetaCurrency.Usd }, }, }); Console.WriteLine($"{session.ID} {session.Budget?.MaxListCost.Amount}"); // sesn_01... 125 ``` ```go Go session, err := client.Bet…
Feedback