Log Outgoing Message

Mobile App Integration Guide

Log Outgoing Message

POST /?endpoint=log_outgoing

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

FieldTypeDescription
to_phonestring required Recipient phone number.
messagestring required Message text.
channelstring 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
}