RCSZilla Version 1.0

Ausgehende Nachricht protokollieren

Integrationsleitfaden für mobile App

Ausgehende Nachricht protokollieren

POST /?endpoint=log_outgoing

Protokolliert eine Nachricht, die die App direkt gesendet hat, damit sie in der Ausgangsnachrichtenbox des Web-Panels erscheint ohne die Warteschlange zu durchlaufen.

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

Anfragekörper

FeldTypBeschreibung
to_phonestring erforderlich Telefonnummer des Empfängers.
messagestring erforderlich Nachrichtentext.
channelstring optional sms oder whatsapp. Standard whatsapp.

Beispielanfrage

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

Antwort

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