MODULE INTEGRATION TEST HUB  ·  intergrations.anrick.ai

Test the Anrick integration fabric against your client's framework.

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 NONEAWAITING_INTEGRATIONINTEGRATION_IN_PROGRESSTESTINGLIVE in real time.

15 integration modules in the catalog
7+integration lifecycle states
REST+WHAPI & webhook bindings
n8n workflow-driven callbacks
HOW IT CONNECTS

Four layers between your framework and the live module.

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.

🛰️

Client Framework

Your app, POS, or ERP initiates. Over HTTPS.

POST /api/mcp/tool
🔌

Anrick API

Auth, tenant scoping, and module entitlement handled server-side.

api/anrick-mcp.mjs
⚙️

n8n Workflow

External hand-offs: M-Pesa STK, payment callbacks, webhook delivery.

n8n.anrick.ai/webhook/*

Live State

Callback writes state; module flips to LIVE only on verified reality.

integration_state
MODULE CATALOG

15 modules, one contract.

Each entry below is the authoritative catalog record from the live API — drive any of them from the console. Filter by functional area.

INTEGRATION LIFECYCLE

From first touch to LIVE — observably.

Every module follows the same state machine. The console sets each state as a real API call; you read the transition back.

1
Activate & ConfigurePUT /api/module-config/:module with status: configuring. Creates the tenant module row and prepares the integration contract.
2
Await External SignalsState AWAITING_INTEGRATION. The module listens for the client framework's first real call — webhook, API, or payment signal.
3
Integration In ProgressState INTEGRATION_IN_PROGRESS. Call flows through the fabric to n8n and back; handshakes are logged, not assumed.
4
Test & VerifyState TESTING. Reconciled against real returns — e.g. a payment callback, an invoice persisted with an external_id.
5
LiveState LIVE. Only promoted when the integration genuinely answers. LIVE modules are protected against deletion (409 LIVE_MODULE).
LIVE TEST CONSOLE

Drive a module like a client would.

Pick a module and a lifecycle action. The console calls the real Anrick API and prints the actual HTTP response — no mocked success, ever.

anrick_integration_fabric — live connected
demo resolves server-side from subscription_status (internal_demo/demo). production requires a PAYMENT_VERIFIED module — otherwise the API returns PRODUCTION_ONLY / INTEGRATION_NOT_CONFIGURED. That is correct behaviour.
LIVE DEMO — INVOICING MODULE

Create a real invoice, in demo mode, free.

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.

invoicing::create_invoice — demo docker_bearer
TOKEN: run once on any machine with curl
curl -s -X POST https://anrick.ai/api/login -H "Content-Type: application/json" -d '{"email":"demo@anrick.ai","password":"<demo-password>"}'
...then paste the token field above. Token is kept only in this browser tab (localStorage) and expires in 24h. Demo create returns environment:"demo" — it never touches payment or a real client system, so it's free to run repeatedly.
API SURFACE

Bind these from your client framework.

The same surface the console uses. All responses are tenant-scoped and JWT-protected where marked.

ENDPOINTMETHODPURPOSEAUTH
POST /api/mcp/toolPOSTInvoke a module tool (e.g. invoicing create_invoice). Demo-safe.Bearer
PUT /api/module-config/:modulePUTActivate / configure a module.Bearer
GET /api/module-config/:moduleGETInspect current config + integration_state.Bearer
POST /webhook/mpesa/stk-pushPOSTInitiate M-Pesa STK push via n8n (Daraja live).n8n
GET /api/invoicesGETTenant's own invoice rows (production persistence).Bearer
GET /api/export?format=GETTenant-scoped export (JSON / CSV).Bearer