Skip to Content
Messages

Upload a file to send as an image, video, audio, document or sticker

POST
/media

Send the raw file as the request body with its Content-Type. Meta keeps it for 30 days; use the returned id in a message's media.id. Limits: images 5 MB, video and audio 16 MB, documents 100 MB, stickers 500 KB.

Scope: messages.send. Rate limit: 300 requests per minute per API key.

Authorization

apiKey messages.send
headerAuthorizationBearer <msk_live_…>

An API key created under API keys in the panel: Authorization: Bearer msk_live_…. The key's scopes decide which operations it may call.

Scope: messages.send

Query Parameters

filename*string
Length1 <= length <= 240
phone_number_id?string

Sender whose account stores the file; defaults to the default number.

Formatuuid

Request Body

body*fileapplication/octet-stream
Formatbinary

Response Body

Uploaded

application/json
  1. response
data*
meta*
Example Request
curl -X POST 'https://app.messora.tech/api/v1/media?filename=string' \  -H 'Content-Type: application/octet-stream' \  -d 'string'
Example Response
{  "data": {    "expires_at": "2026-12-25T09:30:00Z",    "filename": "invoice.jpg",    "id": "1013859600285441",    "mime_type": "image/jpeg",    "size": 184320  },  "meta": {    "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff"  }}