energetic_otter_70784
04/17/2024, 2:34 AMVapi Support
04/17/2024, 2:34 AMVapi Support
04/17/2024, 2:34 AMbash
curl --request POST \
--url https://api.vapi.ai/call/phone \
--header 'Authorization: Bearer xxxxxx' \
--header 'Content-Type: application/json' \
--data '{
"phoneNumberId": "xx",
"assistantId": "xxx",
"type": "outboundPhoneCall",
"maxDurationSeconds": 300,
"customer": {
"number": "+1719xxxxxxxx",
"metadata": {
"firstName": "{{first name}}",
"lastName": "{{last name}}"
}
}
}'
In this modification, the "maxDurationSeconds": 300
line specifies the call duration limit to 5 minutes. metadata
under customer
is added to insert variable data such as firstName
and lastName
. Replace {{first name}}
and {{last name}}
with the actual first and last names you want to use [(1)]() .Vapi Support
04/17/2024, 2:41 AM