events-and-streaming changedmanaged-agents/events-and-streaming
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+7added
Lines−7removed
From line
58
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits37to this page, all time
The whole hunk
from line 58, old and new numbered
/
from line 58
5858 curl --fail-with-body -sS -N \
5959 "https://api.anthropic.com/v1/sessions/$SESSION_ID/events/stream?beta=true" \
6060 -H "x-api-key: $ANTHROPIC_API_KEY" \
61 -H "anthropic-version: 2023-06-01" \
61 -H "anthropic-version: 2026-10-21" \
6262 -H "anthropic-beta: managed-agents-2026-04-01" \
6363 -H "accept: text/event-stream"
6464 ```
from line 521
521521 ```bash cURL
522522 curl --fail-with-body -sS "https://api.anthropic.com/v1/sessions/$SESSION_ID/events?beta=true" \
523523 -H "x-api-key: $ANTHROPIC_API_KEY" \
524 -H "anthropic-version: 2023-06-01" \
524 -H "anthropic-version: 2026-10-21" \
525525 -H "anthropic-beta: managed-agents-2026-04-01" \
526526 -H "content-type: application/json" \
527527 -d '{
from line 1100
11001100 # In production, pass the stored ID of the session you want to resume.
11011101 curl --fail-with-body -sS "https://api.anthropic.com/v1/sessions/$SESSION_ID/events?beta=true" \
11021102 -H "x-api-key: $ANTHROPIC_API_KEY" \
1103 -H "anthropic-version: 2023-06-01" \
1103 -H "anthropic-version: 2026-10-21" \
11041104 -H "anthropic-beta: managed-agents-2026-04-01" \
11051105 -H "content-type: application/json" \
11061106 -d '{
from line 1266
12661266 # Interrupt with a new direction:
12671267 curl --fail-with-body -sS "https://api.anthropic.com/v1/sessions/$SESSION_ID/events?beta=true" \
12681268 -H "x-api-key: $ANTHROPIC_API_KEY" \
1269 -H "anthropic-version: 2023-06-01" \
1269 -H "anthropic-version: 2026-10-21" \
12701270 -H "anthropic-beta: managed-agents-2026-04-01" \
12711271 -H "content-type: application/json" \
12721272 -d '{
from line 1446
14461446 ```bash cURL
14471447 curl --fail-with-body -sS "https://api.anthropic.com/v1/sessions/$SESSION_ID/events?beta=true" \
14481448 -H "x-api-key: $ANTHROPIC_API_KEY" \
1449 -H "anthropic-version: 2023-06-01" \
1449 -H "anthropic-version: 2026-10-21" \
14501450 -H "anthropic-beta: managed-agents-2026-04-01" \
14511451 -H "content-type: application/json"
14521452 ```
from line 1513
15131513 ```bash cURL
15141514 curl --fail-with-body -sS "https://api.anthropic.com/v1/sessions/$SESSION_ID/events?beta=true&types[]=agent.tool_use&types[]=agent.tool_result" \
15151515 -H "x-api-key: $ANTHROPIC_API_KEY" \
1516 -H "anthropic-version: 2023-06-01" \
1516 -H "anthropic-version: 2026-10-21" \
15171517 -H "anthropic-beta: managed-agents-2026-04-01"
15181518 ```
15191519
from line 1612
16121612 ```bash cURL
16131613 curl --fail-with-body -sS "https://api.anthropic.com/v1/sessions/$SESSION_ID/events?beta=true" \
16141614 -H "x-api-key: $ANTHROPIC_API_KEY" \
1615 -H "anthropic-version: 2023-06-01" \
1615 -H "anthropic-version: 2026-10-21" \
16161616 -H "anthropic-beta: managed-agents-2026-04-01" \
16171617 -H "content-type: application/json" \
16181618 -d '{
No line in this hunk matches that.