Integrations

Vapi

Put your Vapi assistant on a TryVox number. It answers calls, and it can call out.

Use a TryVox number, such as an Indian number, with your Vapi assistant. Callers reach the assistant, and the assistant can call customers from that number.

How the call flows

Inbound:   Caller ──▶ TryVox number ──▶ TryVox ──▶ your Vapi assistant

Outbound:  Your app ── TryVox API (or Vapi) ──▶ Vapi assistant ──▶ TryVox ──▶ customer

Vapi runs the conversation: prompt, voice, model and tools. TryVox carries the phone call.

Before you start

  • An active TryVox number, and approved KYC.
  • A Vapi assistant.
  • Your Vapi Private API key: Vapi dashboard → Settings → API Keys.

Connect

  1. TryVox dashboard → AI Agents → Connect provider → Vapi. Paste the Private key, then Connect.
  2. Open the integration → Connect number. Pick your TryVox number and your assistant, then Connect.

TryVox sets up the Vapi side for you: a SIP trunk, and the number in Vapi's Phone Numbers, shown as TryVox +91…. You don't need to change anything in Vapi.

Test inbound

Call your TryVox number from your phone. Your Vapi assistant answers.

Test outbound

From your app, through TryVox. Pass customer details as variables. See Start an AI Outbound Call.

curl -X POST https://api.tryvox.io/v1/ai/integrations/$INTEGRATION_ID/calls \
  -u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN \
  -H "Content-Type: application/json" \
  -d '{ "to": "+919812345678", "dynamic_variables": { "customer_name": "Rahul" } }'

The variables reach the assistant as Vapi variable values, so a prompt using {{customer_name}} says "Rahul".

From Vapi. Start a call in Vapi from the TryVox +91… phone number. It goes out through TryVox.

Working example: set it up over the API

# 1. Connect Vapi. Keep data.id as INTEGRATION_ID.
curl -X POST https://api.tryvox.io/v1/ai/integrations \
  -u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN -H "Content-Type: application/json" \
  -d '{ "provider": "vapi", "name": "Support assistant", "api_key": "<vapi-private-key>" }'

# 2. List your assistants. Use data.agents[].id
curl https://api.tryvox.io/v1/ai/integrations/$INTEGRATION_ID/agents \
  -u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN

# 3. Connect your number to one
curl -X POST https://api.tryvox.io/v1/ai/integrations/$INTEGRATION_ID/bindings \
  -u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN -H "Content-Type: application/json" \
  -d '{ "tryvox_e164": "+918045671234", "provider_agent_id": "<assistant-id>" }'

All endpoints: AI Agents API.

Common problems

ProblemFix
Key invalid when connectingUse the Private key, not the Public one.
The number still plays your old applicationAn AI binding takes priority. Check the number is connected under AI Agents.
Calls stop working after you edit VapiDon't delete the TryVox +91… phone number or the TryVox Trunk credential in Vapi. Disconnect the number in TryVox instead, and TryVox cleans up.
400 NO_BINDING on outboundThe integration has no bound number yet. Do Connect number first.

On this page