curl --request POST \
--url https://api.cal.com/v2/teams/{teamId}/event-types/{eventTypeId}/create-phone-call \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"yourPhoneNumber": "<string>",
"numberToCall": "<string>",
"calApiKey": "<string>",
"enabled": true,
"templateType": "CUSTOM_TEMPLATE",
"schedulerName": "<string>",
"guestName": "<string>",
"guestEmail": "<string>",
"guestCompany": "<string>",
"beginMessage": "<string>",
"generalPrompt": "<string>"
}'
{
"status": "success",
"data": {
"callId": "<string>",
"agentId": "<string>"
}
}
curl --request POST \
--url https://api.cal.com/v2/teams/{teamId}/event-types/{eventTypeId}/create-phone-call \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"yourPhoneNumber": "<string>",
"numberToCall": "<string>",
"calApiKey": "<string>",
"enabled": true,
"templateType": "CUSTOM_TEMPLATE",
"schedulerName": "<string>",
"guestName": "<string>",
"guestEmail": "<string>",
"guestCompany": "<string>",
"beginMessage": "<string>",
"generalPrompt": "<string>"
}'
{
"status": "success",
"data": {
"callId": "<string>",
"agentId": "<string>"
}
}
value must be Bearer <token>
where <token>
is api key prefixed with cal_
The response is of type object
.
Was this page helpful?