Skip to main content
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:
Return hub.challenge if hub.verify_token matches.

Messages (POST)

Meta sends incoming messages as POST requests with the message payload.

Agent-TS Webhooks

Detailed webhook configuration and message handling

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
event
string
required
message
string
required
from
string
required
phoneE164
string
required

Response

200 - application/json

Success

The response is of type object.