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
Authentication
x-api-key: <api_key>
Parameters
No path, query, or body parameters.Request example
Success response 200
How to get the correct instanceId
For all MsgFlash sending endpoints, you must provide instanceId.
Field differences:
| Field | Usage |
|---|---|
id | Technical identifier to send as instanceId in the API |
name | Human-readable name for UI usage |
waNumber | Connected WhatsApp number, useful for display and checks |
- Call
GET /api/v1/instances. - Choose an instance with
status = "connected". - Copy
data[n].id. - Use this value as
instanceIdin:POST /api/v1/messages/sendPOST /api/v1/messages/schedulePOST /api/v1/campaigns
Common errors
| HTTP | Code | When |
|---|---|---|
401 | UNAUTHORIZED | API key missing or invalid |
429 | API_RATE_LIMIT_EXCEEDED | Too many requests per second |