API Endpoints
A2U API
Agent-to-User event streaming API endpoints
GET
A2U API
A2U API
The A2U (Agent-to-User) API provides Server-Sent Events (SSE) streaming for real-time agent-to-user communication.Overview
A2U enables real-time event streaming from agents to users, including:- Agent status updates
- Thinking/processing indicators
- Tool call notifications
- Response streaming
- Error notifications
When to Use
- Real-time UI: Update UI as agent processes
- Progress tracking: Show agent thinking/tool usage
- Streaming responses: Display responses as they’re generated
Base URL + Playground
http://127.0.0.1:8083
Endpoints
GET /a2u/info
Get A2U server information and available event types.POST /a2u/subscribe
Create a subscription to an event stream.Stream name to subscribe to
Optional list of event types to filter
GET /a2u/events/
Subscribe and stream events via SSE.Stream name to subscribe to
POST /a2u/unsubscribe
Unsubscribe from an event stream.Subscription ID to unsubscribe
GET /a2u/health
A2U subsystem health check.Event Types
| Event | Description |
|---|---|
agent.started | Agent started processing |
agent.thinking | Agent is thinking/processing |
agent.tool_call | Agent called a tool |
agent.response | Agent generated a response |
agent.completed | Agent completed task |
agent.error | Agent encountered an error |
Errors
| Status | Description |
|---|---|
| 200 | Success |
| 400 | Invalid request |
| 404 | Subscription not found |
| 500 | Server error |
CLI Equivalent
Python SDK
Notes
- Events are delivered via Server-Sent Events (SSE)
- Subscriptions auto-cleanup on disconnect
- Use filters to reduce event volume
- Events include timestamps and unique IDs
Related
- A2A API - Agent-to-Agent protocol
- Agents API - Agent invocation
A2U API

