Skip to main content
POST
Get media as base64

Authorizations

apikey
string
header
required

Your Pilot Status API key (ps_...). Evolution GO also accepts Authorization: Bearer <key>.

Path Parameters

instance
string
required

The number's display name in the Pilot Status dashboard.

Body

application/json
message
object
required

Full message object, or an object carrying only key so it can be fetched.

Example:
message.key
object

Message key with id, remoteJid, fromMe.

convertToMp4
boolean

Convert the media to MP4 when applicable.

Example:

false

Response

Success — provider-native response body.

Decoded media of a message returned as base64.

mediaType
string
required

Baileys media message type, e.g. imageMessage, videoMessage, audioMessage, documentMessage, stickerMessage.

fileName
string
required

Resolved file name (original name or .).

mimetype
string
required

MIME type of the media (audio/mp4 when convertToMp4 requested for audio).

base64
string
required

Base64-encoded media bytes.

caption
string

Caption of the media message, when present.

size
object

Reported media dimensions/length.

buffer
object | null

Raw buffer; null unless requested internally (getBuffer).