Skip to main content

What you can do

  • send Instagram DMs through your connected account
  • receive incoming DMs, reactions, reads, and message 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
  • publish images, reels, stories, and carousels
  • read account and media insights
  • list, reply to, hide, and delete comments

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/v25.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