Anthropic Events API
User messages and tool results sent to a session
Operations 2
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
POST
/v1/sessions/{session_id}/events
Send user messages or interrupts to a session · Anthropic Send Session Events
#
Ask an LLM
“How do I send a user message or tool result to a running agent session?”
“Can I interrupt an agent session that's in the middle of working?”
Tell an agent
Send events {events} to session {session_id}.
Interrupt session {session_id} with events {events}.
GET
/v1/sessions/{session_id}/stream
Stream a session's agent activity · Anthropic Stream Session Events
#
Ask an LLM
“How can I watch an agent's messages and tool calls live as a session runs?”
“Does the session stream include status changes as well as assistant output?”
Tell an agent
Stream the activity of session {session_id}.
Follow tool calls and replies from session {session_id} as server-sent events.
Documentation
Documentation
https://docs.anthropic.com/en/api/admin-api/users/get-user
Documentation
https://docs.anthropic.com/en/api/prompt-tools-generate
Documentation
https://docs.anthropic.com/en/api/usage-cost-api
Documentation
https://platform.claude.com/docs/en/managed-agents/overview
Documentation
https://platform.claude.com/docs/en/managed-agents/agent-setup
Documentation
https://platform.claude.com/docs/en/managed-agents/sessions
Documentation
https://platform.claude.com/docs/en/managed-agents/environments