v1Stable
The Messaging API lets you programmatically send messages to AUI agents, manage conversation tasks, and receive responses — either synchronously via REST or streamed in real time via WebSocket.
Base URL
| Region | Base URL |
|---|---|
| GCP | https://data-services.aui.io/api/ia-controller |
| Azure | https://azure.aui.io/api/ia-controller |
Authentication
All requests require thex-network-api-key header:
Core concepts
Tasks
A task represents a conversation session with an agent. Create a task to start a new conversation, then send messages within it.
Messages
Send a message to an agent within a task and receive the complete response, including product recommendations and follow-up suggestions.
WebSocket
Connect via WebSocket for real-time streaming responses. Text is streamed token-by-token as the agent generates it.
Errors
Consistent error format across all endpoints with status codes, descriptions, and dynamic contextual data.
How it works
- Create a task —
POST /api/v1/external/taskswith auser_idto start a conversation session. You receive a task ID and a welcome message. - Send messages — Use either the REST endpoint (
POST /api/v1/external/message) for complete responses or connect via WebSocket (wss://.../api/v1/external/session) for real-time streaming. - Handle responses — Responses include the agent’s text, product recommendations (if applicable), and AI-generated follow-up suggestions.
Quick start
cURL
