114 pages for decode.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
content-moderation
Claude Developer Platform · in the page
about-claude/use-case-guides/content-moderation
…pt]], ); // Parse the JSON response from Claude. The SDK decodes each content block // into its concrete class, so find the TextBlock before reading the text. $textBlock = arr…
fine-grained-tool-streaming
Claude Developer Platform · in the page
agents-and-tools/tool-use/fine-grained-tool-streaming
…parsed = json.loads(raw_input) except json.JSONDecodeError: # The accumulated string is not guaranteed to be valid JSON. # See "Handl…
Analytics
Claude Developer Platform · in the page
api/beta/organization/analytics
…thinking ### Beta Analytics Claude Code Metrics - `BetaAnalyticsClaudeCodeMetrics object` Claude Code activity metrics for a single user on a given day. - `core_metrics: BetaAnalyticsCoreCodeM…
Connectors
Claude Developer Platform · in the page
api/beta/organization/analytics/connectors
…not be computed. - `claude_code_metrics: BetaAnalyticsConnectorClaudeCodeMetrics` Claude Code activity metrics for a single connector on a given day. - `distinct_session_connector_used_co…
Get Connector Usage
Claude Developer Platform · in the page
api/beta/organization/analytics/connectors/list
…not be computed. - `claude_code_metrics: BetaAnalyticsConnectorClaudeCodeMetrics` Claude Code activity metrics for a single connector on a given day. - `distinct_session_connector_used_co…
Plugins
Claude Developer Platform · in the page
api/beta/organization/analytics/plugins
…ticsPluginActivity` - `claude_code_metrics: BetaAnalyticsPluginClaudeCodeMetrics` Claude Code activity metrics for a single plugin on a given day. - `distinct_session_plugin_used_count: n…
Get Plugin Usage
Claude Developer Platform · in the page
api/beta/organization/analytics/plugins/list
…ticsPluginActivity` - `claude_code_metrics: BetaAnalyticsPluginClaudeCodeMetrics` Claude Code activity metrics for a single plugin on a given day. - `distinct_session_plugin_used_count: n…
Skills
Claude Developer Platform · in the page
api/beta/organization/analytics/skills
…cannot be computed. - `claude_code_metrics: BetaAnalyticsSkillClaudeCodeMetrics` Claude Code activity metrics for a single skill on a given day. - `distinct_session_skill_used_count: num…
Get Skill Usage
Claude Developer Platform · in the page
api/beta/organization/analytics/skills/list
…cannot be computed. - `claude_code_metrics: BetaAnalyticsSkillClaudeCodeMetrics` Claude Code activity metrics for a single skill on a given day. - `distinct_session_skill_used_count: num…
Users
Claude Developer Platform · in the page
api/beta/organization/analytics/users
…at used extended thinking - `claude_code_metrics: BetaAnalyticsClaudeCodeMetrics` Claude Code activity metrics for a single user on a given day. - `core_metrics: BetaAnalyticsCoreCodeMetr…
List User Activity
Claude Developer Platform · in the page
api/beta/organization/analytics/users/list
…at used extended thinking - `claude_code_metrics: BetaAnalyticsClaudeCodeMetrics` Claude Code activity metrics for a single user on a given day. - `core_metrics: BetaAnalyticsCoreCodeMetr…
Usage Report
Claude Developer Platform · in the page
api/beta/organization/usage_report
…/docs/en/api/versioning?sdk_languages=http). ### Returns - `BetaClaudeCodeUsageReport object` - `data: array of object` List of Claude Code usage records for the requested date. - `acto…
Get Claude Code Usage Report
Claude Developer Platform · in the page
api/beta/organization/usage_report/retrieve_claude_code
…m/docs/en/api/versioning?sdk_languages=http). ## Returns - `BetaClaudeCodeUsageReport object` - `data: array of object` List of Claude Code usage records for the requested date. - `acto…
citations
Claude Developer Platform · in the page
build-with-claude/citations
…pathlib.Path("/path/to/document.pdf").read_bytes() ).decode() response = client.messages.create( model="claude-opus-5-5", max_tokens=1024, message…
fallback-credit
Claude Developer Platform · in the page
build-with-claude/fallback-credit
…> json_encode(...) |> (fn (string $json): array => json_decode($json, associative: true)); $lastIndex = array_key_last($echoed); if ($lastIndex !== null && $echoed[$l…
mid-conversation-effort-example
Claude Developer Platform · in the page
build-with-claude/mid-conversation-effort-example
…$index] instanceof \Anthropic\Messages\ToolUseBlock) { $decoded = json_decode($buffer, true); $blocks[$index] = $blocks[$index]->withInput(is_array($decoded) ? $decoded : […
pdf-support
Claude Developer Platform · in the page
build-with-claude/pdf-support
…4encode( httpx2.get(pdf_url, follow_redirects=True).content ).decode("utf-8") # Alternative: Load from a local file # with open("document.pdf", "rb") as f: # pdf_data = base64.stand…
structured-outputs
Claude Developer Platform · in the page
build-with-claude/structured-outputs
…ic fn ($block): bool => $block->type === 'text'); $contact = json_decode($textBlock->text, associative: true); var_dump($contact); ``` Pass the schema as an associative array to `Outp…
token-counting
Claude Developer Platform · in the page
build-with-claude/token-counting
…image_data = base64.standard_b64encode(httpx2.get(image_url).content).decode("utf-8") client = anthropic.Anthropic() response = client.messages.count_tokens( model="claude-opus-5-5",…
working-with-messages
Claude Developer Platform · in the page
build-with-claude/working-with-messages
…image_data = base64.standard_b64encode(httpx2.get(image_url).content).decode("utf-8") message = anthropic.Anthropic().messages.create( model="claude-opus-5-5", max_tokens=1024, me…
API usage primer for Claude
Claude Developer Platform · in the page
claude_api_primer
…image_data = base64.standard_b64encode(httpx2.get(image_url).content).decode("utf-8") message = anthropic.Anthropic().messages.create( model="claude-opus-5-5", max_tokens=1024, me…
go
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/go
…-runtime` path). Importing the `bedrock` package globally registers a decoder for `application/vnd.amazon.eventstream` with the SDK's streaming layer (through package `init()`). This applies whether y…
access-transparency-log
Claude Developer Platform · in the page
manage-claude/access-transparency-log
…312911554b q83vATBFAiEAvL8m…(base64)… ``` * The first 4 bytes of the decoded signature value are the signing key's `key_hash`, which tells you which entry in the [verifier key set](https://platform.c…
WARNING: This operation PERMANENTLY deletes the chat, all of its messages,
Claude Developer Platform · in the page
manage-claude/compliance-content-data
…de.com/docs/en/api/compliance/apps/chats/files/retrieve) response, or decode `filename*`. Either way, it is the name the user gave the upload, so treat it as untrusted before using it as an output pat…
compliance-errors
Claude Developer Platform · in the page
manage-claude/compliance-errors
…ursor for 'after_id' ``` **Cause:** A pagination cursor could not be decoded. On the Activity Feed, an `after_id` or `before_id` value that is neither a cursor the API issued nor a well-formed activi…
inference-hooks-endpoint
Claude Developer Platform · in the page
manage-claude/inference-hooks-endpoint
…body exactly as received, before any JSON parsing or re-encoding. * **Decode the secret with a standard base64 decoder.** The signing secret is the value after the `whsec_` prefix, encoded with the st…
Create the app registration that represents the Claude API audience.
Claude Developer Platform · in the page
manage-claude/wif-providers/azure
…second user-assigned identity is attached. </Step> <Step title="Decode a sample token"> Request a token from the endpoint and decode its payload to confirm the claims your federation rule ne…
gcp
Claude Developer Platform · in the page
manage-claude/wif-providers/gcp
…/manage-claude/wif-providers/gcp#acquire-and-use-the-token). The decoded token payload looks like this: ```json { "iss": "https://accounts.google.com", "aud": "https://api.an…
github-actions
Claude Developer Platform · in the page
manage-claude/wif-providers/github-actions
…hropic.com'); fs.writeFileSync('/tmp/gha-jwt', token); ``` The decoded token carries claims that describe the workflow run. Your federation rule matches against these: ```json { "iss": "http…
okta
Claude Developer Platform · in the page
manage-claude/wif-providers/okta
…AccessToken string `json:"access_token"` } if err := json.NewDecoder(resp.Body).Decode(&body); err != nil { return "", err } return body.AccessToken, nil } func main() { cli…
Replace NODE_UID with the node's UID:
Claude Developer Platform · in the page
manage-claude/wif-providers/spiffe
…lementation, fetch a JWT-SVID with its CLI or Workload API client and decode the payload the same way. <Note> The Workload API attests the calling process. For a Kubernetes registration entry, run…
wif-reference
Claude Developer Platform · in the page
manage-claude/wif-reference
…-------------------------------------- | | `claims` | map | The full decoded JWT claim set. Nested objects are accessible as nested maps. | Example: ```text wrap claims.sub.startsWith("repo:acme-co…
spawn.sh: called once per claimed work item
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes
…try: event = client.beta.webhooks.unwrap(raw.decode(), headers=headers) except standardwebhooks.WebhookVerificationError: return {"error":…
self-hosted-sandboxes-workers
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes-workers
…try: event = client.beta.webhooks.unwrap(raw.decode(), headers=headers) except standardwebhooks.WebhookVerificationError: return {"error": "signatu…
claude-fable-5
Claude Developer Platform · in the page
release-notes/system-prompts/claude-fable-5
…ldren. This includes if a user is a minor themself. - Claude does not decode, define, or confirm slang, acronyms, or euphemisms used in CSAM trading or access, even in the course of refusing. Knowing…
claude-fable-5-1
Claude Developer Platform · in the page
release-notes/system-prompts/claude-fable-5-1
…ldren. This includes if a user is a minor themself. - Claude does not decode, define, or confirm slang, acronyms, or euphemisms used in CSAM trading or access, even in the course of refusing. Knowing…
claude-haiku-4-5
Claude Developer Platform · in the page
release-notes/system-prompts/claude-haiku-4-5
…ance that could potentially aid self-sexualization. - Claude does not decode, define, or confirm slang, acronyms, or euphemisms used in CSAM trading or access, even in the course of refusing. Knowing…
claude-haiku-5-5
Claude Developer Platform · in the page
release-notes/system-prompts/claude-haiku-5-5
…ance that could potentially aid self-sexualization. - Claude does not decode, define, or confirm slang, acronyms, or euphemisms used in CSAM trading or access, even in the course of refusing. Knowing…
claude-opus-4-8
Claude Developer Platform · in the page
release-notes/system-prompts/claude-opus-4-8
…ldren. This includes if a user is a minor themself. - Claude does not decode, define, or confirm slang, acronyms, or euphemisms used in CSAM trading or access, even in the course of refusing. Knowing…
claude-opus-5
Claude Developer Platform · in the page
release-notes/system-prompts/claude-opus-5
…ldren. This includes if a user is a minor themself. - Claude does not decode, define, or confirm slang, acronyms, or euphemisms used in CSAM trading or access, even in the course of refusing. Knowing…
claude-opus-5-5
Claude Developer Platform · in the page
release-notes/system-prompts/claude-opus-5-5
…ren. This includes if a person is a minor themself. - Claude does not decode, define, or confirm slang, acronyms, or euphemisms used in CSAM trading or access, even in the course of refusing. Knowing…
claude-sonnet-5
Claude Developer Platform · in the page
release-notes/system-prompts/claude-sonnet-5
…ance that could potentially aid self-sexualization. - Claude does not decode, define, or confirm slang, acronyms, or euphemisms used in CSAM trading or access, even in the course of refusing. Knowing…
claude-sonnet-5-5
Claude Developer Platform · in the page
release-notes/system-prompts/claude-sonnet-5-5
…ance that could potentially aid self-sexualization. - Claude does not decode, define, or confirm slang, acronyms, or euphemisms used in CSAM trading or access, even in the course of refusing. Knowing…
Set up Claude Code for your organization
Claude Code CLI · in the page
admin-setup
…Highest | All | | plist / registry policy | macOS: `com.anthropic.claudecode` plist Windows: `HKLM\SOFTWARE\Policies\ClaudeCode` | High | macOS, Windows | | File-based managed | macOS: `/Library/Appli…
Give Claude custom tools
Claude Code CLI · in the page
agent-sdk/custom-tools
…: "image", "data": base64.b64encode(response.content).decode( "ascii" ), # Base64-encode the raw bytes "mimeType": response.headers…
Hosting the Agent SDK
Claude Code CLI · in the page
agent-sdk/hosting
…he image build skipped the SDK's optional dependencies, or `pathToClaudeCodeExecutable` points at a file that doesn't exist in the image. See [Claude Code not found](/docs/en/agent-sdk/troubleshooting…
Migrate to Claude Agent SDK
Claude Code CLI · in the page
agent-sdk/migration-guide
…``python theme={null} # Before from claude_code_sdk import query, ClaudeCodeOptions # After from claude_agent_sdk import query, ClaudeAgentOptions ``` **4. Review [breaking changes](#breaking-change…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…urns` or `max_budget_usd`, you get an `error_*` subtype. ### `CLIJSONDecodeError` Raised when JSON parsing fails. ```python theme={null} class CLIJSONDecodeError(ClaudeSDKError): def __init__(s…
Quickstart
Claude Code CLI · in the page
agent-sdk/quickstart
…e natively](/docs/en/setup.md#install-claude-code) and set `pathToClaudeCodeExecutable` to its path. **3. Set your API key** Get an API key from the [Claude Console](https://platform.claude.com/), t…
Streaming Input
Claude Code CLI · in the page
agent-sdk/streaming-vs-single-mode
…png", "rb") as f: image_data = base64.b64encode(f.read()).decode() yield { "type": "user", "message": { "role": "user", "co…