curl --request POST \
--url https://api.cal.com/v2/verified-resources/emails/verification-code/verify \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"code": "1ABG2C"
}
'{
"status": "success",
"data": {
"id": 123,
"name": "<string>",
"isManaged": true,
"workingHours": [
{
"days": [
123
],
"startTime": 123,
"endTime": 123,
"userId": 123
}
],
"schedule": [
{
"id": 123,
"days": [
123
],
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"userId": 123,
"eventTypeId": 123,
"date": "2023-11-07T05:31:56Z",
"scheduleId": 123
}
],
"availability": [
"<array>"
],
"timeZone": "<string>",
"isDefault": true,
"isLastSchedule": true,
"readOnly": true,
"dateOverrides": [
{}
]
}
}Use code to verify an email
curl --request POST \
--url https://api.cal.com/v2/verified-resources/emails/verification-code/verify \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"code": "1ABG2C"
}
'{
"status": "success",
"data": {
"id": 123,
"name": "<string>",
"isManaged": true,
"workingHours": [
{
"days": [
123
],
"startTime": 123,
"endTime": 123,
"userId": 123
}
],
"schedule": [
{
"id": 123,
"days": [
123
],
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"userId": 123,
"eventTypeId": 123,
"date": "2023-11-07T05:31:56Z",
"scheduleId": 123
}
],
"availability": [
"<array>"
],
"timeZone": "<string>",
"isDefault": true,
"isLastSchedule": true,
"readOnly": true,
"dateOverrides": [
{}
]
}
}value must be Bearer <token> where <token> is api key prefixed with cal_ or managed user access token
Email to verify.
verification code sent to the email to verify
"1ABG2C"
success, error "success"
Show child attributes
Show child attributes
Was this page helpful?