Log Outgoing Message
Mobile App Integration Guide
Log Outgoing Message
Logs a message that the app sent directly (e.g. an AI-generated WhatsApp reply via Gemini on-device) so it appears in the web panel outbox without going through the queue.
This is used exclusively by the on-device Gemini AI feature when it generates and sends a WhatsApp reply autonomously. For regular queue-based messages, use the standard
mark_sent flow.
Request Body
| Field | Type | Description | |
|---|---|---|---|
| to_phone | string | required | Recipient phone number. |
| message | string | required | Message text. |
| channel | string | optional | sms or whatsapp. Defaults to whatsapp. |
Example Request
cURL
curl -X POST "https://api.rcszilla.com/?endpoint=log_outgoing" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR-DEVICE-TOKEN" \
-d '{
"to_phone": "+40712345678",
"channel": "whatsapp",
"message": "Hi! This is an AI-generated reply."
}'
Response
JSON200 OK
{
"success": true,
"message": "Outgoing message logged",
"id": 320
}