A live, production-grade harness to onboard, connect and verify every Anrick AI module from a client's own stack — via REST API, webhooks and n8n workflows.
Every paid module is ready the moment payment is verified: it runs on Anrick-hosted data (READY) and you call its actions with POST /api/mcp/tool. Optionally connect your own system (INTEGRATION_IN_PROGRESS → test → CONNECTED). WhatsApp Automation connects through your own Meta WhatsApp Cloud API app. Below: each module's requirements, disclaimer and full action contract, loaded live from /api/modules/catalog.
The fabric is deliberately thin and transparent: every call is observable, every state is checkable, and nothing is fabricated — a module is only LIVE when the integration genuinely answers.
Your app, POS, or ERP initiates. Over HTTPS.
POST /api/mcp/tool
Auth, tenant scoping, and module entitlement handled server-side.
api/anrick-mcp.mjs
External hand-offs: M-Pesa STK, payment callbacks, webhook delivery.
n8n.anrick.ai/webhook/*
Callback writes state; module flips to LIVE only on verified reality.
integration_state
Each entry below is the authoritative catalog record from the live API (GET /api/modules/catalog). Open Requirements, disclaimer & actions on any module to see what it needs before you buy and every action you can run. Filter by functional area.
loading live catalog…
Every module follows the same state machine. The console runs each step as a real API call, and you read the transition back.
Pick a module, then run a lifecycle step or any of the module's actions. The console calls the real Anrick API and prints the actual HTTP response. Success is never mocked.
WhatsApp works differently from the other modules. You bring your own Meta app and WhatsApp Business Account, and Anrick sends and receives through Meta's Cloud API for you. Meta bills message fees directly to you. Setup needs a paid WhatsApp Automation module and the Meta prerequisites below.
Tick each item when it's done. The checklist is saved only in this browser.
Demo tokens can't connect WhatsApp. Sign in with your Anrick account, or paste a bearer token from POST /api/login. The token is kept in this tab only (sessionStorage) and expires after 24 h.
This runs against the live Anrick API. The demo environment (demo@anrick.ai) is resolved server-side, so it's free: no payment gate, no production integration, and demo invoices are never emailed. Anrick automatically pulls the tenant's business profile (logo / business name / tax ID) and the Groq AI rewrites your rough line descriptions into professional invoice copy — without ever touching the amounts.
The same surface the console uses. All responses are tenant-scoped and JWT-protected where marked.
| ENDPOINT | METHOD | PURPOSE | AUTH |
|---|---|---|---|
| GET /api/modules/catalog | GET | Public catalog: every module's requirements, disclaimer, modes and action contract. | none |
| POST /api/login | POST | Get a bearer token (valid 24 h). | email + password |
| POST /api/mcp/tool | POST | Run a module action: {"module","tool","args"}. Hosted, own-system or demo sandbox. 402 PAYMENT_REQUIRED if the module isn't activated. | Bearer |
| GET /api/integrations/:module | GET | Mode, payment/integration state, requirements, guidance (WhatsApp: webhook details). | Bearer |
| POST /api/integrations/:module/connect | POST | {"mode":"hosted"} · {"mode":"connect_own_system","service_url","token","display_name"} · WhatsApp: {"waba_id","phone_number_id","access_token","app_secret"}. | Bearer |
| POST /api/integrations/:module/test | POST | Test the integration (WhatsApp: {"test_to","template","language"}). | Bearer |
| POST /api/integrations/whatsapp/settings | POST | {"auto_reply": true|false}. | Bearer |
| POST {service_url}/{action} | POST | What Anrick calls on your system when connected: JSON args + Authorization: Bearer <your token>, X-Anrick-Client, X-Anrick-Module, X-Anrick-Tool. Reply 2xx JSON within 8 s. | your token |
| PUT /api/module-config/:module | PUT | Activate / configure a module. | Bearer |
| GET /api/module-config/:module | GET | Inspect current config + integration_state. | Bearer |
| POST /webhook/mpesa/stk-push | POST | Initiate M-Pesa STK push via n8n (Daraja live). | n8n |
| GET /api/invoices | GET | Tenant's own invoice rows (production persistence). | Bearer |
| GET /api/export?format= | GET | Tenant-scoped export (JSON / CSV). | Bearer |