RCSZilla Versiunea 1.0

Înregistrați mesaj trimis

Ghid de integrare aplicație mobilă

Înregistrați mesaj trimis

POST /?endpoint=log_outgoing

Înregistrează un mesaj pe care aplicația l-a trimis direct (de exemplu un răspuns WhatsApp generat de AI) astfel încât să apară în outbox-ul panoului web fără a trece prin coadă.

*
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.

Corp cerere

CâmpTipDescriere
to_phonestring obligatoriu Numărul de telefon al destinatarului.
messagestring obligatoriu Textul mesajului.
channelstring opțional sms sau whatsapp. Implicit whatsapp.

Exemplu cerere

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."
  }'

Răspuns

JSON200 OK
{
  "success": true,
  "message": "Outgoing message logged",
  "id": 320
}