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/:pathNeeds the scope messages:read
Path#
pathstringRequiredEverything after/api/v1/media/in the message’smedia_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.
| Code | Status | What it means |
|---|---|---|
unauthorized | 401 | The API key is missing, wrong, revoked or expired. |
rate_limited | 429 | More than 120 requests a minute with this key. Wait for the seconds in Retry-After. |
forbidden | 403 | The key doesn’t have the messages:read scope. |
not_found | 404 | The file doesn’t exist or belongs to another business. |