Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

578 pages for stop.

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

prompting-claude-sonnet-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-sonnet-5 …that is almost entirely thinking followed by a truncated answer and `stop_reason: "max_tokens"`. Raising `max_tokens` or dropping to `medium` effort resolves this. Because Claude Sonnet 5 uses a new… prompting-claude-sonnet-5-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-sonnet-5-5 …engineering/prompting-claude-sonnet-5-5#calibrate-effort) * The model stops to check in before a coding task is done, or does more than you asked: [Steer initiative and scope](https://platform.claude.… refusals-and-fallback Claude Developer Platform · in the page build-with-claude/refusals-and-fallback …When that happens, you receive a normal response, not an error, with `stop_reason: "refusal"`. Its `stop_details.category` names the policy area (see [What a refusal looks like](https://platform.claud… search-results Claude Developer Platform · in the page build-with-claude/search-results …-guardrails/handle-streaming-refusals"> Detect and handle refusal stop reasons in streaming responses, and retry refused requests on a fallback model. </Card> <Card title="Citations" icon="bo… skills-guide Claude Developer Platform · in the page build-with-claude/skills-guide …t perform operations that require multiple turns. Handle `pause_turn` stop reasons: <CodeGroup exclude="shell:cURL, shell:CLI"> <CodeGroupItem language="cURL"> This workflow needs more logic th… streaming Claude Developer Platform · in the page build-with-claude/streaming …data. Each event uses an SSE event name (for example, `event: message_stop`), and includes the matching event `type` in its data. Each stream uses the following event flow: 1. `message_start`: conta… structured-outputs Claude Developer Platform · in the page build-with-claude/structured-outputs …the tool first (tool_use) or respond with JSON (text) console.log("Stop reason:", response.stop_reason); for (const block of response.content) { switch (block.type) { case "tool_use":… task-budgets Claude Developer Platform · in the page build-with-claude/task-budgets …ort findings." } ] } ``` Claude thinks, then emits a tool call and stops with `stop_reason: "tool_use"`: ```text { "role": "assistant", "content": [ { "type": "thinking", "thin… thinking Claude Developer Platform · in the page build-with-claude/thinking …internal reasoning as part of the response text may be refused with `stop_details.category: "reasoning_extraction"`. See [Refusal categories](https://platform.claude.com/docs/en/build-with-claude/ref… thinking-steering-and-cost Claude Developer Platform · in the page build-with-claude/thinking-steering-and-cost …ing, telling Claude Haiku 5.5 in the prompt to answer directly didn't stop it from thinking. See [Prompting Claude Sonnet 5.5](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/… thinking-troubleshooting Claude Developer Platform · in the page build-with-claude/thinking-troubleshooting …onfiguration 400 errors, empty or missing thinking blocks, max_tokens stops, and cache misses." --- <Note> To learn how zero data retention (ZDR) applies to this feature, see [API and data retentio… working-with-messages Claude Developer Platform · in the page build-with-claude/working-with-messages …", "text": "Hello!" } ], "model": "claude-opus-5-5", "stop_reason": "end_turn", "stop_sequence": null, "usage": { "input_tokens": 12, "output_tokens": 6 } } ``` Refusal… API usage primer for Claude Claude Developer Platform · in the page claude_api_primer …", "text": "Hello!" } ], "model": "claude-opus-5-5", "stop_reason": "end_turn", "stop_sequence": null, "usage": { "input_tokens": 12, "output_tokens": 6 } } ``` ### Mult… apply Claude Developer Platform · in the page cli-sdks-libraries/cli/apply …ant apply in CI Without a terminal, `ant apply` prints the plan and stops with `cannot ask for confirmation without a terminal; re-run with --yes to apply, or --dry-run to see the plan only`. Set up… quickstart Claude Developer Platform · in the page cli-sdks-libraries/cli/quickstart …u doing today? Is there something I can help you with?" } ], "stop_reason": "end_turn", "usage": { "input_tokens": 27, "output_tokens": 20 /*, ... */ } } ``` The response is the full API ob… apple-foundation-models Claude Developer Platform · in the page cli-sdks-libraries/libraries/apple-foundation-models …s per-request reasoning hints. The framework's named reasoning levels stop at high; to request more effort for a single request instead, pass a custom reasoning level naming the Claude effort (`.custo… openai-sdk Claude Developer Platform · in the page cli-sdks-libraries/libraries/openai-sdk …| | `stop` | All non-whitespace stop sequences work… middleware Claude Developer Platform · in the page cli-sdks-libraries/middleware …tionToken)`; go: `next(req)`; java: `nextClient.execute(request, requestOptions)`; php: `$next($request)`; ruby: `call_next.call(request)`) to forward the request to the rest of the chain (or directly… go Claude Developer Platform · in the page cli-sdks-libraries/sdks/go …ge.GetNextPage() } if err != nil { panic(err.Error()) } ``` ## RequestOptions This library uses the functional options pattern. Functions defined in the `option` package return a `RequestOption`, w… java Claude Developer Platform · in the page cli-sdks-libraries/sdks/java …ssage; Message message = client .messages() .create(params, RequestOptions.builder().timeout(Duration.ofSeconds(30)).build()); ``` Or configure the default for all method calls at the client lev… php Claude Developer Platform · in the page cli-sdks-libraries/sdks/php …mingTransporter` request option: ```php $client = new Client( requestOptions: RequestOptions::with(streamingTransporter: $myStreamingClient), ); ``` ## Error handling When the library is unable t… get-api-key Claude Developer Platform · in the page get-api-key …pe, which determines what the key can do, where it works, and when it stops working. A **personal key** acts as you, and stops working if you leave an organization. A **service account key** represent… get-started Claude Developer Platform · in the page get-started …able energy news 2025\"\n- ..." } ], "stop_reason": "end_turn", "stop_sequence": null, "stop_details": null, "usage": { "input… intro Claude Developer Platform · in the page intro …se structure, including multi-turn conversations, system prompts, and stop reasons. [Read the Messages API guide](https://platform.claude.com/docs/en/build-with-claude/working-with-messages) </… access-transparency-log Claude Developer Platform · in the page manage-claude/access-transparency-log …aily. Hourly is reasonable. * **Disenrollment:** If your organization stops using Access Transparency, nothing is deleted. Your log stays readable through the same endpoints. If Access Transparency is… admin-api Claude Developer Platform · in the page manage-claude/admin-api …m/docs/en/manage-claude/authentication#key-types). Personal keys stop working when their user is removed from the organization. Service account keys stop working if their service account is archi… app-attest Claude Developer Platform · in the page manage-claude/app-attest …to your app's Claude configuration. ## Revoke an app integration To stop a compromised or retired app, revoke its integration. In the Claude Console, go to the [App integrations](https://platform.cl… authentication Claude Developer Platform · in the page manage-claude/authentication …pe, which determines what the key can do, where it works, and when it stops working: | Key type | Acts as… Fetch the first page (newest activities first). Claude Developer Platform · in the page manage-claude/compliance-activity-feed …each request, and both schemes return `has_more` so you know when to stop. The session endpoints (local and remote) are the exception: they return `next_page` without `has_more`, so stop when `next_p… compliance-api-access Claude Developer Platform · in the page manage-claude/compliance-api-access …r account team. <Warning> **Turning the Compliance API off stops activity recording.** An organization admin can turn the Compliance API off at any time with the same **Compliance API** tog… WARNING: This operation PERMANENTLY deletes the chat, all of its messages, Claude Developer Platform · in the page manage-claude/compliance-content-data …, and entire projects. A hard-deleted chat cannot be restored, and it stops appearing in list responses afterward. * [Delete chat](https://platform.claude.com/docs/en/api/compliance/apps/chats/delete… compliance-errors Claude Developer Platform · in the page manage-claude/compliance-errors …copy the `first_id` or `last_id` value returned by the previous page; stop when `has_more` is `false`. Do not construct cursors from object IDs. The directory, project, and session endpoints (organiz… compliance-faq Claude Developer Platform · in the page manage-claude/compliance-faq …nage-claude/access-transparency), turning the Compliance API off also stops Access Transparency event delivery. Activity that is not recorded while the Compliance API is off cannot be recovered later.… before_id is the first_id from a previous response Claude Developer Platform · in the page manage-claude/compliance-integration-patterns …y passing the response's `last_id` as `after_id` on the next request (stopping when `has_more` is `false`), or choose a smaller time window. See [Paginate results](https://platform.claude.com/docs/en/… compliance-sessions Claude Developer Platform · in the page manage-claude/compliance-sessions …ge` value back as the `page` query parameter on the next request, and stop when `next_page` is `null`. The response has no `has_more` field. Complete a list walk within 24 hours of starting it; an old… inference-hooks Claude Developer Platform · in the page manage-claude/inference-hooks …ailures attributable to your server trip a circuit breaker: Anthropic stops contacting it and applies your failure handling setting to every request, then resets the breaker automatically once it dete… inference-hooks-configuration Claude Developer Platform · in the page manage-claude/inference-hooks-configuration …er is unreachable or verdicts time out: * **Block the request:** stop inference when your AI security server can't deliver a verdict (fail closed). * **Allow the request:** let the request pr… inference-hooks-endpoint Claude Developer Platform · in the page manage-claude/inference-hooks-endpoint …me Claude Code gives it, in the form `mcp__<server>__<tool>`. A deny stops the call before Claude Code runs it. The exchange between Claude Code and a local server doesn't pass through Anthropic, so… opentelemetry Claude Developer Platform · in the page manage-claude/opentelemetry …ocs/en/managed-agents/tools) `list_issues`, so the turn ends with the stop reason `requires_action`. 6. The session tool runner runs `list_issues` (shown as the `anthropic.custom_tool_use list_issues`… sdk Claude Developer Platform · in the page manage-claude/opentelemetry/sdk …| Stop sending trace context and baggage headers with requests, for example when your HTTP client instrumentation already sends them… organization-webhooks Claude Developer Platform · in the page manage-claude/organization-webhooks …doesn't clear the list: the endpoint keeps the event types it had. To stop deliveries, send `"state": "disabled"` or delete the endpoint. To turn an endpoint back on, including after Anthropic disabl… plugins-api Claude Developer Platform · in the page manage-claude/plugins-api …then remove the group's setting. Setting the organization-wide value stops the plugin from inheriting its marketplace default; [removing the organization-wide setting](https://platform.claude.com/doc… user-management Claude Developer Platform · in the page manage-claude/user-management …m.claude.com/docs/en/manage-claude/spend-limits-api), if one existed, stops applying to them. Requires the `write:rbac_groups` scope. For complete parameter details and response schemas, see [Delete… user-profiles Claude Developer Platform · in the page manage-claude/user-profiles …account or asks you to erase their data. Before you delete a profile, stop sending its ID on that end customer's requests. If the end customer stays with you after an erasure request, create a new pro… user-profiles-verification-portal Claude Developer Platform · in the page manage-claude/user-profiles-verification-portal …rl ``` </CodeGroup> The response contains the link and the time it stops working: ```text wrap { "type": "user_profile_action_url", "url": "https://portal.anthropic.com/enroll?enrollment_token… workspaces Claude Developer Platform · in the page manage-claude/workspaces …nnot create keys in it manually from the Console. * A Claude Code key stops working if its owner is removed from the workspace or organization, unlike a workspace key. * Claude Code usage is rate-limi… agent-setup Claude Developer Platform · in the page managed-agents/agent-setup …il`; java: `Optional.empty()`; go: `param.Null[string]()`; php: `requestOptions: ['extraBodyParams' => ['system' => null, 'description' => null]]`). `model` (csharp, go: `Model`) and `name` (csharp, g… budgets Claude Developer Platform · in the page managed-agents/budgets …ssion consumes at public list rates (the session's **list cost**) and stops issuing new model requests once that cost reaches the budget. The request in flight when the cap is crossed still completes,… choosing-an-environment Claude Developer Platform · in the page managed-agents/choosing-an-environment …d-agents/self-hosted-sandboxes#quickstart) covers all three. * **What stops working:** The features listed in [What you take on and give up with a self-hosted sandbox](https://platform.claude.com/docs… dreams Claude Developer Platform · in the page managed-agents/dreams …sts with partial contents so you can inspect what was produced before stopping; clean it up through the Memory Stores API if you don't need it. <Warning> While a dream is `pending` or `running`, th…
Feedback