v10

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

Upload an asset

Upload a file to a temporary location using multipart/form-data. Returns an uploadID that can be referenced when sending messages with attachments.

post/v1/assets/upload

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