1. Prepare access
Open Settings > Connect your AI (MCP) and enable access if available to your account. The personal key used by MCP also authenticates this API. You do not need a second key. Store it asANYX_MCP_KEY in your backend’s secret store.
The backend origin is https://anyx.dev. Set ANYX_API_ORIGIN to this HTTPS origin. It is separate from the documentation website and frontend.
Send the key only in the Authorization: Bearer header. OAuth access tokens, application sessions and bot credentials do not authenticate this personal-key API. Never put the key in a URL, browser bundle, repository, log or AI prompt.
2. List groups
SendGET /api/v1/whatsapp/groups. Follow next_cursor until it is null, then let the account owner choose the groups the connector should sync. Save the selected group_id values in your own configuration.
Do not make browser requests. Requests carrying an Origin header are refused, including requests from Anyx’s own browser app. This is a backend integration.
3. Read a selected group
SendGET /api/v1/whatsapp/messages with a returned group_id. Optionally set since to an ISO timestamp with a timezone. Follow all pages with the returned cursor.
The result contains full stored message text after link redaction, within the account’s current plan window. It does not provide attachments, direct messages, imported history or emailed Notes, and capture may be incomplete.
Use the API reference for parameters and results and the OpenClaw/CRM guide for durable synchronization.