Skip to main content
GET
CLI
A whatsapp.message.received event never carries the file: it carries message.media.providerMediaId. Pass that id here to get the file itself, with its Content-Type (and the filename in Content-Disposition for documents). You need no WhatsApp provider credentials.

Permissions

The API key needs the WhatsApp or Transactional permission. Only media received on your own numbers can be downloaded: any other id answers 404.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The message.media.providerMediaId from a whatsapp.message.received event.

Response

The file. Content-Type is its type; documents also carry Content-Disposition with the filename.

The response is of type file.