How can I detach assistantId from phone number?
# support
f
Hi, I have existing phone numbers which already assigned assistentId. But now I have decided to make a assistent dynamic, but in dashboard there is no opportunity to detach assistantId from phoneNumber
v
To detach an assistantId from a phoneNumber, you can use the Vapi API. Here's how to do it:
Copy code
bash
curl -X DELETE https://api.vapi.ai/phone-number/:id \
     -H "Authorization: Bearer <your_token>"
Replace
:id
with your phone number's ID. After deletion, if you need the phone number, you can reconfigure it without an assistantId, which will cause Vapi to retrieve the assistant from your server dynamically. Sources: - [Vapi API Documentation](https://docs.vapi.ai/api-reference/phone-numbers/delete) - [Vapi Server URL Documentation](https://docs.vapi.ai/server-url/events)
k
You can detach an assistant Id from a phone number, by using the API to update the phone number and set assistant Id to null, as this option isn’t available in the dashboard.
2 Views