WhatsApp Mass Messages (broadcast) request

Example of template Message request:

{
  "recipients": [
    {
      "phone_number": 380961111111,
      "extra_id": "AD-6640-7006",
      "name": "Michael",
      "greeting": "Mr. "
    },
    {
      "phone_number": 380962222222,
      "extra_id": "AD-6640-7007",
      "name": "Zoya",
      "greeting": "Ms. "
    }
  ],
  "callback_url": "https://send-dr-here.com",
  "start_time": "2020-12-12 10:10:10+03:00",
  "tag": "Campaign name",
  "channels": [
    "whatsapp"
  ],
  "channel_options": {
    "whatsapp": {
      "text": "Dear %greeting% %name%! Here is a WhatsApp templated message for you",
      "ttl": 604800
    }
  }
}

Example of non-template (Session) Message request:

{
  "recipients": [
    {
      "phone_number": 380961111111,
      "extra_id": "AD-6640-7006",
      "name": "Michael",
      "greeting": "Mr. "
    },
    {
      "phone_number": 380962222222,
      "extra_id": "AD-6640-7007",
      "name": "Zoya",
      "greeting": "Ms. "
    }
  ],
  "callback_url": "https://send-dr-here.com",
  "start_time": "2020-12-12 10:10:10+03:00",
  "tag": "Campaign name",
  "channels": [
    "whatsapp"
  ],
  "channel_options": {
    "whatsapp": {
      "text": "Dear %greeting% %name%! Here is a WhatsApp session message for you",
      "ttl": 604800,
      "img": "https://example.com/image.png",
      "img_name": "Name for image",
      "doc": "https://example.com/file.docx",
      "doc_name": "Name for document",
      "audio": "https://example.com/audio.mp3",
      "video": "https://example.com/video.mp4",
      "video_name": "Name for video",
      "latitude": "50.438820",
      "longitude": "30.498916"
    }
  }
}