What you can do
- send WhatsApp messages through your connected number
- receive incoming messages and status events in your webhook
- list connected channels and fetch channel tokens
- set or clear the webhook destination for a channel
- rotate a channel token if it leaks
Authentication
Use two tokens:
Fetch the channel token with an
hmok_ API key:
hmat_ token to send:
hookmyapp channels env <channel>.
The version-pinned base URL (
.../meta/v22.0) is the exact value HookMyApp
emits as META_GRAPH_API_URL from hookmyapp channels env <channel>. Read
the base URL from that variable instead of hardcoding the version, so a Meta
Graph API version bump doesn’t leave your requests pinned to an old version.Next steps
- Send a message: Send WhatsApp messages.
- Send text guide: Send a WhatsApp text message.
- Receive webhooks: Handle inbound messages and status events.