One read of Claude Developer Platformapi-20261120T193709Z
650 pages moved out of 936 read.
Pages moved
650
significant first
Pages read
936
in this capture
Captured
19:37 UTC
Corpus hash
721918d8c137
corpus-hash
What this read moved
376-400 of 650, page 16 of 26This capture is too large to show at once. Changes 376-400 of 650 are below, significant first; the rest are on the following screens.
test-and-evaluate/strengthen-guardrails/handle-streaming-refusals Changed · +10 / -10 lines
from line 328
328328
329329The API currently handles refusals in three different ways:
330330
331| Refusal type | Response format | When it occurs |
332| ---------------------------------- | ---------------------------- | ----------------------------------------------- |
333| Streaming classifier refusals | **`stop_reason`: `refusal`** | During streaming when content violates policies |
334| API input and copyright validation | 400 error codes | When input fails validation checks |
335| Model-generated refusals | Standard text responses | When the model itself refuses |
331| Refusal type | Response format | When it occurs |
332| ----- | ----- | ----- |
333| Streaming classifier refusals | **`stop_reason`: `refusal`** | During streaming when content violates policies |
334| API input and copyright validation | 400 error codes | When input fails validation checks |
335| Model-generated refusals | Standard text responses | When the model itself refuses |
336336
337337## Best practices
338338
from line 384
384384* Availability: Always on
385385* Usage: The stream ends with `stop_reason` `"refusal"`, and `stop_details` (`category` and `explanation`) arrives on the `message_delta` event.
386386
387| Status | Cloud platforms |
388| --------- | ----------------------- |
387| Status | Cloud platforms |
388| ----- | ----- |
389389| Available | All supported platforms |
390390
391391#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
from line 393
393393* Availability: Always on
394394* Usage: A refused turn ends, and the session goes idle. Treat a turn as refused if `stop_details.type` or `stop_reason.type` on the `session.status_idle` event is `"refusal"`. On a refused turn, `stop_reason.type` can be `"end_turn"`. `stop_details` is `null` on any other turn, and can be `null` on a refused turn too.
395395
396| Status | Cloud platforms |
397| ------ | ------------------------------------------------------------------------------------------------------------------ |
398| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) |
396| Status | Cloud platforms |
397| ----- | ----- |
398| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws) |
399399
api/beta/agents/archive Changed · +2 / -0 lines
from line 121
121121
122122 - `"experimental-claude-tag-2026-10-21"`
123123
124 - `"ce-claude-code-managed-settings-2026-10-06"`
125
124126 - `"user-profiles-billing-2026-10-01"`
125127
126128 - `"message-batches-2024-09-24"`
api/beta/agents/create Changed · +2 / -0 lines
from line 115
115115
116116 - `"experimental-claude-tag-2026-10-21"`
117117
118 - `"ce-claude-code-managed-settings-2026-10-06"`
119
118120 - `"user-profiles-billing-2026-10-01"`
119121
120122 - `"message-batches-2024-09-24"`
api/beta/agents/list Changed · +2 / -0 lines
from line 143
143143
144144 - `"experimental-claude-tag-2026-10-21"`
145145
146 - `"ce-claude-code-managed-settings-2026-10-06"`
147
146148 - `"user-profiles-billing-2026-10-01"`
147149
148150 - `"message-batches-2024-09-24"`
api/beta/agents/retrieve Changed · +2 / -0 lines
from line 129
129129
130130 - `"experimental-claude-tag-2026-10-21"`
131131
132 - `"ce-claude-code-managed-settings-2026-10-06"`
133
132134 - `"user-profiles-billing-2026-10-01"`
133135
134136 - `"message-batches-2024-09-24"`
api/beta/agents/update Changed · +2 / -0 lines
from line 121
121121
122122 - `"experimental-claude-tag-2026-10-21"`
123123
124 - `"ce-claude-code-managed-settings-2026-10-06"`
125
124126 - `"user-profiles-billing-2026-10-01"`
125127
126128 - `"message-batches-2024-09-24"`
api/beta/agents/versions Changed · +2 / -0 lines
from line 135
135135
136136 - `"experimental-claude-tag-2026-10-21"`
137137
138 - `"ce-claude-code-managed-settings-2026-10-06"`
139
138140 - `"user-profiles-billing-2026-10-01"`
139141
140142 - `"message-batches-2024-09-24"`
api/beta/agents/versions/list Changed · +2 / -0 lines
from line 133
133133
134134 - `"experimental-claude-tag-2026-10-21"`
135135
136 - `"ce-claude-code-managed-settings-2026-10-06"`
137
136138 - `"user-profiles-billing-2026-10-01"`
137139
138140 - `"message-batches-2024-09-24"`
api/beta/dreams/archive Changed · +3 / -1 lines
from line 125
125125
126126 - `"experimental-claude-tag-2026-10-21"`
127127
128 - `"ce-claude-code-managed-settings-2026-10-06"`
129
128130 - `"user-profiles-billing-2026-10-01"`
129131
130132 - `"message-batches-2024-09-24"`
from line 213
211213
212214 format: date-time
213215
214 - `error: BetaDreamError or null`
216 - `error: BetaDreamErrorObject or null`
215217
216218 Why the dream failed, or `null` if `status` isn't `failed`.
217219
api/beta/dreams/cancel Changed · +3 / -1 lines
from line 125
125125
126126 - `"experimental-claude-tag-2026-10-21"`
127127
128 - `"ce-claude-code-managed-settings-2026-10-06"`
129
128130 - `"user-profiles-billing-2026-10-01"`
129131
130132 - `"message-batches-2024-09-24"`
from line 213
211213
212214 format: date-time
213215
214 - `error: BetaDreamError or null`
216 - `error: BetaDreamErrorObject or null`
215217
216218 Why the dream failed, or `null` if `status` isn't `failed`.
217219
api/beta/dreams/create Changed · +3 / -1 lines
from line 119
119119
120120 - `"experimental-claude-tag-2026-10-21"`
121121
122 - `"ce-claude-code-managed-settings-2026-10-06"`
123
122124 - `"user-profiles-billing-2026-10-01"`
123125
124126 - `"message-batches-2024-09-24"`
from line 309
307309
308310 format: date-time
309311
310 - `error: BetaDreamError or null`
312 - `error: BetaDreamErrorObject or null`
311313
312314 Why the dream failed, or `null` if `status` isn't `failed`.
313315
api/beta/dreams/list Changed · +3 / -1 lines
from line 183
183183
184184 - `"experimental-claude-tag-2026-10-21"`
185185
186 - `"ce-claude-code-managed-settings-2026-10-06"`
187
186188 - `"user-profiles-billing-2026-10-01"`
187189
188190 - `"message-batches-2024-09-24"`
from line 265
263265
264266 format: date-time
265267
266 - `error: BetaDreamError or null`
268 - `error: BetaDreamErrorObject or null`
267269
268270 Why the dream failed, or `null` if `status` isn't `failed`.
269271
api/beta/dreams/retrieve Changed · +3 / -1 lines
from line 125
125125
126126 - `"experimental-claude-tag-2026-10-21"`
127127
128 - `"ce-claude-code-managed-settings-2026-10-06"`
129
128130 - `"user-profiles-billing-2026-10-01"`
129131
130132 - `"message-batches-2024-09-24"`
from line 213
211213
212214 format: date-time
213215
214 - `error: BetaDreamError or null`
216 - `error: BetaDreamErrorObject or null`
215217
216218 Why the dream failed, or `null` if `status` isn't `failed`.
217219
api/beta/environments/archive Changed · +2 / -0 lines
from line 119
119119
120120 - `"experimental-claude-tag-2026-10-21"`
121121
122 - `"ce-claude-code-managed-settings-2026-10-06"`
123
122124 - `"user-profiles-billing-2026-10-01"`
123125
124126 - `"message-batches-2024-09-24"`
api/beta/environments/create Changed · +2 / -0 lines
from line 115
115115
116116 - `"experimental-claude-tag-2026-10-21"`
117117
118 - `"ce-claude-code-managed-settings-2026-10-06"`
119
118120 - `"user-profiles-billing-2026-10-01"`
119121
120122 - `"message-batches-2024-09-24"`
api/beta/environments/delete Changed · +2 / -0 lines
from line 119
119119
120120 - `"experimental-claude-tag-2026-10-21"`
121121
122 - `"ce-claude-code-managed-settings-2026-10-06"`
123
122124 - `"user-profiles-billing-2026-10-01"`
123125
124126 - `"message-batches-2024-09-24"`
api/beta/environments/list Changed · +2 / -0 lines
from line 133
133133
134134 - `"experimental-claude-tag-2026-10-21"`
135135
136 - `"ce-claude-code-managed-settings-2026-10-06"`
137
136138 - `"user-profiles-billing-2026-10-01"`
137139
138140 - `"message-batches-2024-09-24"`
api/beta/environments/retrieve Changed · +2 / -0 lines
from line 119
119119
120120 - `"experimental-claude-tag-2026-10-21"`
121121
122 - `"ce-claude-code-managed-settings-2026-10-06"`
123
122124 - `"user-profiles-billing-2026-10-01"`
123125
124126 - `"message-batches-2024-09-24"`
api/beta/environments/update Changed · +2 / -0 lines
from line 119
119119
120120 - `"experimental-claude-tag-2026-10-21"`
121121
122 - `"ce-claude-code-managed-settings-2026-10-06"`
123
122124 - `"user-profiles-billing-2026-10-01"`
123125
124126 - `"message-batches-2024-09-24"`
api/beta/environments/work/ack Changed · +2 / -0 lines
from line 123
123123
124124 - `"experimental-claude-tag-2026-10-21"`
125125
126 - `"ce-claude-code-managed-settings-2026-10-06"`
127
126128 - `"user-profiles-billing-2026-10-01"`
127129
128130 - `"message-batches-2024-09-24"`
api/beta/environments/work/heartbeat Changed · +2 / -0 lines
from line 133
133133
134134 - `"experimental-claude-tag-2026-10-21"`
135135
136 - `"ce-claude-code-managed-settings-2026-10-06"`
137
136138 - `"user-profiles-billing-2026-10-01"`
137139
138140 - `"message-batches-2024-09-24"`
api/beta/environments/work/poll Changed · +2 / -0 lines
from line 135
135135
136136 - `"experimental-claude-tag-2026-10-21"`
137137
138 - `"ce-claude-code-managed-settings-2026-10-06"`
139
138140 - `"user-profiles-billing-2026-10-01"`
139141
140142 - `"message-batches-2024-09-24"`
api/beta/environments/work/stats Changed · +2 / -0 lines
from line 119
119119
120120 - `"experimental-claude-tag-2026-10-21"`
121121
122 - `"ce-claude-code-managed-settings-2026-10-06"`
123
122124 - `"user-profiles-billing-2026-10-01"`
123125
124126 - `"message-batches-2024-09-24"`
api/beta/environments/work/stop Changed · +2 / -2 lines
from line 7
77
88**POST** `/v1/environments/{environment_id}/work/{work_id}/stop`
99
10Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
11
1210Stop a work item, initiating graceful or forced shutdown.
1311
1412## Path parameters
from line 120
122120 - `"analytics-usage-cost-2026-08-24"`
123121
124122 - `"experimental-claude-tag-2026-10-21"`
123
124 - `"ce-claude-code-managed-settings-2026-10-06"`
125125
126126 - `"user-profiles-billing-2026-10-01"`
127127
api/beta/files/delete Changed · +2 / -0 lines
from line 121
121121
122122 - `"experimental-claude-tag-2026-10-21"`
123123
124 - `"ce-claude-code-managed-settings-2026-10-06"`
125
124126 - `"user-profiles-billing-2026-10-01"`
125127
126128 - `"message-batches-2024-09-24"`