channel: "sms", once SMS is open — closed beta), or when a person writes to one of the workspace’s RCS agents — a typed text or a tapped suggested reply (channel: "rcs").
Not every inbound message raises this event:
- Not a contact. Texts from senders that are not contacts of the workspace (short codes, sender names such as verification services, unknown numbers) appear in the number’s inbox only. An RCS message from a number that is not a contact yet: on agents with
capability_checkinfeaturesthe number becomes a contact (source: API, no consent),contact.createdfires, and then this event. On other agents it is not added to your workspace and raises no event. A STOP (or “Unsubscribe” chosen in the messaging app) from such a number is kept, though: the number becomes a contact with statusUNSUBSCRIBEDand its SMS and RCS consent revoked, without a confirmation message. Every number you send to through the API becomes a contact, so this concerns people who write first: on agents withoutcapability_check, create the contact (for example when someone scans your QR code) if you want to receive what they write. - STOP. An opt-out keyword typed as the whole message (
STOP,STOPP,ABMELDEN,UNSUBSCRIBE, and alsoCANCEL,END,ENDE,QUIT— the full list is in Receive replies), or a tapped suggested reply labelled with an unmistakable opt-out word (Stop,Abmelden,Unsubscribe…), is handled as an opt-out and raisesconsent.updatedinstead (SMS and RCS marketing consent revoked together;source: "sms"or"rcs"). On RCS the agent answers with one short confirmation in the workspace’s language — e.g. “Erledigt: schreibt dir hier nicht mehr. Nur Sicherheitscodes, die du selbst anforderst, kommen noch an.” — sent as traffic typeACKNOWLEDGEMENT, at most once per person and day. Where the agent’s connection reports it (agents withread_receiptsinfeatures), choosing “Unsubscribe” in the phone’s messaging app revokes consent the same way, without a confirmation message. - HELP. When the workspace has an info text (Settings › SMS) — or, on RCS, when the agent’s profile names a support contact — the platform answers
HELPitself and raises no event. Without either,HELPis passed on as an ordinary message. - Other keywords. The workspace’s erase keyword raises no event. On RCS,
STARTchanges nothing and raises no event either. - Taps on action buttons. Tapping a card button that opens a link, dials or shows a location is not a reply and raises no event (a tracked link can raise
message.clicked).
Payload
id, and — because in rare cases the same reply is announced twice with two ids — also on data.message_id. Answer 200 first and run your reply logic in the background; a reply your handler sends should use the envelope id as its Idempotency-Key.
Identifier of the inbound message in the contact’s conversation.
null for an SMS to a number that has no SMS sender attached.The SMS sender that owns the number, or the RCS agent the contact wrote to (in
ch_… form; to carries its agent_id). null for an SMS to a number that has no SMS sender attached.SMS: your number the message was sent to, in E.164 format. RCS: the
agent_id of the agent the contact wrote to (RCS has no number). For agents with read_receipts in features the network names that agent with every message. For other agents it doesn’t always: a reply is then assigned to the agent that most recently wrote to that phone.The message text. Long messages arrive as one text (an RCS text is cut at 4,000 characters). For a tapped suggested reply: the label of the chip. When the contact shared a location or sent a file by RCS, a short placeholder line (
[Location shared], [File received]) — the coordinates and the file itself are not passed on.RCS only, and only when the contact tapped a suggested reply: the
postback_data you set on that suggestion, exactly as you sent it — an opaque string of up to 2,048 characters. Arowana neither decodes nor checks it: if you sent base64, decode it yourself; if you sent a plain value like remind_sale, that is what comes back. Not present otherwise. Don’t put personal data in it — it travels to the phone and back.Set when the message answered a campaign that was waiting for this contact’s reply (a “Wait for a reply” step):
message_id is the question that was sent, campaign_id the campaign and step_id the waiting step. null when no campaign was waiting — the message is then an ordinary inbound text.A message answers at most one waiting step: the question asked most recently from that number (on RCS: by that agent). START and an answered HELP are never passed on as an answer.