Replies are pushed to your webhook endpoint as
message.received. They are also stored as inbound messages: GET /v1/messages?direction=INBOUND lists them.How replies work
- The person types a reply or taps a reply chip.
- The network reports it to Arowana; Arowana stores it on the contact’s conversation and records the messages before it as delivered.
- Keywords are handled first (see below). Anything else is a reply: Arowana fires
message.received(channel: "rcs"). - For the next 24 hours after their latest message you can answer with
message_type: "CONVERSATION". On a conversational agent the reply also opens a billing session — see Sessions.
Webhook event: message.received
Sent for a typed reply and for a suggested-reply tap from a person who writes to the agent.
- A tap on an action chip (open a link, dial, show a map, add to calendar) raises no event — it only confirms that the message arrived.
- A shared location or a file arrives as a short placeholder text —
[Location shared]or[File received]— without coordinates or the file. - A message from a number that is no contact of the agent’s workspace yet (someone who writes to the agent first): on agents with
capability_checkinfeaturesthe number becomes a contact —source: API, no consent —contact.createdfires, thenmessage.received. You can answer inside the conversation; marketing still needs the person’s consent. On other agents such a message is not stored in your workspace and raises no event.
Free-text reply
to is the agent_id of the agent the reply belongs to. If several agents of your workspace wrote to the same person and the network’s report doesn’t name the agent, the reply is given to the agent that wrote to them last. in_reply_to is set when the reply answered a campaign’s “Wait for a reply” step.
Suggested reply tap
text is the label of the chip; postback_data is exactly the string you set on the chip, up to 2,048 characters — Arowana passes it through and decodes nothing. If you put a base64 value in, decode it yourself; otherwise match on the raw string. For chips built in the dashboard, the postback is the chip’s label. The field is only present for a tap.
Keywords: STOP and HELP
A message that consists only of a keyword is handled by Arowana and raises nomessage.received:
A keyword counts when it is the whole message, in any case, with punctuation or emoji around it ignored (
Stop!, cancel.). Typed alone, CANCEL, END, ENDE, BEENDEN and QUIT are opt-outs — don’t ask people to reply with one of them (“reply CANCEL to cancel your booking”); offer a suggested reply instead, or another word.
A tapped suggested reply counts as the keyword when its label is an unmistakable opt-out word — Stop, Stopp, Abmelden, Unsubscribe, Opt out — whatever its postback_data says; the tap then raises no message.received. A tapped chip labelled Cancel, Ende, Beenden, Quit or Stoppen stays an ordinary answer — only typed, these words are opt-outs. START, HELP and erase words are never matched from a tap. The “unsubscribe” choice some messaging apps offer in the conversation menu has the same effect as STOP, without a confirmation message. A STOP or “unsubscribe” from a number that isn’t a contact of the workspace yet is kept as well: the number becomes a contact with status UNSUBSCRIBED and its SMS and RCS consent revoked, so a later import, sync or API send finds the opt-out; no confirmation is sent. After an opt-out, only AUTHENTICATION messages can still be sent to the person, ACKNOWLEDGEMENT only as the one answer to their keyword, and SERVICEREQUEST only inside a conversation they start afterwards — see Consent and opt-outs. The confirmation and the HELP answer go out as ACKNOWLEDGEMENT and are charged like any RCS message. They are the answer to that keyword: an ACKNOWLEDGEMENT of your own after Arowana’s answer is refused (422 recipient_suppressed, reason: no_keyword_to_answer). After a START, which Arowana doesn’t answer, you may send one ACKNOWLEDGEMENT within 24 hours.
Answer within 24 hours
message_type: "CONVERSATION" is accepted within 24 hours of the person’s latest message to this agent (keywords don’t count). It needs no marketing consent — you are answering someone who wrote in — but an opt-out still blocks it. Outside the window the answer is 422 no_active_session.
CONVERSATION is accepted on TRANSACTIONAL and MULTI_USE agents. On PROMOTIONAL and OTP agents answer with MESSAGE — inside an open session it is free all the same.
Sessions and billing
Sessions are about price, not about what you may send:- On an agent whose
billing_categoryisCONVERSATIONAL, a reply within 24 hours of a message of yours opens a session. The message the person answered is charged the session price instead of its message price — whether you answer or not — and everything you send that contact through this agent in the 24 hours after that reply is included. Later replies don’t extend the session. - On a
NON_CONVERSATIONALagent there are no sessions: a reply changes no price, and every message is charged on its own. - Inbound messages are free. A typed text or a tapped reply chip counts as a reply; an action tap and the keywords don’t.
hold_amount: 0 and billing_units: 0. See Billing (RCS) for the full rules.
Handling inbound in your app
Verify the signature, store the event under itsid, answer 200 at once, and do the work in a background job that marks the event done only when it succeeded. Your endpoint has 5 seconds, and a delivery that fails is retried with the same event id — see Retries.
event.id on to the code that answers, and use it in the Idempotency-Key of the message it sends (as above).
Send a message
Request body, consent rules, and errors.
Webhooks
Webhook setup, signature verification, and full event catalogue.