POST
/
v2
/
teams
/
{teamId}
/
event-types
/
{eventTypeId}
/
create-phone-call
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>"
  }
}

Headers

Authorization
string
required

value must be Bearer <token> where <token> is api key prefixed with cal_

Path Parameters

eventTypeId
number
required
orgId
number
required

Body

application/json

Response

201 - application/json

The response is of type object.