Webhook
Handles incoming WhatsApp messages and status updates from Twilio.
POST /api/agents/whatsapp/webhook
Standard Twilio webhook payload (form-urlencoded or JSON).
| Parameter | Type | Required | Description |
|---|---|---|---|
MessageSid | string | Yes | Unique identifier for the message. |
From | string | Yes | Sender’s phone number (whatsapp:+…). |
To | string | Yes | Receiver’s phone number (whatsapp:+…). |
Body | string | Yes | Content of the message. |
NumMedia | string | No | Number of media attachments. |
Response
Returns a 200 OK status and processes the message (text or media) asynchronously, triggering agent workflows or task creation.
Last updated on