Skip to main content

What this upload is for

In the MsgFlash dashboard, media messages and media campaigns use a temporary upload before final sending. Typical cases:
  • image
  • video
  • document
  • audio
  • voice note
The backend then returns a temporary URL that can be reused for sending.

Endpoint used by the dashboard

Authentication:
This route is not a public x-api-key endpoint.

Useful response

Important fields:
  • url: temporary URL to reuse in mediaUrl
  • expiresAt: expiration timestamp
  • suggestedMessageType: UI hint for the correct media type

Product constraints visible in the dashboard

  • the generated link is temporary
  • the link may be publicly accessible
  • media scheduled after expiresAt may fail to send
The dashboard should therefore warn users when a message or campaign is scheduled after the expiration date.

Product-supported sizes and formats

Current product limits:
  • image: 5 MB
  • document: 10 MB
  • video: 16 MB
  • audio: 16 MB
  • voice note: 16 MB

Where this flow is used

  • “New message” page
  • campaign composer v2 in direct message mode
  • voice note recording and upload
For the public API, you can also provide your own mediaUrl directly if you already host the file.