Messages
Send a message
Send a WhatsApp message.
POST
Send a message
Send a WhatsApp message through a connected HookMyApp channel.
Use
to for the recipient phone number in international format. The request body is the Meta WhatsApp message payload, signed with the channel token HookMyApp issued for that channel.
Supports all WhatsApp message types:
text: Plain text messagesimage,video,audio,document,sticker: Media messageslocation: Location sharingcontacts: Contact cardsinteractive: Buttons, lists, and flowstemplate: Message templatesreaction: Emoji reactions to messages
Authentication
Use thehmat_ channel token from GET /meta/channels/{id}/token or hookmyapp channels env <channel>. Do not use an hmok_ API key for this call.
Path parameters
string
required
The WhatsApp phone number ID for the connected channel.
Request body
string
required
Always
whatsapp.string
required
Recipient phone number in international format.
string
required
Message type, such as
text, image, video, audio, document, sticker, location, contacts, interactive, template, or reaction.Example
Successful response
Supported message types
Use the guide pages for copy-paste examples:Send a message