is it possible to use phoneNumber instead of phone...
# support
h
I found this in Swagger under calls phoneNumber { description: This is the phone number that will be used for the call. To use an existing number, use phoneNumberId instead. Only relevant for outboundPhoneCall and inboundPhoneCall type. { "phoneNumber": { "twilioAccountSid": "string", "twilioAuthToken": "string", "twilioPhoneNumber": "string", "name": "string" } } It says "twilioPhoneNumber": "string" is deprecated, but how would this work without a phone number entered? Is this possible to use a phone number on your twilio account that is not imported to Vapi? Just looking at outbound calls
s
Is there a reason you don’t want to import it into Vapi? You’ll just need your SID and Auth Token — and it’ll be fully connected.
h
its a campaign with 10-15 numbers and inbound needs to stay on HL so I would need to import each one and then manually modify twilio so inbound stays on HL
if
I can send the number to use in the call request that would be awesome
initial inbound gets forwarded to vapi as well, but we use one vapi number to forward all calls to, this way HL still records the call in conversations, and we can assign the contact to a real person if we want
which will forward the call to the real person instead
I just would like to know if this schema I found works and why "twilioPhoneNumber": "string" is deprecated but everything else is not. And how it would even work without using "twilioPhoneNumber": "string"
s
Yep, that schema you found still works — you can send the
twilioPhoneNumber
, SID, and Auth Token directly in the call request without importing the number into Vapi. It’s marked as deprecated just because the preferred way now is to import numbers through the dashboard for easier management and security, but the inline method is still supported and functional. In your case, since you're running a campaign with 10–15 numbers and want inbound to stay on HighLevel, this setup makes total sense. You can rotate outbound numbers by passing them in the payload, and keep using one Vapi number to forward inbound calls, so HL continues tracking and assigning contacts.
h
awesome thanks for the clarification
s
Yup, let me know if you need anything else!