curl --request POST \
--url https://api.cal.com/v2/organizations/{orgId}/teams/{teamId}/event-types/{eventTypeId}/private-links \
--header 'Content-Type: application/json' \
--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/30min",
"expiresAt": "2025-12-31T23:59:59.000Z"
}
}
curl --request POST \
--url https://api.cal.com/v2/organizations/{orgId}/teams/{teamId}/event-types/{eventTypeId}/private-links \
--header 'Content-Type: application/json' \
--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/30min",
"expiresAt": "2025-12-31T23:59:59.000Z"
}
}
For non-platform customers - value must be Bearer <token>
where <token>
is api key prefixed with cal_
For platform customers - OAuth client secret key
For platform customers - OAuth client ID
The response is of type object
.