Example
bash
curl https://api.anthropic.com/v1/sessions/$SESSION_ID \
-X DELETE \
-H 'anthropic-version: 2023-06-01' \
-H 'anthropic-beta: managed-agents-2026-04-01' \
-H "X-Api-Key: $ANTHROPIC_API_KEY"Response (200)
json
{
"id": "sesn_011CZkZAtmR3yMPDzynEDxu7",
"type": "session_deleted"
}Archive Session
POST /v1/sessions/\{session_id\}/archive
Archive Session