Skip to main content

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:
Use the returned hmat_ token to send:
You can also get the same channel token with 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