Download media
Downloads the WhatsApp media body with Meta’s headers (Content-Type and Content-Length).
Endpoint: GET /v1/{did}/media/{mediaId}
Parameters
Path
| Parameter | Type | Required | Description |
|---|---|---|---|
did | string | Yes | Target ID. |
mediaId | string | Yes | Media ID. |
Request
curl --request GET \
--url 'https://api.chattigo.com/v1/{did}/media/{mediaId}' \
--header 'Authorization: Bearer <token>' \
--output media.jpgResponse
Success (200)
Returns the binary media body with Meta’s Content-Type and Content-Length headers.
Errors
| Code | Case |
|---|---|
400 | did is required or mediaId is required |
403 | DID outside the WABA hierarchy |
413 | Download exceeds the configured limit |
502 | External service unreachable |
504 | External service timeout |