Skip to main content
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

Base URL: http://127.0.0.1:8083

Endpoints

GET /a2u/info

Get A2U server information and available event types.
Response:

POST /a2u/subscribe

Create a subscription to an event stream.
stream
string
default:"events"
Stream name to subscribe to
filters
array
Optional list of event types to filter
Response:

GET /a2u/events/

Subscribe and stream events via SSE.
stream_name
string
default:"events"
Stream name to subscribe to
SSE Events:

POST /a2u/unsubscribe

Unsubscribe from an event stream.
subscription_id
string
required
Subscription ID to unsubscribe
Response:

GET /a2u/health

A2U subsystem health check.
Response:

Event Types

Errors

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