Waaibot Unified REST API

Waaibot provides a highly robust, multi-engine REST API allowing you to push text, media, and interactive visual workflows directly to WhatsApp. Select a language from the sidebar to view code examples for your tech stack.

Authentication: All requests must include the X-API-Key header. You can generate this key securely inside your Waaibot Portal dashboard.

cURL Integration

request.sh
curl -X POST https://api.waaibot.com/v1/send \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "phone": "923001234567",
  "type": "text",
  "message": "Your Waaibot verification code is: 8821"
}'

Handling Webhooks (Callbacks)

When you trigger a Workflow Payload, you are sending an interactive menu (buttons/lists) to the user. Waaibot allows you to define a webhook URL inside the visual workflow builder. When the user clicks a button, Waaibot will immediately POST that data back to your ERP, CRM, or POS.

Example Incoming Webhook Payload (to your server):

{
  "event": "button_reply",
  "lead_number": "923022597807",
  "flowId": "283",
  "button_text": "Confirm Appointment",
  "custom_payload": {
    "name": "Azam Sajid",
    "code": "556682"
  },
  "timestamp": 1708864000
}

Pro Tip for Odoo/Zoho Users: Parse this JSON payload in your custom endpoint to instantly update a Lead Status or create a Sales Order.

Don't see your tech stack?

Our Unified REST API can be integrated with almost any modern framework or legacy system. If you need customized examples for a specific platform like SAP, Salesforce, Laravel, or an in-house ERP, our engineering team will write the docs for you!