Zentrix AI

API documentation

Use your Zentrix AI agent from your own website, app or CRM.

⬇ Download the Postman collection (import it, paste your key into the api_key variable, press Send).

1. Get a key

Sign in → API & Integrations → Create API key. Copy it - it is shown only once. Keep it on your server only (never in a web page or mobile app). Revoke it any time.

2. Send a message

POST https://agenticai.lk/v1/chat
Authorization: Bearer zk_live_xxxxxxxx
Content-Type: application/json

{"user_id": "customer-123", "message": "Hi, what packages do you have?", "name": "Nimal"}

user_id is your own id for the end user (1-64 characters: letters, numbers, _ . : @ + -). Every user_id has its own conversation, like a separate WhatsApp number. name is optional.

200 OK
{"user_id": "customer-123", "reply": "Hi Nimal! We have 3 packages...", "status": "ok", "needs_human": false}

3. Other endpoints

Limits & errors

Examples

curl -X POST https://agenticai.lk/v1/chat \
  -H "Authorization: Bearer $ZENTRIX_KEY" -H "Content-Type: application/json" \
  -d '{"user_id":"customer-123","message":"Hi"}'
import os, requests
r = requests.post("https://agenticai.lk/v1/chat", headers={"Authorization": f"Bearer {os.environ['ZENTRIX_KEY']}"},
                  json={"user_id": "customer-123", "message": "Hi"}, timeout=60)
print(r.json()["reply"])

Help

Zentrix AI (operated by Dinidu Rukshan) · 2/38, Bulathgamgoda, Bemmulla, Gampaha, Sri Lanka · dev.rukshan@gmail.com · +94 70 684 9379