Skip to main content

Outgoing Messages

Webhook 

Outgoing messages webhooks are only relevant to coexistence WhatsApp accounts (hook "outgoing"). They show outgoing messages sent by the user themselves from their mobile phone WhatsApp Business app (or WhatsApp Web), outside of the API. This is only relevant to let you know the user sent a message, in case you want to show it as an outgoing message in your platform.

  • Note: any outgoing message sent from the API will not trigger an outgoing message webhook.
  • Outgoing messages webhooks are turned on by default.
  • Note 2: outgoing messages to groups are not supported.
  • The acknowledges of these messages arrive as Acknowledge webhooks (hook "update") with the same unique.

Settings:

SettingValue
URLYour URL — set it with Set Webhook
MethodJSON via POST

With every outgoing message, you will get the following:

{
"status": "OK",
"hook": "outgoing",
"unique": "HBgMOTcyNTAxMjM0NTY3FQIAEhgUOEY0QzE2N0E5RDNCMDA5RkQ1QjIA",
"from": "972771234567",
"to": "972501234567",
"type": "text",
"body": "Sure, we are open until 20:00",
"caption": "",
"isForwarded": false,
"timestamp": "1789900120",
"timestampMS": 102938,
"media": false,
"quote": false,
"quoteUnique": false
}

Response explained​

ParameterDescription / Example
status"OK" always.
hook"outgoing" always, for a new outgoing message.
uniqueUnique ID for the outgoing message. Its acknowledges arrive with the same unique.
fromYour WhatsApp account.
toThe end user WhatsApp account that received the message.
typeMessage type. Can be one of the following: text, image, audio, video, location, ptt, document, button, contacts, list, reaction.
bodyThe content of the 'body' depends on the 'type' of the message — see the table below.
captionThe content of the 'caption' depends on the 'type' of the message — see the table below.
isForwardedShows if the outgoing message is forwarded — true or false.
timestampTime stamp of the outgoing message (Unix time, in seconds, as a string).
timestampMSThe sub-second part of the timestamp (of the time we processed the message, in microseconds), in case you need it.
mediaIf this message contains any media file, it will be true; otherwise false.
quoteIf this message is a quoted message, it will be true; otherwise false.
quoteUniqueIn case the message is quoted (it means that the user replied to an incoming message), this will be the original message unique ID. If the message is not quoted, this will be false.

body by message type​

TypeThe data that will come
textOutgoing text message
imageLink
audioLink
videoLink
locationlat,lng
pttLink
documentLink
buttonButton text
contactsPhone number
listThe selection text
reactionThe emoji

You must download the link files to your server: we delete all files within 7 days.

caption by message type​

TypeThe data that will come
textNothing, empty
imageCaption text with the image
audioNothing, empty
videoCaption text with the video
locationThe name and address of the place (name - address), if any
pttNothing, empty
documentCaption text with the document
buttonNothing, empty
contactsName of the contact
listThe item list ID that was selected
reactionNothing, empty

Webhook payload

​

Your response​

Received. Answer with any 2xx status (200, 201, 204 …) — we wait up to 5 seconds to connect and up to 15 seconds for your answer. The body of your answer is ignored.