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.INSTAGRAM_API_URL: the sandbox send URL.INSTAGRAM_ACCESS_TOKEN: the sandbox channel token used to send DMs.INSTAGRAM_ACCOUNT_ID: the ID of the test Instagram account.
INSTAGRAM_ACCOUNT_ID.A connected Instagram channel also emits
INSTAGRAM_ACCOUNT_ID.
Manage session
- Activate:
hookmyapp sandbox start instagramopens a new sandbox session. - Connect: send the prefilled DM from the Instagram account you want to test with.
- Lifetime: a session stays active until you stop it or start a new one.
- Reactivate: run
hookmyapp sandbox start instagramagain and DM the sandbox account from the same user.
You get fresh env values. - Stop early:
hookmyapp sandbox stoptears down the session immediately. - Multiple sessions: use
--username <@handle>withsandbox env,sandbox send,sandbox logs, andsandbox webhook.
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 Instagram account.
- Connect your own Instagram account when you are ready for real customers.
Next steps
- Instagram quickstart: Start sending and receiving Instagram DMs.
- Webhook routing: Choose where incoming DMs are delivered.
- Send text: Send Instagram DMs.