Setting "Auto Download"

What is Auto Download and how does it work?

The "Auto Download" feature in Whapi.Cloud allows you to automatically download incoming media content to your Whapi channel, such as documents, photos, videos, and audio files sent to you in chats or groups.

Initially, this information is stored by WhatsApp and marked with unique identifiers (mediaID). To obtain the original file, you will need to use a separate method designed for downloading received and sent files.

We have simplified this process for you, and with the "Auto Download" setting enabled on your channel, you will not only receive mediaIDs but also a direct link to the media file.

For what purpose?

  1. Enhanced efficiency and convenience: You don't need to manually process file identifiers using additional methods. Files are automatically downloaded, and you receive direct links, allowing you to immediately use them in your work.

  2. Resource savings. You don't need to worry about your own file storage.

Where is it applicable?

If you are developing your own chat interface or messaging processing application, automatic file upload to the cloud can significantly simplify the process of handling incoming and outgoing data, as direct link to files will be available to you.

How it works?

Without the Auto setting enabled, incoming messages with files on the webhook will be displayed like this:

You can always use the method to retrieve this file by mediaID.

Enabling the setting will add the Link parameter to the JSON array, where you will immediately receive a direct link to the file:

The link to the media files processed by your number at the time of the enabled setting is bound to the message, which means that you will be able to get a link to the media file via API Call.

Attention, this does not apply to media that was sent or received BEFORE this setting was enabled.

How to enable?

We will show you two options for configuration:

  1. Personal account

The most optimal way to configure "Auto Download" can be found in the "channel settings".

On the channel page, go to settings by clicking on the "Settings" button.

Next, in the popup window, you need to select the types of media files that you want to automatically save to the cloud.

Then, click the "Save" button.

  1. API

We will need the PATCH method /settings.

For enabling this setting, you will need the Media parameter.

curl --request PATCH \
     --url \
     --header 'accept: application/json' \
     --header 'authorization: Bearer Yq6xa91PMoplB8Y9M0ajpZshpqtQKxo' \
     --header 'content-type: application/json' \
     --data '
  "media": {
    "auto_download": [

In our documentation, you will also find snippets and code examples in other programming languages.

If you need assistance, just message us in the support chat on any page of the website.

Last updated