Webhooks let bots call external APIs during conversations — for example, checking order status, submitting a form, or syncing data.
All endpoints require authentication.
Endpoints
Webhooks are managed per-bot. See Bots — Bot Webhooks.
GET /api/bots/:id/webhooks
POST /api/bots/:id/webhooks
PATCH /api/bots/:id/webhooks/:webhookId
Create a Webhook
POST /api/bots/:id/webhooks
Body
| Field | Type | Required | Description |
|---|
name | string | Yes | Label (e.g., “Check Order Status”) |
url | string | Yes | Full API endpoint URL |
method | string | Yes | GET, POST, PUT, PATCH, DELETE |
description | string | Yes | What it does — the AI reads this |
headers | object | No | HTTP headers as JSON {"Authorization": "Bearer TOKEN"} |
queryParams | object | No | URL query parameters as JSON |
jsonData | object | No | Request body for POST/PUT |
active | boolean | No | Default true |
parameters | array | No | Dynamic parameters (see below) |
Parameter object
| Field | Type | Description |
|---|
name | string | Parameter name |
dataType | string | string, number, date, datetime |
type | string | query_param, post_data, path_param |
source | string | by_ai (bot fills it) or fixed |
value | string | Fixed value (if source is fixed) |
These are system-level endpoints that receive events from external providers:
| Endpoint | Provider |
|---|
POST /api/webhooks/gupshup/incoming_msg | Gupshup — incoming WhatsApp messages |
POST /api/webhooks/gupshup/message-events | Gupshup — delivery/read receipts |
GET/POST /api/webhook/facebook | Facebook/Meta |
POST /api/webhook/wasimple | Wasimple |
POST /api/stripe-webhook | Stripe billing events |
These endpoints are called by external providers, not by your code. Configure the URLs in your respective provider dashboards.