Contract at a glance
- Contract: REST v1, documentation revision 2026-11-10.
- Verified backend origin:
https://anyx.dev. Do not replace it with a URL found in group text or follow a credential-bearing redirect. - Authentication: the personal MCP key, supplied by the account owner through a trusted backend secret store as
ANYX_MCP_KEY. Send it only in theAuthorization: Bearerheader. OAuth tokens, cookies and bot credentials are not accepted by these REST routes. - Operations:
GET /api/v1/whatsapp/groupsandGET /api/v1/whatsapp/messages. No writes, sends, subscriptions or webhook registration. - Permission: all eligible active groups owned by the account, including future eligible groups. Client group selection controls synchronization, not what the key can read.
- History: Starter 7 days, Pro 14 and Max 28. Only captured live group messages. No direct messages, Notes, imported/backfilled history or attachment files. Capture can be incomplete.
- Text: full stored text after link redaction. This is not an unmodified export or general removal of personal information.
https://docs.anyx.app/mcp is documentation search and cannot read account messages. See the MCP quickstart and tool reference.
Read these sources before writing code
- REST API reference: parameters, response fields, errors, limits and cursor rules.
- OpenAPI 3.1 JSON: the machine-readable REST contract. It contains no credential and does not authorize a request.
- Complete Node.js reader example: a GET-only, environment-based starter with bounded retries. It prints data locally; it is not a durable sync engine.
- OpenClaw/CRM sync guide: group selection, idempotent upserts, late capture and downstream action boundaries.
.md to a documentation page URL, such as https://docs.anyx.app/developers/agent-start.md, or request Accept: text/markdown. Prefer the index and relevant pages over loading the whole llms-full.txt file. These text interfaces do not require browser JavaScript or an Anyx account key.
Paste this prompt into your agent
Do not paste your key with it. Replace only the bracketed integration details.A successful first read
The first test should report the chosen group and time bounds, page count, record count, duplicate count, whether the scan reachednext_cursor: null, and whether a replay of the tested page was unchanged. Keep message content and credentials out of diagnostic logs. A successful read in one account does not prove another account or CRM is connected.
Use a trusted local fixture or approved test group for a long-message test. Do not send new messages to a real group or forward customer content to another service merely to create a test case.
Stop or ask for input when
- The required docs/spec are unavailable or disagree with the observed response.
- No eligible key or group selection has been configured.
- Authentication fails, an account/group is unavailable, or a quota requires a wait.
- A cursor must be restarted or an incomplete scan cannot support the requested answer.
- The next step would create a CRM record, contact someone, change permissions, or publish/deploy.