WhatsApp Mass Messages (batch) request

Example of template Message request:

{
  "messages": [
    {
      "phone_number": 380961111111,
      "extra_id": "AD-6640-7006",
      "text": "Templated text for WhatsApp, recipient #380961111111"
    },
    {
      "phone_number": 380962222222,
      "extra_id": "AD-6640-7007",
      "text": "Templated text for WhatsApp, recipient #380962222222"
    }
  ],
  "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": {
      "ttl": 604800
    }
  }
}

Example of non-template (Session) Message request:

{
  "messages": [
    {
      "phone_number": 380961111111,
      "extra_id": "AD-6640-7006",
      "text": "Session text for WhatsApp, recipient #380961111111"
    },
    {
      "phone_number": 380962222222,
      "extra_id": "AD-6640-7007",
      "text": " Session text for WhatsApp, recipient #380962222222"
    }
  ],
  "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": {
      "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"
    }
  }
}