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
| Header | Required | Description |
|---|---|---|
x-aui-api-key | Yes | Your API key |
Content-Type | Yes | Must be application/json |
Query Parameters
Include the symbolic reasoning trace in the response. Adds
trace_info field.Request Body
Message type. Must be
"message".The task identifier (conversation thread).
The message content to send to the agent.
Optional agent configuration bundle to test local changes without deploying.
Response
Returns a message response object containing the agent’s reply.Unique message identifier. This is also the interaction ID used for rerun and trace endpoints.
The agent’s response message.
AI-generated follow-up question suggestions.
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
| Header | Required | Description |
|---|---|---|
x-aui-api-key | Yes | Your API key |
x-aui-user-id | Yes | User identifier (acting user for this rerun) |
Content-Type | Yes | Must be application/json |
Query Parameters
Include trace info in the regenerated response.
Request Body
The original task identifier.
The message ID to regenerate (from a previous send-message response).
The message to replay (can be the original or edited).
The agent management ID.
Pin to a specific version for this rerun.
Pin to a specific revision tag.
Optional agent configuration bundle to test changes.
Response
The new task ID created for the regenerated conversation branch.
The agent’s response in the regenerated branch (same structure as send-message response).
Errors
| Status | Description |
|---|---|
401 | Missing or invalid x-aui-api-key header |
422 | Validation error — invalid request parameters or agent bundle |
400 | Application error — may include moderation or processing details |
401
422 - Invalid Bundle
422 - Missing Parameters
