Ausgehende Nachricht protokollieren
Integrationsleitfaden für mobile App
Ausgehende Nachricht protokollieren
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
| Feld | Typ | Beschreibung | |
|---|---|---|---|
| to_phone | string | erforderlich | Telefonnummer des Empfängers. |
| message | string | erforderlich | Nachrichtentext. |
| channel | string | 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
}