Build agents for WhatsApp revenue workflows.

Build AI agents on Mirai's governed commerce layer.

Agent API is Mirai's developer platform - the API surface for external developers, ISVs, and agent runtimes building safe revenue workflows on top of WhatsApp.

Your agent can discover capability and delegate work. Mirai keeps policy, approval, audit, idempotency, and outbound delivery inside the business system.

Sarah T.resolved

Inbox

Search conversations...
ST
Sarah T.2m agovoucher inquiry

Can I use my birthday voucher for a booking this weekend?

AtlasAI Assistantjust now

Yes! Your 20% birthday voucher is already applied. Booking confirmed for Saturday at 3pm.

Type a message...
Resolved
Atlas AI
1.2s avg
bash
curl -X POST https://api.usemirai.app/v1/atlas/messages \
  -H "Authorization: Bearer mirai_agent_<org_hex>_<secret>" \
  -H "Content-Type: application/json" \
  -d '{
    "idempotency_key": "msg-20260420-001",
    "phone_number": "+6591234567",
    "text": "Happy birthday! I can apply your 20% voucher to your next booking.",
    "category": "utility"
  }'
OpenAPI
generated
reference
A2A
discover delegate approve commit
workflow posture
HITL
for risky actions
approval gates
Outbox
safe customer-visible effects
delivery

API surface

Everything your agent needs.

Two-tier org hierarchy

Your developer org manages end-customer orgs. Auth, billing, and assets are organization-owned — not personally owned.

POST /v1/atlas/agents

Atlas AI capability

Call Atlas AI — intent detection, knowledge-grounded responses, and deterministic routing — through the Agent API.

GET /v1/atlas/context/:conversationId

Conversion sessions

Model WhatsApp buying intent as a governed workflow: quote, booking, loyalty, handoff, or follow-up before a customer-visible effect.

A2A / conversion workflow

WhatsApp channel

Connect end-customer WhatsApp accounts via OAuth. All messages flow through Mirai's official WhatsApp Business API.

POST /v1/atlas/channels

Outbound WhatsApp message

Send customer messages through Mirai-managed WhatsApp infrastructure with idempotency and delivery tracking.

POST /v1/atlas/messages

Commerce execution

Run governed commerce actions from an agent while Mirai keeps approval, audit, and idempotency boundaries intact.

POST /v1/atlas/commerce/execute

Pricing

Wholesale rates. Retail margin.

Developer pricing is 50% below Atlas direct. You set end-customer prices.

Most popular

Developer Org

For builders, ISVs, and white-labelers.

$99/month
50,000 calls/mo included
$0.001/call after that
Atlas AI orchestration
WhatsApp channel
Developer console
Start building

Enterprise

For high-volume platforms and chains.

Custom
Unlimited calls
Volume discounts
Dedicated account manager
Custom integrations
SLA & priority support
Contact sales

Pricing and commercial terms are governed by the current subscription and sales-assisted contract path.

How it works

Your agent decides.
Mirai executes.

Send a customer message to your agent. The agent decides what to do — answer, redeem a voucher, book an appointment, run a campaign — and returns the action. Mirai executes it atomically with a correctness guarantee.

  1. 1
    Your agent receives the customer message via Agent API
  2. 2
    Agent calls Atlas AI for intent + knowledge grounding
  3. 3
    Agent returns action — Mirai executes with ledger correctness
response.json
{
  "ok": true,
  "data": {
    "conversation_id": "a6f7b18e-5ef3-4a8e-b86e-92f54f9f5fd8",
    "queued": true,
    "window_open": true,
    "outbox_id": "c1b61f8f-7bca-4f53-98a0-2a6f2f9bb2a7",
    "phone_number": "+6591234567"
  }
}

Start building today.

$99/month. 50,000 calls included. No commitments. Cancel anytime.

Questions? developer-relations@mirai.com