🔔 Site Alerts API

Automated WhatsApp Notification Gateway

v1.0.0 Online

🚀 Send Message Endpoint

Use this endpoint to send notifications to any WhatsApp number.

POST / GET /send

📦 Parameters

Parameter Type Description
nb (Required) String Phone number (e.g., 94771234567)
text (Required) String The message content.
img (Optional) String (URL) Direct URL to an image.
buttons (Optional) Array/JSON List of interactive buttons.

📝 JSON Body Example

Send a raw JSON POST request with the following structure:

{
  "nb": "94771234567",
  "text": "Hello! Your order #1024 is confirmed.",
  "img": "https://example.com/product.jpg",
  "buttons": [
    { "url": "https://myshop.com", "text": "View Order" },
    { "copy": "ORDER1024", "text": "Copy Order ID" },
    { "reply": "Support", "text": "Contact Support" }
  ]
}