Help Desk
  • Getting Started
    • ๐Ÿ™ŒWelcome to Whapi.Cloud
    • ๐Ÿ’ฐPricing
    • โ˜•Partners
    • ๐Ÿš€Getting started
    • ๐Ÿ‘จโ€๐Ÿ’ปAPI Docs
      • Developer hubs
      • Swagger environment
      • Postman collection
  • Sending
    • Introduction
    • Send text message
      • Whatsapp API send message PHP
      • Whatsapp API send message Python
      • Whatsapp API send message Node JS
      • Whatsapp API send message ะก#
      • Whatsapp API send message Java
      • API integration with VB6
      • Whatsapp API send message GO (Golang)
    • Send video, audio, image, document
      • How to send file from your local computer using the API
    • Send Group message
    • Send post to WhatsApp Channel
    • Send message with Buttons
    • Send Emoji
    • Overview of other methods for sending
      • Send Voice message
      • Send contact (vCard)
      • Send message reactions
  • Receiving
    • Introduction
    • Webhooks
      • Our webhooks (Tracked events)
      • Where to Find the Webhook URL?
      • Set the webhook link to the channel
      • Detailed webhook settings
      • How to check the webhook?
      • Incoming webhooks format
        • Incoming message
        • Sent message
        • Chats
          • How to Track Chat Labels via Webhook
        • Groups
        • Communities
        • Contacts
        • Account and device status
        • Other
          • Calls
          • Presences
          • Labels
          • Views of stories (statuses)
          • Story (status) from your contacts
      • Receive messages
        • Receive WhatsApp messages using PHP
        • Receive WhatsApp messages using Node js
        • Receive WhatsApp messages using Python
    • HTTP API
      • How to retrieve files
      • Retrieve a Specific User's Chat History
      • Get a full-size picture in the response
      • Get order items
      • Get a profile picture of a chat or user
    • File expiration period
  • Groups
    • Send Group message
      • Mentioning all participants in a WhatsApp group
    • Get list of group members
    • Add new member to Group
  • Channels
    • Send post to WhatsApp Channel
    • Get messages from Channels
    • Get votes from polls in the Channel
  • Communities
    • Introduction
    • Create a community
    • Add a member to a community
    • Send announcement
    • Get info on community participants
    • Add a group / Exclude a group from the community
  • Account
    • Setting "Auto Download"
    • Customizable Webhook Headers
    • How to find out the IP channel
    • How to Delete a Channel
    • Add Business Info to Invoice
  • Source code
    • WhatsApp ChatBot
      • WhatsApp Python Bot
      • WhatsApp PHP Bot
      • WhatsApp Node JS Bot
      • WhatsApp Java Bot
    • WhatsApp API Google Sheets
    • WhatsApp Phone Number Checker
    • Request Distributor (Balancer)
  • FAQ
    • Does WhatsApp API work with the phone turned off?
    • Chat ID. What is it and how to get it?
    • Why do I see status "pending" after sending message?
    • How to send a paragraph (line break)
    • Inactive Links in WhatsApp Messages
    • WhatsApp Text Formatting
    • Checking if the number has Whatsapp
    • Specifics of sending messages to numbers of different countries
    • Current status of Buttons on WhatsApp
    • Why aren't participants being added to the group?
  • Hints
    • Android Emulators
    • Virtual Numbers for WhatsApp
    • How to use polls as buttons?
    • How to check who blocked you in Whatsapp?
    • Setting up a WhatsApp proxy
  • Integrations
    • Make.com
      • Ready-Made Scenarios
        • WhatsApp & Whisper API: Voice-to-Text Integration
        • Automated WhatsApp Group Message Forwarding in Make.com
      • Request Scenario Setup
    • Pabbly Connect
    • Google Contacts
    • DialogFlow
    • n8n
  • Tools
    • WhatsApp Number Checker
    • Automatic warm-up module
    • WhatsApp Activity Safety Meter
    • Residential Proxies from Whapi.Cloud
  • Troubleshooting
    • Couldn't Link Device โ€“ WhatsApp QR Code or Pairing Code Fails
    • Channel status โ€œSYNC_ERRORโ€
    • Not getting a READ status on webhook
    • 429 (Too Many Requests) - Soft Ban
    • โ€œWaiting for this message. This may take a whileโ€ โ€“ WhatsApp Message Error
    • Missing push notifications after connecting to API
  • Blocking
    • How to not get Banned?
    • How to do mailings without the risk of being blocked?
    • If My Number Is Banned, Can It Be Restored?
    • Unlocking Your WhatsApp Number
    • Connecting a New WhatsApp Number After a Ban: Steps and Recommendations
    • Warming Up New Phone Numbers for WhatsApp API
  • Partner Documentation
    • Introduction
    • Partner Dashboard Overview
    • Partner Program Guidelines
      • Workflow: Step-by-Step
      • Billing for Partners
      • Allocating Days to Customer Channels: Best Practices & Guide
      • Interface for channel management
    • Partner Documentation
      • Channel creation
      • Changing channel mode
      • Channel extension
      • Channel deletion
      • Getting the list of channels
      • Notices of end of days on balance
Powered by GitBook
On this page
  • For what purpose?
  • Where is it applicable?
  • How it works?
  • How to enable?

Was this helpful?

  1. Account

Setting "Auto Download"

What is Auto Download and how does it work? How to Get a Full-Size Picture in the Response?

PreviousAdd a group / Exclude a group from the communityNextCustomizable Webhook Headers

Last updated 7 months ago

Was this helpful?

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've written more about file storage here: File expiration period

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.

All media files uploaded through the API have a 30-day expiration date. After this period expires, all files, whether audio, PDF, images, etc., will be deleted from the repository.

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:

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

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

curl --request PATCH \
     --url https://gate.whapi.cloud/settings \
     --header 'accept: application/json' \
     --header 'authorization: Bearer Yq6xa91PMoplB8Y9M0ajpZshpqtQKxo' \
     --header 'content-type: application/json' \
     --data '
{
  "media": {
    "auto_download": [
      "image",
      "document"
    ]
  }
}
'

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.

This is what the webhook looks like without the "Auto Download" setting enabled

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

With the "Auto Download" setting enabled, you get a direct link to the file

We will need the .

method
PATCH method /settings
Update channel settingsWhapi Cloud - Whatsapp API for developers
Logo