Sending Media
Last updated
Last updated
Important Note: To receive messages from this API, you must create a sandbox session by sending the join code provided after signing up.
POST
This API enables users to send Images, Videos, or Audio.
Headers
Content-Type
application/json
apiKey
Body
messageId
string
A unique identifier for the message. This will be used to track the message status and for deduplication purposes.
mediaType
string
Pass value as IMAGE, VIDEO, AUDIO, DOCUMENT or STICKER
mediaUrl
string
URL of an image to be sent. Must be a valid URL starting with https://...
caption
string
Image caption. Optional.
from
string
Sandbox number +254110090747 or your own WABA phone number.
to
string
Receiver phone number. It should start with a country code.
Response
Get apiKey from App portal settings tab