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.
Point your framework at these endpoints, drive any of the 15 modules through its full lifecycle, and watch integration_state progress from NONE → AWAITING_INTEGRATION → INTEGRATION_IN_PROGRESS → TESTING → LIVE in real time.
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 — drive any of them from the console. Filter by functional area.
Every module follows the same state machine. The console sets each state as a real API call; you read the transition back.
Pick a module and a lifecycle action. The console calls the real Anrick API and prints the actual HTTP response — no mocked success, ever.
This runs against the live Anrick API. Because the demo environment (demo@anrick.ai) is server-side-resolved from subscription_status, the module toggles freely — no payment gate, no production integration needed. Great for showing a client the real flow without any cost.
The same surface the console uses. All responses are tenant-scoped and JWT-protected where marked.
| ENDPOINT | METHOD | PURPOSE | AUTH |
|---|---|---|---|
| POST /api/mcp/tool | POST | Invoke a module tool (e.g. invoicing create_invoice). Demo-safe. | Bearer |
| 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 |