curl --request POST \
--url https://api.cal.com/v2/organizations/{orgId}/bookings/block \
--header 'Content-Type: application/json' \
--data '
{
"bookingUid": "booking-uid-123",
"blockType": "EMAIL"
}
'{
"status": "success",
"data": {
"success": true,
"message": "Added to blocklist and 3 bookings cancelled",
"bookingUid": "booking-uid-123",
"cancelledCount": 3,
"blockedValue": "[email protected]"
}
}Add the email or domain of a booking attendee to the organization blocklist. All matching upcoming bookings in the organization are silently cancelled.
curl --request POST \
--url https://api.cal.com/v2/organizations/{orgId}/bookings/block \
--header 'Content-Type: application/json' \
--data '
{
"bookingUid": "booking-uid-123",
"blockType": "EMAIL"
}
'{
"status": "success",
"data": {
"success": true,
"message": "Added to blocklist and 3 bookings cancelled",
"bookingUid": "booking-uid-123",
"cancelledCount": 3,
"blockedValue": "[email protected]"
}
}value must be Bearer <token> where <token> is api key prefixed with cal_, managed user access token, or OAuth access token
For platform customers - OAuth client secret key
For platform customers - OAuth client ID
The UID of the booking whose attendee should be blocked
"booking-uid-123"
Whether to block by email or domain. EMAIL blocks the specific booker email. DOMAIN blocks all emails from the same domain.
EMAIL, DOMAIN "EMAIL"
Was this page helpful?