Follow Discord
Sweep 03 Nov 2026 · 22:27Z Build v2.1.318 536 read Stable v2.1.311 Latest v2.1.318 Next v2.1.318 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

fallback-credit changedbuild-with-claude/fallback-credit

Nearest release: v2.1.318, published 4 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+3added
Lines−3removed
From line 34 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits21to this page, all time

The whole hunk

from line 34, old and new numbered
/
lines
from line 34
3434 
3535<Steps>
3636 <Step title="Opt in with the beta header">
37 Send the request that may be refused with the `anthropic-beta: fallback-credit-2026-07-01` header. The `server-side-fallback-2026-07-01` header also grants the same fields, except on Amazon Bedrock and Claude Models on Google Cloud (Google managed), which return a 400 error for that header. The earlier `fallback-credit-2026-06-01` header remains accepted and grants the same fields.
37 Send the request that might be refused with the `anthropic-beta: fallback-credit-2026-07-01` header. The `server-side-fallback-2026-07-01` header also grants the same fields, except on Claude Models on Google Cloud (Google managed) and Amazon Bedrock, which return a 400 error for that header. The `fallback-credit-2026-06-01` header is accepted and grants the same fields.
3838 </Step>
3939 
4040 <Step title="Read two fields from the refusal">
from line 606
606606</Accordion>
607607 
608608<Accordion title="Token scope and lifetime">
609 The token redeems only from the organization and workspace that received the refusal, including on Microsoft Foundry. On Amazon Bedrock and Claude Models on Google Cloud (Google managed), which do not have workspaces, the token is bound to the platform’s caller identity instead.
609 The token redeems only from the organization and workspace that received the refusal, including on Microsoft Foundry. On Claude Models on Google Cloud (Google managed) and Amazon Bedrock, which do not have workspaces, the token is bound to the platform’s caller identity instead.
610610 
611611 The token expires 5 minutes after the refusal. After that, send the retry without it. The token is also stateless: the server stores nothing about it, and there is no endpoint to inspect or revoke it.
612612</Accordion>
from line 637
637637 Every `stop_reason` value and how to handle it.
638638 </Card>
639639 
640 <Card title="SDK middleware" icon="settings" href="https://platform.claude.com/docs/en/cli-sdks-libraries/middleware">
640 <Card title="SDK middleware" icon="settings" href="https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback#client-side-fallback">
641641 The SDK helper that applies fallback credit automatically.
642642 </Card>
643643</CardGroup>
Feedback