Send Media Message

Body Params
string

Alphanumeric identifier used for reporting purposes.

callbacks
array of strings

Webhook URL to notify about the events of the whatsApp message.

callbacks
string
required

Phone number of the sender.

Phone number provided during the WABA account setup will be used as the sender of the notification message.

Only accepts numeric characters. Do not include the ´+´ sign.

string
required

Determines the destination phone number for your regular message. Numbers are specified in E.164 format → (‘+’ and a country code).

string
length between 0 and 4096

Only applies to the ´text´ type, ´image´ type, ´audio´ type, ´document´ type.

For Text messages, enter the text message body to be sent. The text body has a limit of 1024 characters.

For Media messages, enter the URL of the chosen media file (image, video and document). The URL must be a valid URL that starts with ´http://…´ or ´https://…´ and provides a direct download. Redirects are not supported.

string

Type of message you want to send.

Supported options:

  • ´text´: Sends a plain text message.
  • ´image´: Sends an image file (.jpeg, .png).
  • ´audio´: Sends an audio file (.acc, .mp3, .amr, .mpeg).
  • ´video´: Sends a video file (.mp4, .3gpp.)
  • ´document´: Sends a document file (.pdf).
  • ´contacts´: Sends contact information.
  • ´location´: Sends a location with latitude and longitude.
  • ´interactive´: Sends an interactive message with reply buttons or list .

In this example, we set the ´image´ parameter.

string

Only applies to the ´image´ type.

Image caption text.

string

Only applies to the ´document´ type.

Enter the name and file extension (.pdf) of the document to be sent.

Responses

Language
Credentials
Bearer
JWT
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json