Skip to main content
GET
/
media
/
download
Download media by ID
curl --request GET \
  --url https://wsapi.chat/media/download \
  --header 'X-Api-Key: <api-key>' \
  --header 'X-Instance-Id: <x-instance-id>'
"<string>"

Authorizations

X-Api-Key
string
header
required

Instance or customer-level API key. Either the instance's own API key or the customer's API key is accepted. Must be paired with the X-Instance-Id header to identify the target instance.

Headers

X-Instance-Id
string
default:{{instanceId}}
required

The ID of the WhatsApp instance to use

Query Parameters

id
string
required

Media ID from a received message event

Response

Media file download

The response is of type file.