Send a message to a WhatsApp number using your MsgPilots instance credentials.
POST https://msgpilots.com/api/send-message
Key | Value | Required | Description |
---|---|---|---|
Instance-Id | instance6873e2c6cac57 | โ | Your MsgPilots instance ID |
Token | Kbmp9zyqTTbEm7y1HrSYNHtZxQYMrN | โ | API token for authentication |
Content-Type | application/json | โ | Must be application/json |
{
"to": "919876543210",
"message": "Hello from MsgPilots Hello!"
}
curl -X POST https://msgpilots.com/api/send-message \
-H "Instance-Id: instance18418dfs8949" \
-H "Token: Kbmp9zyqTTbEm7y74frYNHtZxQYMrN" \
-H "Content-Type: application/json" \
-d '{
"to": "919876543210",
"message": "Hello from MsgPilots Hello!"
}'
{
"status": true,
"message": "Message sent successfully",
}
{
"status": false,
"message": "Unauthorized or invalid request"
}