Skip to main content

Endpoint

Authentication: x-api-key: <api_key> The message is accepted as queued, then sent asynchronously.
From the MsgFlash dashboard, media can be prepared through a temporary upload before final sending. See Temporary media uploads.

Parameters

Body

This route has no path or query parameters.

Mode 1 — Direct message

Texte

Media, location, and contact


Mode 2 — Send via template

You can send a message by providing templateId instead of type.
The backend:
  • loads the template
  • resolves contact.*, user.*, instance.*
  • injects your custom values into custom.*
  • stores the final rendered text in Message.body
Template example:
Supported variables:
  • contact.*
  • user.*
  • instance.*
  • custom.*
For contact.* variables, provide contactId if you want enriched contact context.

Success response

Common errors


Possible statuses


Track status

  1. GET /api/v1/messages/{id}
  2. Webhooks message.sent, message.delivered, message.read, message.failed
See Webhooks.