MsgPilots
Get Started Login

๐Ÿ“ค Send WhatsApp Message API

Send a message to a WhatsApp number using your MsgPilots instance credentials.

๐Ÿ”— Endpoint

POST https://msgpilots.com/api/send-message

๐Ÿงพ Headers

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

๐Ÿ“ฆ Request Body

{
  "to": "919876543210",
  "message": "Hello from MsgPilots Hello!"
}
  • to: WhatsApp number with country code
  • message: Message content (max 1000 characters)

โœ… Example (cURL)

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!"
}'

๐Ÿ“ฅ Response

Success

{
  "status": true,
  "message": "Message sent successfully",
  }

Error

{
  "status": false,
  "message": "Unauthorized or invalid request"
}

๐Ÿ“Œ Notes

  • Make sure your WhatsApp session is active and authenticated
  • Rate limits apply as per your pricing plan
  • Support for media messages and templates coming soon