how to add forwarding number in assistant through ...
# support
v
@Kavish To add a forwarding number to your assistant through the API, you would typically use the
Create Assistant
or
Update Assistant
API endpoint, depending on whether you are creating a new assistant or updating an existing one. However, as per the context provided, you should be cautious with the
forwardingPhoneNumber
attribute. If you are experiencing errors or are unsure about the correct format, it might be best to omit this attribute or set it to null or an empty string ('') to avoid issues. If you are ready to proceed and have the correct format for the forwarding number, here's a general outline of how you might include it in your API request:
Copy code
json
{
  "name": "Your Assistant Name",
  "forwardingPhoneNumber": "+1234567890", // Replace with your actual forwarding number
  // ... other necessary attributes for your assistant
}
Please replace
+1234567890
with the actual phone number you wish to forward calls to, including the country code. If you need further assistance with the API call or have specific questions about the parameters, feel free to ask!
You can continue this conversation by mentioning me in the message.
k
@Vapi should i have to keep country code or not
v
@Kavish Yes, you should include the country code when adding a forwarding number. The country code is essential for ensuring that the phone number is correctly interpreted in an international format, which is typically required by APIs for phone number fields. Make sure to prefix the country code with a plus sign (+) followed by the country code, area code, and local number. For example:
+1
for the United States,
+44
for the United Kingdom, etc.
k
@Vapi thank you
v
@Kavish Sweet. Have a great day!