Documentation Index
Fetch the complete documentation index at: https://docs.msgflash.com/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Important — how to get instanceId
instanceId is the technical identifier required to schedule a message.
To get it:
- call
GET /api/v1/instances - choisir l’instance souhaitée
- copy
data[n].id - utiliser cette valeur dans
instanceId
namewaNumber
Body
| Field | Type | Required | Description |
|---|---|---|---|
instanceId | UUID | yes | Technical identifier of the MsgFlash instance, obtained via GET /api/v1/instances |
to | string | yes | E.164 number |
scheduledAt | ISO 8601 | yes | Date/heure d’envoi |
type | enum | yes if no templateId | text, image, video, audio, document, voice_note, location, contact, buttons |
templateId | UUID | yes if no type | Template to render |
variables | object | no | custom.* values |
/messages/send, y compris les champs spécifiques aux boutons (title, description, footer, buttons).
Request example
Example avec boutons
Success response 201
Les warnings safety sont informatifs. En V1, ils ne bloquent pas les messages planifiés.
Common errors
| HTTP | Code | When |
|---|---|---|
400 | VALIDATION_ERROR | Invalid body |
400 | TEMPLATE_INVALID | Template invalid |
404 | NOT_FOUND | Instance, contact, or template not found |
429 | MONTHLY_OUTBOUND_QUOTA_EXCEEDED | Quota already exhausted |