Answer in your own app
Your server calls the agent API and shows the reply in your app (keys stay on your server).
A versioned API for agents, conversations, knowledge, CRM and usage; scoped keys, signed webhooks, an embeddable SDK and a sandbox to try it all safely.
curl https://api.<your-domain>/v1/agents/agt_site_visit/runs \
-H "Authorization: Bearer $MAI_API_KEY" \
-H "Idempotency-Key: crm-lead-88231" \
-d '{"input": "3 BHK under 1.2 Cr, visit Saturday?",
"contact": {"phone": "+9198XXXXXX10"}}'
# 202 Accepted
{"run_id": "run_7Hq...", "status": "queued"}The API is versioned in the URL and only changes additively within a version. Writes accept an Idempotency-Key so retries never create duplicates.
Webhooks are signed with a timestamp so you can verify they came from us and reject replays.
Everything included in this module.
Agents, conversations, knowledge, CRM and usage endpoints.
Least-privilege keys you can rotate.
Subscribe to events; verify signatures.
Chat widget and in-app SDK.
Safe testing with clear limits and request logs.
Send and receive WhatsApp messages from your own systems.
A selection of the version 1 endpoints. The full list, with request and response schemas, is in the API reference.
| Method | Path | Purpose |
|---|---|---|
| POST | /api/public/v1/agents/{id}/execute | Run an agent on a message and get its reply |
| GET | /api/public/v1/conversations | Conversations, newest first, with their messages |
| POST | /api/public/v1/knowledge/search | Search a knowledge base: passages with citations |
| POST | /api/public/v1/crm/leads | Create a lead (contacts, leads and updates too) |
| POST | /api/public/v1/workflows/{id}/execute | Start a workflow with input fields |
| GET | /api/public/v1/usage | This month's usage and API quota |
Your server calls the agent API and shows the reply in your app (keys stay on your server).
Webhooks push conversation events to your systems.
Start an agent run when a lead is created.
Scope it to what your integration needs.
Test calls without touching production.
Receive signed events.
Switch to a production key.
Custom REST API
Available
n8n webhooks
Available
Make webhooks
Available
Zapier webhooks
Available
Still unsure? Ask the team.
Book a walkthrough to see how it fits your business and how a pilot would work for your business.