Skip to main content
Endpoint:

Authentication

Choose the auth option your MCP client supports, in this order:
  1. HookMyApp CLI: hookmyapp agent setup configures the server in every coding agent installed on your machine: Claude Code, Codex, and Cursor.
  2. Sign in from your MCP client: add the server by URL and sign in when prompted (for example /mcp in Claude Code). No API key needed.
  3. API key: create an API key in HookMyApp and pass it as a header. Best for CI and headless environments.
Accepted API key headers:
Use Authorization: Bearer for bearer-token clients. Use X-API-Key when your MCP client lets you configure custom headers.

Connect

HookMyApp CLI

Configures Claude Code, Codex, and Cursor, and installs the HookMyApp agent skills. Needs CLI 0.14.19 or newer. Add --client claude, --client codex, or --client cursor to set up only one of them. The credential is written into each entry, so no client needs a separate sign-in. Setup prints one line per client naming the restart it needs. MCP tools load when a session starts, so restart your agent after running this. Until then, every operation works through the hookmyapp CLI.

Sign in from your client

Run /mcp, pick hookmyapp, and approve the sign-in in your browser. Codex and Cursor support the same flow with their own commands.

API key

Set your HookMyApp API key:

Use X-API-Key instead

Codex CLI has no --header flag, so X-API-Key goes in ~/.codex/config.toml. For Cursor and Claude Code, swap the header.

Tools

Sandbox sessions are not channels. They have their own ssn_ ID, so they never appear in list_channels, get_channel, list_deliveries, or the channelCount in status. Use the sandbox tools above for anything you are testing through the shared sandbox number, and the channel tools for numbers connected to your own WhatsApp Business account. status reports sandboxSessionCount so you can tell the two apart before answering someone that nothing is connected.

Examples

Ask your agent to check setup:
Ask your agent to inspect channels:
Ask your agent to set up a test number without a Meta app:
Ask your agent to answer a message that arrived in the sandbox:
Ask your agent to send a message:

Project MCP vs docs MCP

Use the CLI when your agent has terminal access. Use MCP when your agent supports MCP and should operate HookMyApp directly.