Retrieve the download URL for a media file.
Important: The returned URL is temporary and expires after 5 minutes.
Project API key for authentication. This is the recommended authentication method.
Get your API key from the Kapso dashboard under Project Settings > API Keys.
Media ID returned from upload
Phone number ID that owns this media
Media URL retrieved successfully
whatsapp "whatsapp"
Media ID
"2621233374848975"
Temporary download URL (valid for 5 minutes)
"https://lookaside.fbsbx.com/whatsapp_business/attachments/?mid=..."
MIME type
"image/jpeg"
File hash
"81d3bd8a8db4868c9520ed47186e8b7c5789e61ff79f7f834be6950b808a90d3"
File size in bytes (returned as string)
"303833"
Kapso-hosted authenticated download URL. Valid for 4 minutes. Use this URL to download the media file without needing to pass auth headers — authentication is embedded in the token.
"https://api.kapso.ai/meta/whatsapp/media_download?token=..."
ISO 8601 expiry timestamp for download_url.
"2026-03-13T12:34:56Z"