Skip to content

Download media

Downloads the WhatsApp media body with Meta’s headers (Content-Type and Content-Length).

Endpoint: GET /v1/{did}/media/{mediaId}

Parameters

Path

ParameterTypeRequiredDescription
didstringYesTarget ID.
mediaIdstringYesMedia ID.

Request

curl --request GET \
  --url 'https://api.chattigo.com/v1/{did}/media/{mediaId}' \
  --header 'Authorization: Bearer <token>' \
  --output media.jpg

Response

Success (200)

Returns the binary media body with Meta’s Content-Type and Content-Length headers.

Errors

CodeCase
400did is required or mediaId is required
403DID outside the WABA hierarchy
413Download exceeds the configured limit
502External service unreachable
504External service timeout