pub struct UpdateTwilioPhoneNumberDto {Show 13 fields
pub fallback_destination: Option<ImportTwilioPhoneNumberDtoFallbackDestination>,
pub hooks: Option<Vec<ImportTwilioPhoneNumberDtoHooksInner>>,
pub sms_enabled: Option<bool>,
pub name: Option<String>,
pub assistant_id: Option<String>,
pub workflow_id: Option<String>,
pub squad_id: Option<String>,
pub server: Option<Server>,
pub number: Option<String>,
pub twilio_account_sid: Option<String>,
pub twilio_auth_token: Option<String>,
pub twilio_api_key: Option<String>,
pub twilio_api_secret: Option<String>,
}
Fields§
§fallback_destination: Option<ImportTwilioPhoneNumberDtoFallbackDestination>
§hooks: Option<Vec<ImportTwilioPhoneNumberDtoHooksInner>>
This is the hooks that will be used for incoming calls to this phone number.
sms_enabled: Option<bool>
Controls whether Vapi sets the messaging webhook URL on the Twilio number during import. If set to false
, Vapi will not update the Twilio messaging URL, leaving it as is. If true
or omitted (default), Vapi will configure both the voice and messaging URLs. @default true
name: Option<String>
This is the name of the phone number. This is just for your own reference.
assistant_id: Option<String>
This is the assistant that will be used for incoming calls to this phone number. If neither assistantId
, squadId
nor workflowId
is set, assistant-request
will be sent to your Server URL. Check ServerMessage
and ServerMessageResponse
for the shape of the message and response that is expected.
workflow_id: Option<String>
This is the workflow that will be used for incoming calls to this phone number. If neither assistantId
, squadId
, nor workflowId
is set, assistant-request
will be sent to your Server URL. Check ServerMessage
and ServerMessageResponse
for the shape of the message and response that is expected.
squad_id: Option<String>
This is the squad that will be used for incoming calls to this phone number. If neither assistantId
, squadId
, nor workflowId
is set, assistant-request
will be sent to your Server URL. Check ServerMessage
and ServerMessageResponse
for the shape of the message and response that is expected.
server: Option<Server>
This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. The order of precedence is: 1. assistant.server 2. phoneNumber.server 3. org.server
number: Option<String>
These are the digits of the phone number you own on your Twilio.
twilio_account_sid: Option<String>
This is the Twilio Account SID for the phone number.
twilio_auth_token: Option<String>
This is the Twilio Auth Token for the phone number.
twilio_api_key: Option<String>
This is the Twilio API Key for the phone number.
twilio_api_secret: Option<String>
This is the Twilio API Secret for the phone number.
Implementations§
Source§impl UpdateTwilioPhoneNumberDto
impl UpdateTwilioPhoneNumberDto
pub fn new() -> UpdateTwilioPhoneNumberDto
Trait Implementations§
Source§impl Clone for UpdateTwilioPhoneNumberDto
impl Clone for UpdateTwilioPhoneNumberDto
Source§fn clone(&self) -> UpdateTwilioPhoneNumberDto
fn clone(&self) -> UpdateTwilioPhoneNumberDto
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more