Whats App

Retrieving Media

GET
/conversation/wab/v1/media/{media-id}

After you have successfully completed Uploading Rich Media, you will receive a response containing a media ID. You will use this ID to retrieve the media stored in the WhatsApp Business API client.

If successful, you will see a response containing a 200 OK status and the binary media data.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT access token returned by Signing In (POST /auth/v1/tokens/).

In: header

Path Parameters

media-id*string

The media-id returned from upload media API

Response Body

text/plain

application/json

curl -X GET "https://example.com/conversation/wab/v1/media/string"
"Content-Type: application/json\n\n{\n    \"url\": \"<media-url>\",\n    \"ttl\": \"<media-url-expiration-time-in-seconds>\"\n}"