What you need
- A HookMyApp account
- A connected channel (the sandbox for testing, or your own WhatsApp number or Instagram account)
- An access token and number or account id for that channel
- An agent runtime that can read incoming messages and send outgoing replies
Connect a number
For testing, start a sandbox session pinned to your phone:hookmyapp channels connect instagram (or hookmyapp sandbox start instagram for testing). See Connect WhatsApp or Connect Instagram for the full embedded-signup flow.
Configure your agent
Pull credentials into a.env file your agent runtime can load.
For a sandbox session:
- Base URL:
WHATSAPP_API_URL(sandbox proxy) orMETA_GRAPH_API_URL(https://graph.facebook.com/v24.0, your own number) WHATSAPP_ACCESS_TOKEN: Bearer token for the Graph-shape POSTWHATSAPP_PHONE_NUMBER_ID: the WhatsApp number your agent sends fromVERIFY_TOKEN: HMAC secret for verifying inbound webhook signatures
What your agent can do
Your agent reads inbound webhooks (text, media, button replies) and POSTs outbound messages using the same Meta Graph shape. The CLI gives it operational access from the terminal.Send messages
POST to${WHATSAPP_API_URL}/${WHATSAPP_PHONE_NUMBER_ID}/messages with a Bearer token. See Send messages for the message types.
Listen to conversations
For local development, run a tunnel so inbound webhooks reach your agent runtime:Verify signatures
Every forwarded webhook arrives withX-HookMyApp-Signature-256: sha256=<hex> (HMAC-SHA256 over the raw body, key = VERIFY_TOKEN). Your agent rejects mismatches with 401. See Receive webhooks for the full algorithm.
Use it with an agent framework
If your personal agent runs on a framework like OpenClaw, NanoClaw, or Hermes, you don’t have to write any transport code. These runtimes can run shell commands, so hand them the HookMyApp CLI and your agent can send and receive messages on your own number straight from its shell. Give your agent a prompt like this to wire it up:Agent prompt
Next steps
- Build with AI: Use Cursor, Codex, or Claude Code to wire all this for you.
- CLI: Command reference for everything above.
- Send messages: Outbound message types.
- Receive webhooks: Inbound webhook handling and signature verification.