Error in Importing the Phone Number
# support
g
Been getting this error when trying to import a twilio phone number into VAPI. Checked all of my organizations in VAPI and couldn't find any where this number is imported. How can I solve this ? Any way I can see which org exactly is using this number in VAPI or maybe reset every VAPI connection from this twilio number ? https://cdn.discordapp.com/attachments/1447995398278090865/1447995398508642468/2b3d7fae-5fe8-4fdf-a39b-bd5d521b8f7c.jpg?ex=69418f4d&is=69403dcd&hm=096a30455c5f9460b373f84fc47bbfd74c145ab6b96c13cb25de731dd5b5aa5b&
v
To identify which organization is using the number +555140404565, use the List Phone Numbers API to search across your organizations. Here’s a sample cURL command:
Copy code
bash
curl https://api.vapi.ai/phone-number \
  -H "Authorization: Bearer <your_token>"
Look for the entry with your number and note the
orgId
and
id
fields. You can then use the Delete Phone Number API to remove it from that org before re-importing. (Reference: information found at https://docs.vapi.ai/api-reference/phone-numbers/list?explorer=true) Source: - [List Phone Numbers API Reference](https://docs.vapi.ai/api-reference/phone-numbers/list?explorer=true)
g
The number was recently purchased and has never been connected to any organization. It's connected to another number that isn't mine. I need to identify and correct this error.
c
Hi Gabriel Henrique, To resolve the issue of importing your Twilio phone number into Vapi, you can identify which organization is using the number by using the [List Phone Numbers API](https://docs.vapi.ai/api-reference/phone-numbers/list?explorer=true). Here's how you can do it: 1. Use the following cURL command to list phone numbers:
Copy code
bash
   curl https://api.vapi.ai/phone-number \
     -H "Authorization: Bearer <your_token>"
2. Look for the entry with your number +555140404565 in the response and note the
orgId
and
id
fields associated with it. 3. Once identified, you can use the [Delete Phone Number API](https://docs.vapi.ai/api-reference/phone-numbers/delete) to remove the number from that organization. 4. After deletion, you should be able to re-import the number into your desired organization. If the number is not found in your Vapi organizations, ensure that it hasn't been associated with any inactive or previously-used organizations. If there's any lingering association, it will need to be cleared from those orgs before re-importing.
g
This number is not associated with any organization that belongs to me. I ran the recommended test and received no response because no number is connected to my account. Both the Twilio number and the VAPI account are new. Is there an error, or is this number associated with a project that is not in use? Please help me solve this.
Any solution?
c
Hi Gabriel Henrique, To solve the issue of importing your Twilio phone number into Vapi, you should confirm which organization currently has the number associated. You can do this by using the [List Phone Numbers API](https://docs.vapi.ai/api-reference/phone-numbers/list?explorer=true) with the following steps:
Copy code
bash
curl https://api.vapi.ai/phone-number \
  -H "Authorization: Bearer <your_token>"
Check the response for your number +555140404565 and locate the associated
orgId
. If found, you can use the [Delete Phone Number API](https://docs.vapi.ai/api-reference/phone-numbers/delete) to remove it from that organization. If the number is not listed under any of your accounts, it's possible there is a record associated with another, potentially inactive, organization. In this case, you may need additional help to identify and clear any existing link before trying to reimport. If you verified that the number is not found and persists with issues, it may require support intervention to resolve any backend discrepancies.
g
I already did that check, and that's why I'm contacting support here. Can't you help solve this?
c
We cleared the error. Try adding it to your account now and let us know if there are any issues