curl --request POST \
--url https://api.cal.com/v2/event-types/{eventTypeId}/private-links \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'cal-api-version: <cal-api-version>' \
--data '
{
"expiresAt": "2024-12-31T23:59:59.000Z",
"maxUsageCount": 10
}
'{
"status": "success",
"data": {
"linkId": "abc123def456",
"eventTypeId": 123,
"isExpired": false,
"bookingUrl": "https://cal.com/d/abc123def456",
"expiresAt": "2025-12-31T23:59:59.000Z"
}
}curl --request POST \
--url https://api.cal.com/v2/event-types/{eventTypeId}/private-links \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'cal-api-version: <cal-api-version>' \
--data '
{
"expiresAt": "2024-12-31T23:59:59.000Z",
"maxUsageCount": 10
}
'{
"status": "success",
"data": {
"linkId": "abc123def456",
"eventTypeId": 123,
"isExpired": false,
"bookingUrl": "https://cal.com/d/abc123def456",
"expiresAt": "2025-12-31T23:59:59.000Z"
}
}Must be set to 2024-09-04. Returns the full booking URL including org slug and event slug.
value must be Bearer <token> where <token> is api key prefixed with cal_ or managed user access token
Was this page helpful?