v10

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-02-242335121.2 KB
App

Upload an asset (base64)

Upload a file using a JSON body with base64-encoded content. Returns an uploadID that can be referenced when sending messages with attachments. Alternative to the multipart upload endpoint.

post/v1/assets/upload/base64

Request body

contentstring required

Base64-encoded file content (max ~500MB decoded)

fileNamestring

Original filename. Generated if omitted

mimeTypestring

MIME type. Auto-detected from magic bytes if omitted

Response

Request executed successfully

uploadIDstring

Unique upload ID for this asset

srcURLstring

Local file URL (file://) for the uploaded asset

fileNamestring

Resolved filename

mimeTypestring

Detected or provided MIME type

fileSizenumber

File size in bytes

widthnumber

Width in pixels (images/videos)

heightnumber

Height in pixels (images/videos)

durationnumber

Duration in seconds (audio/videos)

errorstring

Error message if upload failed