api.voice-agents.miraiminds.co, and is not going away. Nothing in your
integration changes because v2 exists.
Migrate when you want one of these:
GETon a call — v1 has no way to read a call’s status, only webhooks.- Wallet balance and ledger over the API.
- One auth header instead of three.
- Idempotent call creation.
- The published tier rate card.
Hosts
Authentication
Three headers become one. The workspace is implied by the key, so there is no
way to accidentally address the wrong workspace with the right credentials.
Endpoints
Fields
Creating an agent / assistant
Placing a call
v1 → v2 call request
v1 → v2 response
Statuses
v1’s status vocabulary is hyphenated and mixes phases with outcomes. v2 uses snake_case and separatesstatus from ended_reason.
Webhooks
v1 → v2 webhook body
metadatais gone. v1 echoed an arbitrary object back on every event. In v2, correlate ondata.call.id— store thecall_idwe return fromPOST /v2/callsagainst your own record.recordingUrlis not in v2. Recordings are not exposed through the v2 API; ask your Mirai contact.creditsbecomescoston the call itself, in rupees rather than credit units, and the running balance moves toGET /v2/wallet.- No
end-of-callanalysis event yet. Post-call analytics (AI summary + QA score on every call) is part of every tier and its v2 API surface is rolling out — see the roadmap. Until it lands, v1’sanalysisPlanis the only API surface for post-call analysis.
Errors
v1’s success responses wrap the payload in
{ status_code, message, data }. v2
returns the resource itself. See the error reference.
A migration that fits in an afternoon
- Get a v2 key. Keep your v1 credentials — you will run both for a while.
- Recreate your assistants as agents. Move the opening line out
of
systemPromptintofirst_message; rename yourpayloadkeys to thevariableskeys your prompt references. - Point a new webhook route at the v2 signature scheme. Do not modify the v1 route — the schemes are incompatible and you need both live during cutover.
- Switch one low-volume campaign to
POST /v2/calls. Compare outcomes against the same campaign’s v1 numbers for a day. - Move the rest. Leave numbers, knowledge base and tools on v1.