Skip to main content
v1Stable

Send a Message

Send a message to an Apollo-1 agent and receive the complete response, optionally including the symbolic reasoning trace.
cURL

POST /v1/messaging/messages

Base URL: https://api.aui.io

Headers

Query Parameters

boolean
default:"false"
Include the symbolic reasoning trace in the response. Adds trace_info field.

Request Body

string
required
Message type. Must be "message".
string
required
The task identifier (conversation thread).
string
required
The message content to send to the agent.
object
Optional agent configuration bundle to test local changes without deploying.

Response

Returns a message response object containing the agent’s reply.
string
Unique message identifier. This is also the interaction ID used for rerun and trace endpoints.
string
The agent’s response message.
array
AI-generated follow-up question suggestions.
object
Symbolic reasoning trace (only included when ?include_trace=true).

Code Examples


Rerun an Interaction

Regenerate a previous interaction with edited text or updated agent configuration.
cURL

POST /v1/messaging/messages/rerun

Headers

Query Parameters

boolean
default:"false"
Include trace info in the regenerated response.

Request Body

string
required
The original task identifier.
string
required
The message ID to regenerate (from a previous send-message response).
string
required
The message to replay (can be the original or edited).
string
required
The agent management ID.
string
Pin to a specific version for this rerun.
string
Pin to a specific revision tag.
object
Optional agent configuration bundle to test changes.

Response

string
The new task ID created for the regenerated conversation branch.
object
The agent’s response in the regenerated branch (same structure as send-message response).

Errors

401
422 - Invalid Bundle
422 - Missing Parameters