- create and list customers
- create onboarding links for customer channel connection
- list customer channels and fetch channel tokens
- set webhook destinations
- register agent credentials for headless automation
Authentication
Use two tokens:
Use an
hmok_ API key for org and customer management. An hmok_ key belongs to one organization. The key creation response includes organizationPublicId (org_...). Use it in organization routes.
Customer-channel routes, such as channels and webhooks, also need the customer’s ws_ ID in X-Workspace-Id.
List customers
List customers from your organization:ws_ ID when you list that customer’s channels:
hmat_ token returned by GET /meta/channels/{id}/token.
hmat_ token:
WhatsApp
The version-pinned base URL (
.../meta/v22.0 for WhatsApp, .../meta/v25.0
for Instagram) 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
- Send a message: Send through a customer channel.
- Onboarding links: Let customers connect their own channels.