Events changedapi/beta/sessions/events
Nearest release: v2.1.309, published 2 hours after 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+6added
Lines−6removed
From line
3,201
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits26to this page, all time
The whole hunk
from line 3201, old and new numbered
/
This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.
from line 3201
32013201
32023202```bash
32033203curl https://api.anthropic.com/v1/sessions/$SESSION_ID/events \
3204 -H 'anthropic-version: 2023-06-01' \
3204 -H 'anthropic-version: 2026-10-21' \
32053205 -H 'anthropic-beta: managed-agents-2026-04-01' \
3206 -H "X-Api-Key: $ANTHROPIC_API_KEY"
3206 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
32073207```
32083208
32093209#### Response (200)
from line 4187
41874187```bash
41884188curl https://api.anthropic.com/v1/sessions/$SESSION_ID/events \
41894189 -H 'Content-Type: application/json' \
4190 -H 'anthropic-version: 2023-06-01' \
4190 -H 'anthropic-version: 2026-10-21' \
41914191 -H 'anthropic-beta: managed-agents-2026-04-01' \
4192 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
4192 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
41934193 -d '{
41944194 "events": [
41954195 {
from line 7349
73497349
73507350```bash
73517351curl https://api.anthropic.com/v1/sessions/$SESSION_ID/events/stream \
7352 -H 'anthropic-version: 2023-06-01' \
7352 -H 'anthropic-version: 2026-10-21' \
73537353 -H 'anthropic-beta: managed-agents-2026-04-01' \
7354 -H "X-Api-Key: $ANTHROPIC_API_KEY"
7354 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
73557355```
73567356
73577357#### Response (200)
from line 8586
85868586
85878587 - `BetaManagedAgentsAgentToolEvaluationAlwaysAllow object`
85888588
8589 The resolved permission_policy was always_allow; accompanies evaluated_permission
8589 The resolved permission_policy was always_allow;
No line in this hunk matches that.