Retrieve a message attachment. Supports images, videos, and other files. Image query parameters only apply to image attachments.
Channel ID
Attachment ID
Original filename
Target image size in pixels. Default: 128 Allowed image sizes in pixels
16, 20, 22, 24, 28, 32, 40, 44, 48, 56, 60, 64, 80, 96, 100, 128, 160, 240, 256, 300, 320, 480, 512, 600, 640, 1024, 1280, 1536, 2048, 3072, 4096 "128"
Output image format. Default: webp Allowed image output formats
png, jpg, jpeg, webp, gif "webp"
Image quality level. Default: high Image quality levels: high (default), low (smaller files), lossless (no compression)
high, low, lossless "high"
Whether to return animated images (GIF, APNG). Default: false
true, false File data with appropriate Content-Type
The response is of type file.