botspace-logo
Help Center - BotSpace
botspace-logo
Help Center - BotSpace
Types of message payloads

Media

Mayur Morè

Payload for image media type

{
"url": "https://filemanager.gupshup.io/wa/5c306c06-1ee3-456b-b00b-8e978613bbf1/wa/media/427540389961101?download=false",
"urlExpiry": 1713329196945, // Present for Incoming only
"contentType": "image/jpeg", // Present for Incoming only
"mediaType": "image",
"label": "Some caption" // Optional
}

Payload for video media type

{
"url": "https://filemanager.gupshup.io/wa/5c306c06-1ee3-456b-b00b-8e978613bbf1/wa/media/945689083898699?download=false",
"urlExpiry": 1713329989262, // Present for Incoming only
"contentType": "video/mp4", // Present for Incoming only
"mediaType": "video"
"label": "Some caption" // Optional
}

Payload for document media type

{
"url": "https://filemanager.gupshup.io/wa/5c306c06-1ee3-456b-b00b-8e978613bbf1/wa/media/7422992937814351?download=false&fileName=00-intro.pdf",
"filename": "00-intro.pdf", // Present for document only
"urlExpiry": 1713330061888, // Present for Incoming Message only
"contentType": "application/pdf",// Present for Incoming Message only
"mediaType": "document",
"label": "Some caption" // Optional
}

Payload of audio media type

{
"url": "https://filemanager.gupshup.io/wa/5c306c06-1ee3-456b-b00b-8e978613bbf1/wa/media/960202559149070?download=false",
"urlExpiry": 1713330391788, // Present for Incoming Message only
"contentType": "audio/ogg; codecs=opus", // Present for Incoming Message only
"mediaType": "audio"
}
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.