Send a message
Send a WhatsApp message from one of your connected numbers to a recipient.
This single endpoint sends every message type — text, image, document, video, and audio. The message.type field decides which one is sent. Text messages use message.message for the text; media messages add a message.media object instead. Use the Examples dropdown in the request panel to switch between message types.
On success the message is queued for delivery and the response returns state: "PUBLISHED".
Status codes
Each response returns a standard HTTP status code so you can tell what happened at a glance.Authorizations
Your Clapvo API token. Pass it in the x-api-key request header.
Body
Sender's WhatsApp number — the number the message is sent from. Must be a WhatsApp number connected to your Clapvo account. Use international format with the country code and no leading +, spaces, or dashes (e.g. 918495632548 for +91 84956 32548).
"918495632548"
Recipient's WhatsApp number — the number the message is sent to. Use the same international format as from: country code, no leading +, spaces, or dashes.
"918965742135"
The message content. Its fields change with message.type: text messages use type + message, while media messages use type + a media object.