Messages

Run in Postman

Message resource is the main entry point for sending messages. To send a message, you have to specify a contact with the phone number you already have.

{
  "contact": {
    "phone_number": "+1 (555) 857-6309"
  },
  "channel": {...},
  "content": {...}
}
{
  "id": "...",
  "contact": {
    "id": "6456078781510718339",
    "phone_number": "15558576309"
  },
  "channel": {...},
  "content": {...}
}

📘

Sending Message is Asynchronous

Unlike other platforms, sending messages through Viber Business Messages is asynchronous. This means the actual message is sent at some point after you receive a response to your send request.

You will receive Message Failed webhook in case given phone number is not assigned to any Viber account.

🚧

Phone Number Format

Note that the phone number in response is in E.164 format. All responses and webhooks coming from Amio use this format.