Receive message update notifications (customer webhook)

WEBHOOK/webhook/notifications

Webhook endpoint that receives notifications forwarded by our platform. This endpoint must be configured by the customer on their platform and will be triggered when an inbound message received, or DLR or another event. Each request will contain X-Msg-Api-Signature (base64(SHA512(body + verifyToken))).

Base URL
https://unifier-cpaas.sms.es

Request

Header parameters

X-Msg-Api-Signaturestringrequired

the signature for each request and contains the base64encode(sha512(payload, verifyToken))

Body

application/json
msgIdstringrequired
receiverstringrequired
senderstringrequired
channelstringrequired

Channel identifier as returned by the API (rbm is RCS Business Messaging).

Possible values: rbm, sms, telegram, whatsApp, email, instagram, facebook
messageBodyoneOf
Show child attributes
oneOf of:
FileMessage · object
fileMessageobject
Show child attributes
namestring
urlstring
fileTypestring
mimeTypestring
sizeinteger
playingLengthstring
thumbnailNamestring
thumbnailUrlstring
thumbnailMimeTypestring
thumbnailSizeinteger
TextMessage · object
textMessageobject
Show child attributes
contentstring
AudioMessage · object
audioMessageobject
Show child attributes
namestring
urlstring
mimeTypestring
sizeinteger
playingLengthinteger
PictureMessage · object
pictureMessageobject
Show child attributes
namestring
urlstring
mimeTypestring
sizeinteger
thumbnailNamestring
thumbnailUrlstring
thumbnailMimeTypestring
thumbnailSizeinteger
VideoMessage · object
videoMessageobject
Show child attributes
namestring
urlstring
mimeTypestring
sizeinteger
playingLengthinteger
thumbnailNamestring
thumbnailUrlstring
thumbnailMimeTypestring
thumbnailSizeinteger
LocationMessage · object
locationMessageobject
Show child attributes
latitudenumber
longitudenumber
textstring
urlstring
ContactMessage · object
contactMessageobject
Show child attributes
namestring
emailstring
addressstring
phonestring
firstNamestring
lastNamestring
countrystring
languagestring
TemplateMessage · object
namestringrequired

WhatsApp template name.

languageCodestringrequired
componentsobject[]required
Show child attributes
typestringrequired
subTypestring
indexintegerrequired
parametersoneOf[]required
Show child attributes
oneOf of:
ComponentParameterCurrency · object
codestringrequired

The ISO 4217 currency code (e.g. "USD", "EUR", "GBP", "TRY", "INR"). This tells WhatsApp which currency to format.

amount1000integerrequired

The monetary amount multiplied by 1000.

fallbackValuestring

A plain text string that is displayed if the client device cannot localize the currency.

ComponentParameterDateTime · object
fallbackValuestringrequired
ComponentParameterDocument · object
linkstringrequired
ComponentParameterImage · object
linkstringrequired
ComponentParameterVideo · object
linkstringrequired
EmailMessage · object
emailMessageobject
Show child attributes
subjectstring
htmlContentstring
textContentstring
CardMessage · object
layoutobject

Rich card layout

Show child attributes
cardOrientationstring
Possible values: HORIZONTAL, VERTICAL
imageAlignmentstring

Required if cardOrientation is HORIZONTAL.

Possible values: LEFT, RIGHT
cardWidthstring
Possible values: SMALL_WIDTH, MEDIUM_WIDTH
contentobjectrequired

Content of a card message

Show child attributes
mediaobject

Media elements

Show child attributes
urlstring (uri)required
thumbnailUrlstring (uri)
heightstring
Possible values: SHORT_HEIGHT, MEDIUM_HEIGHT, TALL_HEIGHT
titlestring
descriptionstringrequired
suggestionsobject[]required
Show child attributes
textstringrequired
postbackstring
replyWithobject
Show child attributes
postbackstringrequired
openUrlobject
Show child attributes
urlstring (uri)required
dialNumberobject
Show child attributes
numberstringrequired
composeMessageobject
Show child attributes
numberstringrequired
textstringrequired
showMapLocationobject
Show child attributes
latitudenumber (double)required
longitudenumber (double)required
labelstring
urlstring (uri)
createCalendarEventobject
Show child attributes
titlestringrequired
descriptionstring
startstring (date-time)
endstring (date-time)
SuggestionsMessage · object

Suggestions message payload

suggestionsobject[]required
Show child attributes
textstringrequired
postbackstring
replyWithobject
Show child attributes
postbackstringrequired
openUrlobject
Show child attributes
urlstring (uri)required
dialNumberobject
Show child attributes
numberstringrequired
composeMessageobject
Show child attributes
numberstringrequired
textstringrequired
showMapLocationobject
Show child attributes
latitudenumber (double)required
longitudenumber (double)required
labelstring
urlstring (uri)
createCalendarEventobject
Show child attributes
titlestringrequired
descriptionstring
startstring (date-time)
endstring (date-time)
CarouselMessage · object

Carousel message payload

textstring
layoutobject

Rich card layout

Show child attributes
cardOrientationstring
Possible values: HORIZONTAL, VERTICAL
imageAlignmentstring

Required if cardOrientation is HORIZONTAL.

Possible values: LEFT, RIGHT
cardWidthstring
Possible values: SMALL_WIDTH, MEDIUM_WIDTH
contentobject[]required
Show child attributes
mediaobject

Media elements

Show child attributes
urlstring (uri)required
thumbnailUrlstring (uri)
heightstring
Possible values: SHORT_HEIGHT, MEDIUM_HEIGHT, TALL_HEIGHT
titlestring
descriptionstringrequired
suggestionsobject[]required
Show child attributes
textstringrequired
postbackstring
replyWithobject
Show child attributes
postbackstringrequired
openUrlobject
Show child attributes
urlstring (uri)required
dialNumberobject
Show child attributes
numberstringrequired
composeMessageobject
Show child attributes
numberstringrequired
textstringrequired
showMapLocationobject
Show child attributes
latitudenumber (double)required
longitudenumber (double)required
labelstring
urlstring (uri)
createCalendarEventobject
Show child attributes
titlestringrequired
descriptionstring
startstring (date-time)
endstring (date-time)
messageStatusstring
Possible values: pending, dispatched, sent, rejected, failed, redispatched, delivered, displayed, undelivered, buffered, deleted
errorobject

Present when a message failed or triggered a fallback.

Show child attributes
codestring
messagestring
descriptionstring
fallbackMsgIdstring

On fallback events, the identifier of the next message that will be sent.

smsPartsobject

SMS part / DLR counters (receiveddlrs is the JSON field name in API responses).

Show child attributes
totalinteger
receiveddlrsinteger
contactobject
Show child attributes
firstNamestring
lastNamestring
namestring
avatarUrlstring
countrystring
citystring
addressstring
languagestring
phonestring
emailstring
birthdaystring
createdAtstring (date-time)required
eventstringrequired

Update event type (values emitted by the platform for notifications).

Possible values: message, isTyping, messageStatus, response, subscribed, unsubscribed, fallback

Request example

cURL · cURL
curl -L -X EVENT "https://unifier-cpaas.sms.es/webhook/notifications" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "X-Msg-Api-Signature: <X-Msg-Api-Signature>" \
  --data-raw '{
  "msgId": "string",
  "receiver": "string",
  "sender": "string",
  "channel": "rbm",
  "messageBody": {
    "fileMessage": {
      "name": "string",
      "url": "string",
      "fileType": "string",
      "mimeType": "string",
      "size": 0,
      "playingLength": "string",
      "thumbnailName": "string",
      "thumbnailUrl": "string",
      "thumbnailMimeType": "string",
      "thumbnailSize": 0
    }
  },
  "messageStatus": "pending",
  "error": {
    "code": "string",
    "message": "string",
    "description": "string"
  },
  "fallbackMsgId": "string",
  "smsParts": {
    "total": 0,
    "receiveddlrs": 0
  },
  "contact": {
    "firstName": "string",
    "lastName": "string",
    "name": "string",
    "avatarUrl": "string",
    "country": "string",
    "city": "string",
    "address": "string",
    "language": "string",
    "phone": "string",
    "email": "string",
    "birthday": "string"
  },
  "createdAt": "2026-01-01T12:00:00Z",
  "event": "message"
}'

Responses

Successful operation