curl --request POST \
--url https://api.cal.com/v2/event-types \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'cal-api-version: <cal-api-version>' \
--data '{
"lengthInMinutes": 60,
"lengthInMinutesOptions": [
15,
30,
60
],
"title": "Learn the secrets of masterchief!",
"slug": "learn-the-secrets-of-masterchief",
"description": "Discover the culinary wonders of the Argentina by making the best flan ever!",
"bookingFields": [
{
"type": "name",
"label": "<string>",
"placeholder": "<string>",
"disableOnPrefill": true
}
],
"disableGuests": true,
"slotInterval": 123,
"minimumBookingNotice": 123,
"beforeEventBuffer": 123,
"afterEventBuffer": 123,
"scheduleId": 123,
"bookingLimitsCount": {
"day": 1,
"week": 2,
"month": 3,
"year": 4,
"disabled": false
},
"onlyShowFirstAvailableSlot": true,
"bookingLimitsDuration": {
"day": 60,
"week": 120,
"month": 180,
"year": 240
},
"bookingWindow": {
"type": "businessDays",
"value": 5,
"rolling": true
},
"offsetStart": 123,
"bookerLayouts": {
"defaultLayout": "month",
"enabledLayouts": [
"month"
]
},
"confirmationPolicy": {
"type": "always",
"noticeThreshold": {
"unit": "minutes",
"count": 30
},
"blockUnconfirmedBookingsInBooker": true
},
"recurrence": {
"interval": 10,
"occurrences": 10,
"frequency": "yearly"
},
"requiresBookerEmailVerification": true,
"hideCalendarNotes": true,
"lockTimeZoneToggleOnBookingPage": true,
"color": {
"lightThemeHex": "#292929",
"darkThemeHex": "#fafafa"
},
"seats": {
"seatsPerTimeSlot": 4,
"showAttendeeInfo": true,
"showAvailabilityCount": true
},
"customName": "{Event type title} between {Organiser} and {Scheduler}",
"destinationCalendar": {
"integration": "<string>",
"externalId": "<string>"
},
"useDestinationCalendarEmail": true,
"hideCalendarEventDetails": true,
"successRedirectUrl": "https://masterchief.com/argentina/flan/video/9129412",
"hideOrganizerEmail": true,
"calVideoSettings": {
"disableRecordingForOrganizer": true,
"disableRecordingForGuests": true,
"redirectUrlOnExit": {},
"enableAutomaticRecordingForOrganizer": true
},
"locations": [
{
"type": "address",
"address": "123 Example St, City, Country",
"public": true
}
]
}'
{
"status": "success",
"data": {
"id": 1,
"lengthInMinutes": 60,
"lengthInMinutesOptions": [
15,
30,
60
],
"title": "Learn the secrets of masterchief!",
"slug": "learn-the-secrets-of-masterchief",
"description": "Discover the culinary wonders of Argentina by making the best flan ever!",
"locations": [
{
"type": "address",
"address": "123 Example St, City, Country",
"public": true
}
],
"bookingFields": [
{
"type": "name",
"label": "<string>",
"placeholder": "<string>",
"disableOnPrefill": true,
"isDefault": true,
"slug": "name",
"required": true
}
],
"disableGuests": true,
"slotInterval": 60,
"minimumBookingNotice": 0,
"beforeEventBuffer": 0,
"afterEventBuffer": 0,
"recurrence": {
"interval": 10,
"occurrences": 10,
"frequency": "yearly"
},
"metadata": {},
"price": 123,
"currency": "<string>",
"lockTimeZoneToggleOnBookingPage": true,
"seatsPerTimeSlot": {},
"forwardParamsSuccessRedirect": {},
"successRedirectUrl": {},
"isInstantEvent": true,
"seatsShowAvailabilityCount": true,
"scheduleId": 123,
"bookingLimitsCount": {},
"onlyShowFirstAvailableSlot": true,
"bookingLimitsDuration": {},
"bookingWindow": [
{
"type": "businessDays",
"value": 5,
"rolling": true
}
],
"bookerLayouts": {
"defaultLayout": "month",
"enabledLayouts": [
"month"
]
},
"confirmationPolicy": {},
"requiresBookerEmailVerification": true,
"hideCalendarNotes": true,
"color": {
"lightThemeHex": "#292929",
"darkThemeHex": "#fafafa"
},
"seats": {
"seatsPerTimeSlot": 4,
"showAttendeeInfo": true,
"showAvailabilityCount": true
},
"offsetStart": 123,
"customName": "<string>",
"destinationCalendar": {
"integration": "<string>",
"externalId": "<string>"
},
"useDestinationCalendarEmail": true,
"hideCalendarEventDetails": true,
"hideOrganizerEmail": true,
"calVideoSettings": {
"disableRecordingForOrganizer": true,
"disableRecordingForGuests": true,
"redirectUrlOnExit": {},
"enableAutomaticRecordingForOrganizer": true
},
"ownerId": 10,
"users": [
"<string>"
]
}
}
curl --request POST \
--url https://api.cal.com/v2/event-types \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'cal-api-version: <cal-api-version>' \
--data '{
"lengthInMinutes": 60,
"lengthInMinutesOptions": [
15,
30,
60
],
"title": "Learn the secrets of masterchief!",
"slug": "learn-the-secrets-of-masterchief",
"description": "Discover the culinary wonders of the Argentina by making the best flan ever!",
"bookingFields": [
{
"type": "name",
"label": "<string>",
"placeholder": "<string>",
"disableOnPrefill": true
}
],
"disableGuests": true,
"slotInterval": 123,
"minimumBookingNotice": 123,
"beforeEventBuffer": 123,
"afterEventBuffer": 123,
"scheduleId": 123,
"bookingLimitsCount": {
"day": 1,
"week": 2,
"month": 3,
"year": 4,
"disabled": false
},
"onlyShowFirstAvailableSlot": true,
"bookingLimitsDuration": {
"day": 60,
"week": 120,
"month": 180,
"year": 240
},
"bookingWindow": {
"type": "businessDays",
"value": 5,
"rolling": true
},
"offsetStart": 123,
"bookerLayouts": {
"defaultLayout": "month",
"enabledLayouts": [
"month"
]
},
"confirmationPolicy": {
"type": "always",
"noticeThreshold": {
"unit": "minutes",
"count": 30
},
"blockUnconfirmedBookingsInBooker": true
},
"recurrence": {
"interval": 10,
"occurrences": 10,
"frequency": "yearly"
},
"requiresBookerEmailVerification": true,
"hideCalendarNotes": true,
"lockTimeZoneToggleOnBookingPage": true,
"color": {
"lightThemeHex": "#292929",
"darkThemeHex": "#fafafa"
},
"seats": {
"seatsPerTimeSlot": 4,
"showAttendeeInfo": true,
"showAvailabilityCount": true
},
"customName": "{Event type title} between {Organiser} and {Scheduler}",
"destinationCalendar": {
"integration": "<string>",
"externalId": "<string>"
},
"useDestinationCalendarEmail": true,
"hideCalendarEventDetails": true,
"successRedirectUrl": "https://masterchief.com/argentina/flan/video/9129412",
"hideOrganizerEmail": true,
"calVideoSettings": {
"disableRecordingForOrganizer": true,
"disableRecordingForGuests": true,
"redirectUrlOnExit": {},
"enableAutomaticRecordingForOrganizer": true
},
"locations": [
{
"type": "address",
"address": "123 Example St, City, Country",
"public": true
}
]
}'
{
"status": "success",
"data": {
"id": 1,
"lengthInMinutes": 60,
"lengthInMinutesOptions": [
15,
30,
60
],
"title": "Learn the secrets of masterchief!",
"slug": "learn-the-secrets-of-masterchief",
"description": "Discover the culinary wonders of Argentina by making the best flan ever!",
"locations": [
{
"type": "address",
"address": "123 Example St, City, Country",
"public": true
}
],
"bookingFields": [
{
"type": "name",
"label": "<string>",
"placeholder": "<string>",
"disableOnPrefill": true,
"isDefault": true,
"slug": "name",
"required": true
}
],
"disableGuests": true,
"slotInterval": 60,
"minimumBookingNotice": 0,
"beforeEventBuffer": 0,
"afterEventBuffer": 0,
"recurrence": {
"interval": 10,
"occurrences": 10,
"frequency": "yearly"
},
"metadata": {},
"price": 123,
"currency": "<string>",
"lockTimeZoneToggleOnBookingPage": true,
"seatsPerTimeSlot": {},
"forwardParamsSuccessRedirect": {},
"successRedirectUrl": {},
"isInstantEvent": true,
"seatsShowAvailabilityCount": true,
"scheduleId": 123,
"bookingLimitsCount": {},
"onlyShowFirstAvailableSlot": true,
"bookingLimitsDuration": {},
"bookingWindow": [
{
"type": "businessDays",
"value": 5,
"rolling": true
}
],
"bookerLayouts": {
"defaultLayout": "month",
"enabledLayouts": [
"month"
]
},
"confirmationPolicy": {},
"requiresBookerEmailVerification": true,
"hideCalendarNotes": true,
"color": {
"lightThemeHex": "#292929",
"darkThemeHex": "#fafafa"
},
"seats": {
"seatsPerTimeSlot": 4,
"showAttendeeInfo": true,
"showAvailabilityCount": true
},
"offsetStart": 123,
"customName": "<string>",
"destinationCalendar": {
"integration": "<string>",
"externalId": "<string>"
},
"useDestinationCalendarEmail": true,
"hideCalendarEventDetails": true,
"hideOrganizerEmail": true,
"calVideoSettings": {
"disableRecordingForOrganizer": true,
"disableRecordingForGuests": true,
"redirectUrlOnExit": {},
"enableAutomaticRecordingForOrganizer": true
},
"ownerId": 10,
"users": [
"<string>"
]
}
}
Must be set to 2024-06-14
value must be Bearer <token>
where <token>
is api key prefixed with cal_ or managed user access token
The response is of type object
.
Was this page helpful?