Skip to Content
My App
Api

Media

Upload a file once (multipart / form-data, field name `file`, up to 16 MB) and get back a hosted public URL you can reuse across sends — for example a PDF to use as a document-header on a template, or an image on a message.

POST
/media

Authorization

http
headerAuthorizationBearer <token>

Request Body

multipart/form-data
  1. body
file*file

Max 16 MB — the WhatsApp document ceiling.

Formatbinary
Lengthlength <= 16384

Response Body

application/json
  1. response
data*
meta*string
Example Request
curl -X POST 'https://aexrux.com/api/v1/media' \  -F 'file=string'
Example Response
{  "data": {    "url": "string",    "path": "string",    "type": "image",    "mime": "string",    "size": "string"  },  "meta": "string"}