NewWhatsApp, Instagram, Messenger, email, SMS and website chat, now in one inbox
CAT Engage 360

Download media

Download a photo, video, voice note or document from a message. Use the media_url a message gives you; it already points here.

GET/api/v1/media/:path

Needs the scope messages:read

Path#

  • pathstringRequired
    Everything after /api/v1/media/ in the message’s media_url.

Example#

curl -OJ "https://app.catengage360.com/api/v1/media/account-b2c1e8f4-3a6d-4c9b-8e27-1d5f0a9b6c43/inbound/2026/11/photo.jpg" \
  -H "Authorization: Bearer cat_live_your_key_here"

Response#

The answer is the file itself, with its Content-Type and a download file name. Save it as it comes; don’t parse it as JSON.

Errors#

Errors come as { "error": { "code", "message" } }. Branch on code.

CodeStatusWhat it means
unauthorized401The API key is missing, wrong, revoked or expired.
rate_limited429More than 120 requests a minute with this key. Wait for the seconds in Retry-After.
forbidden403The key doesn’t have the messages:read scope.
not_found404The file doesn’t exist or belongs to another business.