Endpoint
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
- Image
- Vidéo
- Audio
- Note vocale
- Document
- Localisation
- Contact
Mode 2 — Send via template
You can send a message by providingtemplateId instead of type.
- loads the template
- resolves
contact.*,user.*,instance.* - injects your custom values into
custom.* - stores the final rendered text in
Message.body
contact.*user.*instance.*custom.*
For
contact.* variables, provide contactId if you want enriched contact context.Success response
Common errors
Possible statuses
Track status
GET /api/v1/messages/{id}- Webhooks
message.sent,message.delivered,message.read,message.failed