Download Media
To download media, make a DELETE call to the /media/{{ MEDIA_ID }} .
Prerequisite
All API calls require authentication with
API_TOKEN Developers can authenticate their API calls with the API_TOKEN generated in App Dashboard > Phone Numbers > Detail > Api. Example
Sample request:
curl -X GET 'https://waofficial.botika.online/api/whatsapp/v1/media/{{ MEDIA_ID }}' \ -H 'Authorization: Bearer {{ API_TOKEN }}'
If successful, you receive the binary data of media saved in media_file, response headers contain a content-type header to indicate the mime type of returned data.
binary-media-data
If media fails to download, you receive a 404 Not Found response code.
