Home Resources API Documentation
Developer REST API & Webhooks

Build & Automate with the AI Botflow API

Integrate official Meta WhatsApp messaging, programmatic broadcasts, and contact syncing directly into your apps and backend.

Overview & Base URL

The AI Botflow REST API conforms to HTTP standards with standard response status codes and JSON payloads. All requests must be made over HTTPS.

https://dash.aibotflow.in/api/v1

Authentication

Authenticate requests by passing your private API key in the Authorization request header. You can generate API keys inside your dashboard under Settings > API Keys.

Authorization: Bearer abf_live_9f8d7c6b5a4e3d2c1b0a
POST /messages/send

Send an automated text, media document, or approved WhatsApp template message to a phone number.

cURL Example:
curl -X POST https://dash.aibotflow.in/api/v1/messages/send \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "to": "+919876543210", "type": "template", "template": { "name": "order_confirmed", "language": "en", "components": [ { "type": "body", "parameters": [ { "type": "text", "text": "Rahul" }, { "type": "text", "text": "#ORD-8942" } ] } ] } }'

Webhooks & Event Subscriptions

Receive instant JSON notifications when incoming messages arrive, messages are read, or an AI agent requests a human handoff.

{ "event": "message.received", "timestamp": 1789650000, "data": { "from": "+919876543210", "contact_name": "Priya Sharma", "text": "Hi, I need assistance with the pricing plan.", "intent_score": 0.88, "assigned_agent": null } }