Search the documentation
17 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
…fByteArray()) .body(); String imageBase64 = Base64.getEncoder().encodeToString(imageBytes); ContentBlockParam imageBlock = ContentBlockParam.ofImage( ImageBlockParam.build…
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…
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…
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
…ode, 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) } ret…
Build an MCP server
Model Context Protocol · in the page
docs/2025-03-26/develop/build-server
…ode, 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) } ret…
Build an MCP server
Model Context Protocol · in the page
docs/2025-06-18/develop/build-server
…ode, 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) } ret…
Build an MCP server
Model Context Protocol · in the page
docs/2025-11-25/develop/build-server
…ode, 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) } ret…
Build an MCP server
Model Context Protocol · in the page
docs/2026-07-28/develop/build-server
…ode, 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) } ret…
Build an MCP server
Model Context Protocol · in the page
docs/draft/develop/build-server
…ode, 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) } ret…