Start session
Listen for messages locally
Send test message
--to flag on sandbox send.
Env values
Write the sandbox env values to a.env file your server can load.
WEBHOOK_HMAC_SECRET: the HMAC secret your server uses to verifyX-HookMyApp-Signature-256on incoming webhooks.VERIFY_TOKEN: the value your server echoes back on the one-time verificationGETwhen you runsandbox webhook set. Not the HMAC secret.PORT: where your local server listens. Defaults to3000.WHATSAPP_API_URL: the sandbox send URL.WHATSAPP_ACCESS_TOKEN: the sandbox channel token used to send messages.WHATSAPP_PHONE_NUMBER_ID: the ID of the test number.
Manage session
- Start: run
hookmyapp sandbox start, then send the code to HookMyApp test number from your phone. - Lifetime: a session stays active until you stop it or start a new one.
- Restart: run
hookmyapp sandbox startagain and send the new code from the same phone. - Stop early:
hookmyapp sandbox stoptears down the session immediately.
Inspect messages
hookmyapp sandbox logsstreams the session delivery log. Add--followto tail it live and--verbosefor full bodies.hookmyapp sandbox webhook showprints where sandbox messages are delivered.hookmyapp sandbox webhook setoverrides it andhookmyapp sandbox webhook clearreverts to the CLI-managed default.
Limitations
- You can only message your connected phone.
- Template messages are blocked in the sandbox.
- Connect your own WhatsApp number when you are ready for real customers.