Skip to main content
FlowIQ sends a POST request to your registered webhook URL whenever an event occurs. Each payload includes an event_type field so you can route events accordingly.
Subscribers registered as type all receive every event. Those registered for a specific type (e.g. message_received) only receive that one.

Platforms

Webhooks cover WhatsApp (messages and calls), Instagram messages, Messenger messages and Web chat conversations. Subscription and ticket events have their own pages: Subscription webhooks and Ticket Events. When registering a webhook in the FlowIQ dashboard (or with platform on Create Webhook), select the platform you want to listen to. Each platform fires its own set of events described below. To authenticate deliveries to your server or verify that they came from FlowIQ, see Delivery. Add Messaging Webhook modal with Platform and Event Type selectors

WhatsApp Events

message_received

Fired when a user sends you a WhatsApp message.
  • whatsapp_id is the contact’s phone number with country code (e.g. 27834321234)
  • media_type / media_url / file_name are populated for image, video, audio, and document messages
  • location_data is { latitude, longitude, name, address } for location messages
  • reply_context_id is the wamid of the message being replied to
  • tapped_reply is set when the customer taps a list row, a reply button or a template quick-reply button: { type, id, title, description }. type is list_reply, button_reply or template_button; id is the row or button id you sent with Send Interactive List or Send Interactive Buttons (for a template button, its payload); message holds the visible title. null for every other message.
  • reaction / reacted_to_message_id are only present when message_type is reaction. reaction is the emoji (e.g. 👍) and reacted_to_message_id is the wamid of the message that was reacted to
A tap on a list row arrives like this. Match on tapped_reply.id, not on the title: two rows can share a title, and reply_context_id tells you which list it came from.

message_sent (WhatsApp)

Fired when Meta confirms your outbound message was sent (lightweight receipt).

sent_message

Also fired on sent, but with the full message record so you have the message content.

message_delivered


message_read


message_failed

Fired for failed, undelivered, and warning statuses.

call

Fired for WhatsApp calls on your number (WhatsApp Business Calling): a call rings, is answered, declined or ends, a call you started changes state, or a customer answers your request for call permission. FlowIQ sends it after it has matched the caller to a contact. Use it with the Calling API to answer calls from your own server.
  • call.direction is inbound (the customer called) or outbound (you called); times are ISO 8601
  • answered_by on a ringing incoming call says who will pick up: api (your server; set with Update Calling Settings), flowiq_ai or inbox
  • contact.id is the FlowIQ contact; FlowIQ creates one for a first-time caller
  • permission = { "response": "accept" | "reject", "is_permanent", "expires_at", "response_source", "from", "message_id", "timestamp" }
  • object and entry are WhatsApp’s own payload, unchanged; see WhatsApp’s Calling webhooks for every field
  • phone_number_id is your WhatsApp number’s phone number ID

Instagram Events

Register with platform: "instagram" on Create Webhook. Events describe Instagram activity stored in the FlowIQ inbox, including staff, API, automated and native-app messages when recorded there. Instagram does not emit call. Delivery, read and failure information depends on what the connection reports and what FlowIQ records. A successful send alone does not imply delivery. Subscription changes apply to future events; history is not replayed.

Identifiers

Incoming message

message_received includes the content and media fields. Comment and story identifiers are populated when available. Text messages have message_type: "text" and null media fields.

Outgoing content and status

sent_message uses the same content fields as the incoming example, with an outgoing sender_type and its own event_id. message_sent, message_delivered, message_read and message_failed carry status instead of the message and media fields. They refer to the same message IDs. For example:

Customer reactions

A customer reaction is delivered as message_received with message_type: "reaction". Its message IDs identify the target message, and its event_id includes the reaction timestamp, actor, action and emoji. Reactions made by the connected business account do not generate incoming customer events.
Use the shared delivery headers and signature verification. Acknowledge quickly and process asynchronously. Delivery is best effort, without a durable retry queue.

Messenger Events

Register with platform: "messenger" on Create Webhook. Events describe Facebook Messenger activity stored in the FlowIQ inbox, including staff, API, automated and native-app messages when recorded there, whichever way your Page is connected. Messenger does not emit call or reaction events. Delivery, read and failure information depends on what the connection reports and what FlowIQ records. A successful send alone does not imply delivery. Subscription changes apply to future events; history is not replayed.

Identifiers

Incoming message

message_received includes the content and media fields. Text messages have message_type: "text" and null media fields; attachments carry media_type (image, video, audio or file) and media_url.

Outgoing content and status

sent_message uses the same content fields as the incoming example, with an outgoing sender_type and its own event_id. message_sent, message_delivered, message_read and message_failed carry status instead of the message and media fields. They refer to the same message IDs. For example:

Web Events

Web webhooks fire for conversations that happen through the FlowIQ web chat widget. Register them by selecting Web as the platform when adding a webhook in the FlowIQ dashboard. Add Messaging Webhook modal showing Web platform selected

message_received

Fired when a web visitor sends a message (sender_type: "user-web").

sent_message

Fired when a human agent or AI bot sends a web message (sender_type: "human-web" or "bot-web").
  • sender_type will be "human-web" for messages sent by a support agent, or "bot-web" for AI-generated replies.
  • media_type / media_url / media_file_name are populated when the message contains a file or image.
  • more_data contains any additional structured data attached to the message.

Delivery

Each event is sent as a single POST with a JSON body. Register webhooks with Create Webhook or in the FlowIQ dashboard.

Headers

Non-ASCII characters (emoji, accented letters) are sent as JSON \uXXXX escapes, so the body is plain ASCII. Any JSON parser turns them back into the original characters. Every body carries event_type and event_id.

Verifying signatures

If you set a secret, compute an HMAC-SHA256 of the raw request body with that secret and compare it to the X-Flowiq-Signature header. Use the bytes exactly as received: parsing and re-serialising the JSON changes them and the signature won’t match.

Delivery behaviour

  • Every event is recorded before the first attempt and kept in the delivery log, so an event is never lost because your server was down.
  • FlowIQ waits up to 10 seconds for your server. Any 2xx counts as delivered; anything else, a timeout or a connection error counts as a failed attempt. Respond with a 2xx quickly and do slow work in the background.
  • Failed attempts are retried with growing gaps: 2 s, 6 s, 1 min, 5 min, 30 min, 2 h, 6 h, 24 h (8 attempts in all, about 33 hours). After the last one the delivery is dead and stays in the log for 30 days; you can retry it by hand. The first three attempts of a call event run within 10 seconds, because a call rings for under a minute.
  • Retries resend the identical body with the same event_id. Deduplicate on event_id (or X-Flowiq-Event-Id), since a slow 2xx from you can be retried.
  • If the configured authentication can’t be built (for example your OAuth token endpoint is down), the attempt fails like any other and is retried; nothing is sent without credentials.
  • Events can arrive out of order. Use timestamp and the platform message ID to reconcile. For Instagram, group updates by message_id or instagram_message_id.
  • Webhook URLs must be https://.

Delivery log

Every delivery, with each attempt’s result, is readable through the API and can be sent again: Delivered rows are kept for 7 days, dead ones for 30.