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.
string
default:"events"
Stream name to subscribe to
array
Optional list of event types to filter
Response:

GET /a2u/events/

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

POST /a2u/unsubscribe

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

GET /a2u/health

A2U subsystem health check.
Auth required (since PraisonAI #3771). /a2u/health now goes through the same _authenticate_request path as every other A2U route. Unauthenticated probes get 401; use the same bearer/API-key auth you use for the other endpoints on this page.
Response:

Event Types

Errors

The 429 applies to POST /a2u/subscribe and GET /a2u/events/{stream_name} when the subscription cap is reached; the 503 applies to any /a2u/* route on a non-loopback bind with no token. See Server: A2U → Security & Limits.

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