Fires when a contact of the workspace sends an SMS to a phone number the workspace rents (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_check in features the number becomes a contact (source: API, no consent), contact.created fires, 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 status UNSUBSCRIBED and 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 without capability_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 also CANCEL, 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 raises consent.updated instead (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 type ACKNOWLEDGEMENT, at most once per person and day. Where the agent’s connection reports it (agents with read_receipts in features), 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 HELP itself and raises no event. Without either, HELP is passed on as an ordinary message.
  • Other keywords. The workspace’s erase keyword raises no event. On RCS, START changes 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).
The opt-out is per workspace: a STOP to one agent stops marketing from every agent and number of that workspace, not from other workspaces of your organisation.

Payload

An RCS reply (a tapped suggested reply) looks like this:
Deduplicate on the envelope 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.
string | null
Identifier of the inbound message in the contact’s conversation. null for an SMS to a number that has no SMS sender attached.
string | null
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.
string
sms or rcs.
string
The contact who sent the message.
string
The contact’s phone number in E.164 format.
string
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.
string
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.
string
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.
string
ISO 8601 time the message arrived.
object | null
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.