Webhooks
WhatsApp Webhook
Kapso-first WhatsApp message webhooks
POST
Receive and process WhatsApp messages via Agent-TS. Kapso is the supported transport;
/api/v1/external/whatsapp remains only as a compatibility test bridge.Endpoints
External Client Request
string
required
Event type (e.g.,
message)string
required
Message content from user
string
required
WhatsApp ID (e.g.,
23279648205@c.us)string
required
Phone number in E.164 format
Response
string
Agent response message
string
Processing status (
success, error)Examples
Meta Business API
Verification (GET)
Meta sends a verification request when setting up the webhook:hub.challenge if hub.verify_token matches.
Messages (POST)
Meta sends incoming messages as POST requests with the message payload.Related
Agent-TS Webhooks
Detailed webhook configuration and message handling
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
200 - application/json
Success
The response is of type object.