{ "id": "msg_507f1f77bcf86cd799439011", "text": "I understand you want to dispute a charge from May 30th. However, our dispute policy allows disputes only within 8 days of the transaction date. Since today is June 9th, that transaction is 10 days old and falls outside our dispute window.", "followup_suggestions": [ "What other options do I have?", "Can I speak to a supervisor?", "Show me my recent transactions" ], "trace_info": { "intent": "dispute_charge", "entities": { "transaction_date": "2026-05-30", "days_since_transaction": 10 }, "rules_evaluated": [ { "rule_id": "rule_dispute_window", "predicate": "today - txn.date <= 8 days", "result": "blocked", "reason": "Transaction exceeds 8-day dispute window" } ], "parameters_extracted": ["transaction_date"], "tools_invoked": [] }}
Messaging API
Send Messages
Send messages to Apollo-1 agents and receive complete responses with traces.
Send a message to an Apollo-1 agent and receive the complete response, optionally including the symbolic reasoning trace.
cURL
curl -X POST "https://api.aui.io/v1/messaging/messages?include_trace=true" \ -H "Content-Type: application/json" \ -H "x-aui-api-key: your-api-key" \ -d '{ "type": "message", "task_id": "task_68e78d0dc5a4b19a030d03d6", "text": "I want to dispute a charge from May 30th" }'
{ "id": "msg_507f1f77bcf86cd799439011", "text": "I understand you want to dispute a charge from May 30th. However, our dispute policy allows disputes only within 8 days of the transaction date. Since today is June 9th, that transaction is 10 days old and falls outside our dispute window.", "followup_suggestions": [ "What other options do I have?", "Can I speak to a supervisor?", "Show me my recent transactions" ], "trace_info": { "intent": "dispute_charge", "entities": { "transaction_date": "2026-05-30", "days_since_transaction": 10 }, "rules_evaluated": [ { "rule_id": "rule_dispute_window", "predicate": "today - txn.date <= 8 days", "result": "blocked", "reason": "Transaction exceeds 8-day dispute window" } ], "parameters_extracted": ["transaction_date"], "tools_invoked": [] }}
The agent’s response in the regenerated branch (same structure as send-message response).
{ "regenerated_task_id": "task_new_abc789", "message": { "id": "msg_new_123", "text": "I can help you dispute that charge from June 1st. Since that was 8 days ago, it falls within our dispute window. Let me start the process.", "followup_suggestions": [ "What's the dispute amount?", "Why are you disputing this charge?", "Show me the transaction details" ], "trace_info": { "intent": "dispute_charge", "entities": { "transaction_date": "2026-06-01", "days_since_transaction": 8 }, "rules_evaluated": [ { "rule_id": "rule_dispute_window", "predicate": "today - txn.date <= 8 days", "result": "allowed", "reason": "Transaction is within 8-day dispute window" } ], "tools_invoked": ["start_dispute_process"] } }}