Download incoming media
API Reference
Download incoming media
Download an incoming image, video, audio, document, or sticker attachment.
POST
Download incoming media
Use this endpoint after receiving an incoming media message from webhooks or the event stream. Pass the incoming
If the message has no downloadable attachment, the API returns a Problem Details validation error.
message object from the event payload.
maxBytes is optional and defaults to 16 MiB. The maximum accepted value is 64 MiB.
Successful responses return base64-encoded media bytes: