Authorizations
Project API key for authentication. This is the recommended authentication method.
Get your API key from the Kapso dashboard under Project Settings > API Keys.
Path Parameters
WhatsApp Business Phone Number ID
Body
application/json
Available options:
whatsapp Example:
"whatsapp"
The action to perform
Available options:
connect, pre_accept, accept, reject, terminate Example:
"accept"
Recipient WhatsApp ID (required for connect action)
Example:
"15551234567"
Call ID (required for pre_accept, accept, reject, terminate)
Example:
"wacid.ABGGFjFVU2AfAgo6V-Hc5eCgK5Gh"
WebRTC session description (required for connect, pre_accept, accept)
Arbitrary tracking string (max 512 chars, optional for connect/accept)
Maximum length:
512Example:
"tracking_id_12345"

