20 pages for coder.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
citations
Claude Developer Platform · in the page
build-with-claude/citations
…th.of("/path/to/document.pdf")); String pdfBase64 = Base64.getEncoder().encodeToString(pdfBytes); DocumentBlockParam documentParam = DocumentBlockParam.builder() .source(Base64P…
pdf-support
Claude Developer Platform · in the page
build-with-claude/pdf-support
…onse.BodyHandlers.ofByteArray() ); String pdfBase64 = Base64.getEncoder().encodeToString(response.body()); // Method 2: Load from a local file // byte[] fileBytes = Files.readAllBytes(Path.of…
token-counting
Claude Developer Platform · in the page
build-with-claude/token-counting
…()) .body(); String imageBase64 = Base64.getEncoder().encodeToString(imageBytes); ContentBlockParam imageBlock = ContentBlockParam.ofImage( ImageBlockP…
working-with-messages
Claude Developer Platform · in the page
build-with-claude/working-with-messages
…esponse.BodyHandlers.ofByteArray()); String imageData = Base64.getEncoder().encodeToString(response.body()); List<ContentBlockParam> base64Content = List.of( ContentBlockParam.ofImage(…
go
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/go
…untime` 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 you…
inference-hooks-endpoint
Claude Developer Platform · in the page
manage-claude/inference-hooks-endpoint
…arsing or re-encoding. * **Decode the secret with a standard base64 decoder.** The signing secret is the value after the `whsec_` prefix, encoded with the standard base64 alphabet (`+` and `/`), as is…
Create the app registration that represents the Claude API audience.
Claude Developer Platform · in the page
manage-claude/wif-providers/azure
…AccessToken string `json:"access_token"` } if err := json.NewDecoder(resp.Body).Decode(&body); err != nil { return "", fmt.Errorf("decode token response: %w", err) } return body.Acces…
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() { clien…
spawn.sh: called once per claimed work item
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes
…ent.Data.Type != "session.status_run_started" { json.NewEncoder(w).Encode(map[string]string{"status": "ignored"}) return } // The Go SDK does not provide…
self-hosted-sandboxes-workers
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes-workers
…f event.Data.Type != "session.status_run_started" { json.NewEncoder(w).Encode(map[string]string{"status": "ignored"}) return } // The Go SDK does not provide a RunOne co…
Launch sessions from links
Claude Code CLI · in the page
deep-links
…t text through `encodeURIComponent` in a browser console or any URL encoder. The example below adds an investigation entry point to an incident runbook for a service called `web-gateway`: ```markdow…
Automate actions with hooks
Claude Code CLI · in the page
hooks-guide
…on exit 0. To fix a parse failure, build the payload with a JSON encoder such as `jq` instead of string concatenation, so quotes and backslashes inside values are escaped. The reference's [Exit cod…
Use the mods API
Claude Code CLI · in the page
plugins/mods/api
…ss of its own. Standard JavaScript and web APIs such as `URL`, `TextEncoder`, `AbortController`, and `crypto.subtle` are available. Each namespace below covers one kind of access: | Namespace | What…
Verify session identity in self-hosted environments
Claude Code CLI · in the page
self-hosted-environments-identity
…per scripts inside the session can use the runner binary's built-in decoder instead. ### Verify the token from your service Anthropic publishes the verification keys at a public, unauthenticated end…
Build an MCP server
Model Context Protocol · in the page
docs/2024-11-05/develop/build-server
…resp.StatusCode, string(body)) } var result T if err := json.NewDecoder(resp.Body).Decode(&result); err != nil { return nil, fmt.Errorf("failed to decode response: %w", err) } return &result,…
Build an MCP server
Model Context Protocol · in the page
docs/2025-03-26/develop/build-server
…resp.StatusCode, string(body)) } var result T if err := json.NewDecoder(resp.Body).Decode(&result); err != nil { return nil, fmt.Errorf("failed to decode response: %w", err) } return &result,…
Build an MCP server
Model Context Protocol · in the page
docs/2025-06-18/develop/build-server
…resp.StatusCode, string(body)) } var result T if err := json.NewDecoder(resp.Body).Decode(&result); err != nil { return nil, fmt.Errorf("failed to decode response: %w", err) } return &result,…
Build an MCP server
Model Context Protocol · in the page
docs/2025-11-25/develop/build-server
…resp.StatusCode, string(body)) } var result T if err := json.NewDecoder(resp.Body).Decode(&result); err != nil { return nil, fmt.Errorf("failed to decode response: %w", err) } return &result,…
Build an MCP server
Model Context Protocol · in the page
docs/2026-07-28/develop/build-server
…resp.StatusCode, string(body)) } var result T if err := json.NewDecoder(resp.Body).Decode(&result); err != nil { return nil, fmt.Errorf("failed to decode response: %w", err) } return &result,…
Build an MCP server
Model Context Protocol · in the page
docs/draft/develop/build-server
…resp.StatusCode, string(body)) } var result T if err := json.NewDecoder(resp.Body).Decode(&result); err != nil { return nil, fmt.Errorf("failed to decode response: %w", err) } return &result,…