Removing assistant from phone

To remove the assistant from your Vapi-purchased phone and trigger your server URL for inbound calls, use the following API request:

curl --location --request PATCH 'https://api.vapi.ai/phone-number/your_phone_id' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer your-vapi-private-api-key' \
  --data '{
    "assistantId": null,
    "serverUrl": "https://your_server_url"
  }'


This will ensure no assistant handles inbound calls, and Vapi will send call events to your server URL, where you can specify the agent as needed in your backend logic.

Sources:

⤵️ Mention @Vapi Support Bot for follow-ups 🐥

Was this page helpful?