Skip to content
Wazapin
Esc
navigateopen⌘Jpreview

Download media content from a message

POST/v1/messages/media/download
Authorization
bearerAuthbearerAuthrequired
or
apiKeyAuthapiKeyAuthrequired
Request body
requiredapplication/json
channel_idstringrequired
Channel ID
min length 1
media_idstringrequired
Media ID
min length 1
message_idstringrequired
Provider message ID
min length 1
message_payloadanyrequired
Raw message payload required by provider media download endpoint
min length 2
Responses
200OK
datastring
file_namestring
media_idstringrequired
mime_typestring
source_urlstring
400Bad Request
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
401Unauthorized
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
403Forbidden
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
404Not Found
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
422Unprocessable Entity
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
500Internal Server Error
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
Request
curl -X POST "/v1/messages/media/download" \
  -H "Content-Type: application/json" \
  -d '{
  "channel_id": "string",
  "media_id": "string",
  "message_id": "string",
  "message_payload": "string"
}'
Response
{
  "data": "string",
  "file_name": "string",
  "media_id": "string",
  "mime_type": "string",
  "source_url": "string"
}