Skip to main content
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 messages
  • image, video, audio, document, sticker: Media messages
  • location: Location sharing
  • contacts: Contact cards
  • interactive: Buttons, lists, and flows
  • template: Message templates
  • reaction: Emoji reactions to messages

Authentication

Use the hmat_ 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:
Sandbox sessions reject template messages. Test templates against a connected WhatsApp number.