Download the media attached to a message
GET/api/v1/waba/messages/:id/media
An inbound media message carries a Meta media id, not the file, and the URL it resolves to is short lived and needs the account token. This resolves and downloads it server side and streams the bytes back, so an inbox can point an image tag straight at it. Responds with the file, not JSON. Do it promptly: Meta expires media ids after 30 days.
Request
Responses
- 200
- 400
- 401
- 404
- 500
The media bytes, under their own content type
The message carries no downloadable media
Unauthorized (invalid apiToken)
Message not found
Internal server error