Chat
Media as base64
Retrieves the content of a locally stored media item in base64
GET
Media as base64
Auth:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: yes
Description
Reads media already stored locally (after ingestion) and returns the content in base64. Works for images, videos, audio, documents, and stickers.Only messages whose media has already been downloaded and persisted by the ingestion pipeline return data here. If the media does not yet exist in storage, the response is
404.Example
Success response
The response echoesmessage_id, brings mime_type and media_type (general category: image, video, audio, document, sticker), and returns in base64 the raw media bytes already encoded, ready to write to a file, upload elsewhere, or display inline. The payload can be large for long videos/audios.
200 OK
Path parameters
string
required
Instance name.
Query params
string
required
ID of the message that contains the media.
Headers
Error responses
Error 404
Related
Find message
Retrieve metadata before downloading.
Delivery status
Check delivery/read.