Lewati ke konten utama

WASendMedia

Intro

Media (with text caption) can be sent using this endpoint. The media file must be available on static URL to be downloaded by our system.

info

This endpoint will consume 2 WA Credits.

File Types

The allowed file types are:

  • Document: docx and pdf
  • Image: jpg, jpeg and png
  • Video: webm and mp4

Parameter Usage Notes

  • Queue is set of Senders. The Sender picked randomly from the set list.
  • If none of Queue or Sender argument is set, the sender will be randomly chosen from your WA Sender (if you have any)
    or from our WA Senders.
    Default: null
  • timeout is the message timeout in seconds. If the message exceeds the timeout before it has being sent, the status of the message is going to be F (Failed).
    Default: 86400 seconds
  • media_url is any HTTP URL of a file that can be directly downloaded
  • When using media_base64 as media file parameter,
    max length: 1024 Kilobytes
  • If both media_base64 and media_url value is provided, the API will use media_base64 to be media parameter.
  • include_unsubscribe is flag that if the value is true, an un-subscription text (with un-subscription link) will be added and to be sent to the message recipient. Later on, after clicked the un-subscription link, the recipient will not received any message from you (on this API). You can not send message to the recipient because the number have been added to your recipient exclusion list.
    Default: false