v1Stable
A task represents a conversation thread with an Apollo-1 agent. Create a task before sending messages, and use the task ID to scope all interactions within that thread.
Create a Task
Creates a new conversation thread and returns a welcome message from the agent.cURL
POST /v1/messaging/tasks
Base URL: https://api.aui.io
Headers
Request Body
string
required
The agent management ID. Apollo resolves the network and active version from this.
string
required
Unique identifier for the user starting the conversation.
string
default:"web-widget"
Origin of the conversation. Common values:
web-widget, api, third-party.string
Pin the thread to a specific draft version. If omitted, uses the agent’s active version.
string
Pin the thread to a specific revision tag (e.g.,
v8.14).Response
string
Unique task identifier. Use this as
task_id when sending messages.string
The user identifier provided in the request.
string
Auto-generated task title.
string
The agent’s initial greeting message.
array
AI-generated conversation starter suggestions.
Code Examples
Get Task Trace
Retrieve the complete reasoning trace for all interactions in a task.cURL
GET /v1/messaging/tasks/{task_id}/trace-info
Returns an array of interaction traces — one per message exchange in the thread. Each trace contains:
- Intent parsing results
- Entities resolved
- Rules evaluated
- Parameters extracted
- Tools invoked
- Decisions made
string
required
The task identifier.
Query Parameters
string
Optional. Fetch a single interaction’s trace instead of all traces.
Errors
401
422
