Inbound messages

The inboundUrl that you have defined in the body of the Viber campaign's request, will receive the inbound messages.

Your service will receive the following payload:

{
  "from": string,
  "to": string,
  "message": string,
  "sentDate": string,
  "campaignName": string,
  "campaignTrackingId": string,
  "referenceTrackingId": string,
  "direction": string,
  "media": string,
  "filename": string,
  "label": string
}

KEY

DESCRIPTION

from

The sender of the inbound message

to

Your senderId

message

The body of the inbound message

sentDate

The date that the inbound message was sent (ISO format)

campaignName

The name of the Viber campaign

campaignTrackingId

The tracking Id of the outbound Viber campaign

referenceTrackingId

The tracking Id of the outbound Viber message (the message that this inbound message is referenced to)

direction

"Inbound"

media

The inbound media URL

fileName

The inbound media name

label

A generic label using for tagging the viber campaign.

An example payload is shown below:

{
  "from": "+3069xxxxxxxx",
  "to": "your_sender_id",
  "message": "This is the body of the inbound message",
  "sentDate": "2017-08-11T12:36:45.393Z",
  "campaignName": "NameOfCampaign",
  "campaignTrackingId": "62d4a3cc-6f32-4ba2-b99a-b661fb27fdd5",
  "referenceTrackingId": "dcfa62e1-13af-459a-a6ca-f15727a0b830",
  "direction": "Inbound",
  "media":"https//fileurlxx.xx",
  "filename":"Viber file",
  "label": "Label of the campaign"
}

What’s Next