Uploading Media (file)
Use the media node to upload, retrieve, or delete media.
If you use the media upload process rather than linking to a media URL, the file must be uploaded to the media volume. Once the upload is complete, you can send a message using the media ID.
The POST body of the API request must contain the binary media data and the Content-Type header must be set to the type of the media being uploaded. See the Supported Content-Types section below for information about supported Content-Types you can upload.
Authorization
bearerAuth JWT access token returned by Signing In (POST /auth/v1/tokens/).
In: header
Header Parameters
Content-Type header must be set to the type of the media being uploaded. Supported Content- Types can be (image/jpeg, image/png, image/webp, video/mp4, video/3gpp, audio/aac, audio/mp4, audio/amr, audio/mpeg, audio/ogg; codecs=opus)
Response Body
application/json
application/json
curl -X POST "https://example.com/conversation/wab/v1/media""{\n \"media\": [\n {\n \"id\": \"<generated id>\"\n }\n ]\n}"Updating Webhook PUT
You can use the Webhook API to create/update message and message status webhook
Validating Contacts POST
To send a template message outside the customer care time window, you should validate the Contact number first. This is a WhatsApp procedure to validate the WhatsApp ID before approaching your customers. With API, you can do: **Verify** that a phone number in your database belongs to a valid WhatsApp account. You must ensure that the status is valid before you can message a user. **Get** the WhatsApp ID for a phone number. WhatsApp IDs are needed to send messages and use notifications.