Connect to AI
AI & Machine Learning Bearer Token

Vapi REST API

Voice AI API for conversational phone calls

Vapi provides a Voice AI platform that enables developers to build conversational AI phone agents. The API allows you to create, configure, and manage voice assistants that can handle inbound and outbound phone calls with natural language understanding, custom voices, and integrations with external services. Developers use Vapi to automate customer support, sales calls, appointment scheduling, and other voice-based interactions.

Base URL https://api.vapi.ai

API Endpoints

MethodEndpointDescription
POST/assistantCreate a new voice assistant with custom configuration, voice settings, and conversation flow
GET/assistantList all voice assistants in your account with pagination support
GET/assistant/{id}Retrieve detailed configuration and settings for a specific assistant
PATCH/assistant/{id}Update an existing assistant's configuration, prompts, or voice settings
DELETE/assistant/{id}Delete a voice assistant and remove all associated data
POST/call/phoneInitiate an outbound phone call using a configured voice assistant
GET/callRetrieve a list of all calls with filtering and pagination options
GET/call/{id}Get detailed information about a specific call including transcript and metadata
POST/phone-numberPurchase or import a phone number for inbound call handling
GET/phone-numberList all phone numbers associated with your account
PATCH/phone-number/{id}Update phone number configuration and assign it to an assistant
DELETE/phone-number/{id}Release or delete a phone number from your account
GET/analytics/callsRetrieve analytics and metrics for call performance and usage
POST/webhookConfigure webhook endpoints for real-time call events and notifications
GET/transcript/{callId}Retrieve the full conversation transcript for a completed call

Code Examples

curl -X POST https://api.vapi.ai/call/phone \
  -H 'Authorization: Bearer vapi_abc123xyz456' \
  -H 'Content-Type: application/json' \
  -d '{
    "assistantId": "asst_123456",
    "customer": {
      "number": "+14155551234"
    }
  }'

Use Vapi from Claude / Cursor / ChatGPT

Get a hosted MCP endpoint for Vapi. Paste your Vapi API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls Vapi directly with your credentials — no local install, works on mobile.

create_voice_assistant Create and configure a new AI voice assistant with custom prompts, voice settings, and conversation flows
initiate_outbound_call Start an outbound phone call using a specified voice assistant to a customer phone number
get_call_transcript Retrieve the full conversation transcript and metadata from a completed voice call
analyze_call_metrics Fetch analytics and performance metrics for calls including duration, sentiment, and outcomes
manage_phone_numbers List, purchase, configure, or release phone numbers for inbound call handling

Connect in 60 seconds

Paste your Vapi key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.

Connect Vapi to your AI →

Related APIs