Send a message
Send a WhatsApp message to a recipient.
Use to for phone numbers. Use recipient for a BSUID or parent BSUID.
If both are present, the phone number in to takes precedence.
Supports all WhatsApp message types:
- text: Plain text messages with optional URL preview
- image: Images with optional caption
- video: Videos with optional caption
- audio: Audio files
- document: Documents with optional caption and filename
- sticker: Stickers
- location: Location sharing
- contacts: Contact cards
- interactive: Interactive messages (buttons, lists, flows)
- template: Message templates
- reaction: Emoji reactions to messages
On a shared number, regular messages need Kapso to handle the conversation. Templates can always be sent.
Authorizations
Project API key for authentication. This is the recommended authentication method.
Get your API key from the Kapso dashboard under Integrations > API keys.
Headers
Shared numbers only. Set to true to send even though another app handles the
conversation. Meta accepts it only when Kapso is your escalation app, and the send
takes the conversation.
true Path Parameters
WhatsApp Business Phone Number ID
Body
- Option 1
- Option 2
- Option 3
Always "whatsapp"
whatsapp "whatsapp"
Recipient phone number or group ID. Use recipient for BSUID sends.
"15551234567"
Type of WhatsApp message
text, image, video, audio, document, sticker, location, contacts, interactive, template, reaction Recipient type. Use individual for 1:1, group for group messages.
When group, to must be a Group ID obtained via the Groups API.
individual, group Arbitrary string for tracking (echoed in webhooks)
512Optional Messaging Account (WhatsApp Business Account) ID to send from.
Must match the account the phone_number_id is configured with, otherwise
the request is rejected with messaging_account_mismatch.
"102290129340398"
Deprecated alias for messaging_account_id. Ignored when
messaging_account_id is also present.
"102290129340398"
Recipient BSUID or parent BSUID. If to is also present, the phone number in to takes precedence.
"US.13491208655302741918"
Reply context

