RCSZilla Version 1.0

Eingehende Nachricht übermitteln

Integrationsleitfaden für mobile App

Eingehende Nachricht übermitteln

POST /?endpoint=submit_reply

Übermittelt eine vom Gerät empfangene eingehende SMS oder WhatsApp-Nachricht an den Server-Posteingang.

Anfragekörper

FeldTypBeschreibung
from_phonestring erforderlich Telefonnummer des Absenders (Ziffern und + erlaubt).
messagestring erforderlich Nachrichtentext.
channelstring optional sms oder whatsapp. Standard sms.

Beispielanfrage

cURL
curl -X POST "https://api.rcszilla.com/?endpoint=submit_reply" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR-DEVICE-TOKEN" \
  -d '{
    "from_phone": "+40712345678",
    "channel": "sms",
    "message": "YES please send me more info"
  }'

Antwort

{
  "success": true,
  "message": "Reply received",
  "id": 209,
  "reply": null,
  "reply_queue_id": null
}
{
  "success": true,
  "message": "Reply received",
  "id": 209,
  "reply": "Thanks for your message! We will get back to you shortly.",
  "reply_queue_id": 315
}
*
Wenn reply in der Antwort nicht null ist, soll die App diesen Text an from_phone auf demselben Kanal senden und dann mark_sent mit reply_queue_id aufrufen.

Auto-reply Flow

  1. App receives inbound SMS/WhatsApp.
  2. App calls submit_reply.
  3. Server matches message against auto-reply rules.
  4. If matched �server queues the reply and returns "reply" text inline.
  5. App sends the reply text directly to the sender (no second poll needed).
  6. App calls mark_sent with reply_queue_id to confirm delivery.