Kapso API icon

Kapso API

Send WhatsApp messages, templates, flows, media, contacts, broadcasts, and inbox records through Kapso. Choose a resource, then follow each operation setup hints.

Media → Download

AI-generated

Summary

Download a media file using a short-lived download token and output the file data as a binary property in the workflow item.

Inputs

  • Download Token (required) — Short-lived download_url token returned by Get Media URL (not the media ID itself), used to authenticate and retrieve the media file.
  • Output Binary Property (required) — Name of the binary property in the output where the downloaded media file will be stored (default is 'data').

Output shape

a single item with a binary property containing the downloaded media file

The output contains the file data stored under the specified binary property name. The operation requires a valid download token and does not take a media ID directly. No pagination or multiple items are involved.

Examples

Example 1: Download media content

Set 'Download Token' with the token received from 'Get Media URL' operation and specify 'Output Binary Property' to store the downloaded file data.

Links

Discussion