diff --git a/apps/api/v2/swagger/documentation.json b/apps/api/v2/swagger/documentation.json index 7553780068..36dcbc6d12 100644 --- a/apps/api/v2/swagger/documentation.json +++ b/apps/api/v2/swagger/documentation.json @@ -1193,7 +1193,7 @@ }, { "name": "eventSlug", - "required": false, + "required": true, "in": "query", "description": "Slug of team event type to return.", "schema": { @@ -3639,7 +3639,7 @@ }, { "name": "username", - "required": false, + "required": true, "in": "query", "description": "The username of the user to get event types for. If only username provided will get all event types.", "schema": { @@ -3648,7 +3648,7 @@ }, { "name": "eventSlug", - "required": false, + "required": true, "in": "query", "description": "Slug of event type to return. Notably, if eventSlug is provided then username must be provided too, because multiple users can have event with same slug.", "schema": { @@ -3657,7 +3657,7 @@ }, { "name": "usernames", - "required": false, + "required": true, "in": "query", "description": "Get dynamic event type for multiple usernames separated by comma. e.g `usernames=alice,bob`", "schema": { @@ -5033,6 +5033,95 @@ ] } }, + "/v2/stripe/connect": { + "get": { + "operationId": "StripeController_redirect", + "parameters": [ + { + "name": "Authorization", + "required": true, + "in": "header", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StripConnectOutputResponseDto" + } + } + } + } + }, + "tags": [ + "Stripe" + ] + } + }, + "/v2/stripe/save": { + "get": { + "operationId": "StripeController_save", + "parameters": [ + { + "name": "state", + "required": true, + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "code", + "required": true, + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StripCredentialsSaveOutputResponseDto" + } + } + } + } + }, + "tags": [ + "Stripe" + ] + } + }, + "/v2/stripe/check": { + "get": { + "operationId": "StripeController_check", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StripCredentialsCheckOutputResponseDto" + } + } + } + } + }, + "tags": [ + "Stripe" + ] + } + }, "/v2/timezones": { "get": { "operationId": "TimezonesController_getTimeZones", @@ -6346,7 +6435,8 @@ }, "required": [ "type", - "value" + "value", + "rolling" ] }, "CalendarDaysWindow_2024_06_14": { @@ -6374,7 +6464,8 @@ }, "required": [ "type", - "value" + "value", + "rolling" ] }, "RangeWindow_2024_06_14": { @@ -6406,227 +6497,6 @@ "value" ] }, - "BaseBookingLimitsCount_2024_06_14": { - "type": "object", - "properties": { - "day": { - "type": "number", - "description": "The number of bookings per day", - "example": 1 - }, - "week": { - "type": "number", - "description": "The number of bookings per week", - "example": 2 - }, - "month": { - "type": "number", - "description": "The number of bookings per month", - "example": 3 - }, - "year": { - "type": "number", - "description": "The number of bookings per year", - "example": 4 - } - } - }, - "Disabled_2024_06_14": { - "type": "object", - "properties": { - "disabled": { - "type": "boolean", - "description": "Indicates if the option is disabled", - "example": true, - "default": false - } - }, - "required": [ - "disabled" - ] - }, - "BaseBookingLimitsDuration_2024_06_14": { - "type": "object", - "properties": { - "day": { - "type": "number", - "description": "The duration of bookings per day (must be a multiple of 15)", - "example": 60 - }, - "week": { - "type": "number", - "description": "The duration of bookings per week (must be a multiple of 15)", - "example": 120 - }, - "month": { - "type": "number", - "description": "The duration of bookings per month (must be a multiple of 15)", - "example": 180 - }, - "year": { - "type": "number", - "description": "The duration of bookings per year (must be a multiple of 15)", - "example": 240 - } - } - }, - "Recurrence_2024_06_14": { - "type": "object", - "properties": { - "interval": { - "type": "number", - "example": 10, - "description": "Repeats every {count} week | month | year" - }, - "occurrences": { - "type": "number", - "example": 10, - "description": "Repeats for a maximum of {count} events" - }, - "frequency": { - "type": "string", - "enum": [ - "yearly", - "monthly", - "weekly" - ] - } - }, - "required": [ - "interval", - "occurrences", - "frequency" - ] - }, - "NoticeThreshold_2024_06_14": { - "type": "object", - "properties": { - "unit": { - "type": "string", - "description": "The unit of time for the notice threshold (e.g., minutes, hours)", - "example": "minutes" - }, - "count": { - "type": "number", - "description": "The time value for the notice threshold", - "example": 30 - } - }, - "required": [ - "unit", - "count" - ] - }, - "BaseConfirmationPolicy_2024_06_14": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "The policy that determines when confirmation is required", - "example": "always" - }, - "noticeThreshold": { - "description": "The notice threshold required before confirmation is needed. Required when type is 'time'.", - "allOf": [ - { - "$ref": "#/components/schemas/NoticeThreshold_2024_06_14" - } - ] - } - }, - "required": [ - "type" - ] - }, - "Seats_2024_06_14": { - "type": "object", - "properties": { - "seatsPerTimeSlot": { - "type": "number", - "description": "Number of seats available per time slot", - "example": 4 - }, - "showAttendeeInfo": { - "type": "boolean", - "description": "Show attendee information to other guests", - "example": true - }, - "showAvailabilityCount": { - "type": "boolean", - "description": "Display the count of available seats", - "example": true - } - }, - "required": [ - "seatsPerTimeSlot", - "showAttendeeInfo", - "showAvailabilityCount" - ] - }, - "BookerLayouts_2024_06_14": { - "type": "object", - "properties": { - "defaultLayout": { - "type": "string", - "enum": [ - "month", - "week", - "column" - ] - }, - "enabledLayouts": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "month", - "week", - "column" - ] - } - } - }, - "required": [ - "defaultLayout", - "enabledLayouts" - ] - }, - "EventTypeColor_2024_06_14": { - "type": "object", - "properties": { - "lightThemeHex": { - "type": "string", - "description": "Color used for event types in light theme", - "example": "#292929" - }, - "darkThemeHex": { - "type": "string", - "description": "Color used for event types in dark theme", - "example": "#fafafa" - } - }, - "required": [ - "lightThemeHex", - "darkThemeHex" - ] - }, - "DestinationCalendar_2024_06_14": { - "type": "object", - "properties": { - "integration": { - "type": "string", - "description": "The integration type of the destination calendar. Refer to the /api/v2/calendars endpoint to retrieve the integration type of your connected calendars." - }, - "externalId": { - "type": "string", - "description": "The external ID of the destination calendar. Refer to the /api/v2/calendars endpoint to retrieve the external IDs of your connected calendars." - } - }, - "required": [ - "integration", - "externalId" - ] - }, "CreateEventTypeInput_2024_06_14": { "type": "object", "properties": { @@ -6732,124 +6602,63 @@ "description": "If you want that this event has different schedule than user's default one you can specify it here." }, "bookingLimitsCount": { - "description": "Limit how many times this event can be booked", - "oneOf": [ - { - "$ref": "#/components/schemas/BaseBookingLimitsCount_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] + "type": "object", + "description": "Limit how many times this event can be booked" }, "onlyShowFirstAvailableSlot": { "type": "boolean", "description": "This will limit your availability for this event type to one slot per day, scheduled at the earliest available time." }, "bookingLimitsDuration": { - "description": "Limit total amount of time that this event can be booked", - "oneOf": [ - { - "$ref": "#/components/schemas/BaseBookingLimitsDuration_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] + "type": "object", + "description": "Limit total amount of time that this event can be booked" }, "bookingWindow": { + "type": "array", "description": "Limit how far in the future this event can be booked", - "oneOf": [ - { - "$ref": "#/components/schemas/BusinessDaysWindow_2024_06_14" - }, - { - "$ref": "#/components/schemas/CalendarDaysWindow_2024_06_14" - }, - { - "$ref": "#/components/schemas/RangeWindow_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BusinessDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/CalendarDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/RangeWindow_2024_06_14" + } + ] + } }, "offsetStart": { "type": "number", "description": "Offset timeslots shown to bookers by a specified number of minutes" }, - "bookerLayouts": { - "description": "Should booker have week, month or column view. Specify default layout and enabled layouts user can pick.", - "allOf": [ - { - "$ref": "#/components/schemas/BookerLayouts_2024_06_14" - } - ] - }, - "confirmationPolicy": { - "description": "Specify how the booking needs to be manually confirmed before it is pushed to the integrations and a confirmation mail is sent.", - "oneOf": [ - { - "$ref": "#/components/schemas/BaseConfirmationPolicy_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] - }, - "recurrence": { - "description": "Create a recurring event type.", - "oneOf": [ - { - "$ref": "#/components/schemas/Recurrence_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] - }, - "requiresBookerEmailVerification": { - "type": "boolean" - }, - "hideCalendarNotes": { - "type": "boolean" - }, - "lockTimeZoneToggleOnBookingPage": { - "type": "boolean" - }, - "color": { - "$ref": "#/components/schemas/EventTypeColor_2024_06_14" - }, - "seats": { - "description": "Create an event type with multiple seats.", - "oneOf": [ - { - "$ref": "#/components/schemas/Seats_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] - }, "customName": { "type": "string", "description": "Customizable event name with valid variables: \n {Event type title}, {Organiser}, {Scheduler}, {Location}, {Organiser first name}, \n {Scheduler first name}, {Scheduler last name}, {Event duration}, {LOCATION}, \n {HOST/ATTENDEE}, {HOST}, {ATTENDEE}, {USER}", "example": "{Event type title} between {Organiser} and {Scheduler}" - }, - "destinationCalendar": { - "$ref": "#/components/schemas/DestinationCalendar_2024_06_14" - }, - "useDestinationCalendarEmail": { - "type": "boolean" - }, - "hideCalendarEventDetails": { - "type": "boolean" } }, "required": [ "lengthInMinutes", "title", - "slug" + "slug", + "description", + "locations", + "bookingFields", + "disableGuests", + "slotInterval", + "minimumBookingNotice", + "beforeEventBuffer", + "afterEventBuffer", + "scheduleId", + "bookingLimitsCount", + "onlyShowFirstAvailableSlot", + "bookingLimitsDuration", + "bookingWindow", + "offsetStart", + "customName" ] }, "EmailDefaultFieldOutput_2024_06_14": { @@ -7646,6 +7455,104 @@ "isDefault" ] }, + "BaseBookingLimitsDuration_2024_06_14": { + "type": "object", + "properties": { + "day": { + "type": "number", + "minimum": 15, + "description": "The duration of bookings per day (must be a multiple of 15)", + "example": 60 + }, + "week": { + "type": "number", + "minimum": 15, + "description": "The duration of bookings per week (must be a multiple of 15)", + "example": 120 + }, + "month": { + "type": "number", + "minimum": 15, + "description": "The duration of bookings per month (must be a multiple of 15)", + "example": 180 + }, + "year": { + "type": "number", + "minimum": 15, + "description": "The duration of bookings per year (must be a multiple of 15)", + "example": 240 + }, + "disabled": { + "type": "boolean", + "default": false + } + } + }, + "BookerLayouts_2024_06_14": { + "type": "object", + "properties": {} + }, + "EventTypeColor_2024_06_14": { + "type": "object", + "properties": { + "lightThemeHex": { + "type": "string", + "description": "Color used for event types in light theme", + "example": "#292929" + }, + "darkThemeHex": { + "type": "string", + "description": "Color used for event types in dark theme", + "example": "#fafafa" + } + }, + "required": [ + "lightThemeHex", + "darkThemeHex" + ] + }, + "Seats_2024_06_14": { + "type": "object", + "properties": { + "seatsPerTimeSlot": { + "type": "number", + "description": "Number of seats available per time slot", + "example": 4 + }, + "showAttendeeInfo": { + "type": "boolean", + "description": "Show attendee information to other guests", + "example": true + }, + "showAvailabilityCount": { + "type": "boolean", + "description": "Display the count of available seats", + "example": true + } + }, + "required": [ + "seatsPerTimeSlot", + "showAttendeeInfo", + "showAvailabilityCount" + ] + }, + "DestinationCalendar_2024_06_14": { + "type": "object", + "properties": { + "integration": { + "type": "string", + "description": "The integration type of the destination calendar. Refer to the /api/v2/calendars endpoint to retrieve the integration type of your connected calendars." + }, + "externalId": { + "type": "string", + "description": "The external ID of the destination calendar. Refer to the /api/v2/calendars endpoint to retrieve the external IDs of your connected calendars." + } + }, + "required": [ + "integration", + "externalId" + ] + }, "EventTypeOutput_2024_06_14": { "type": "object", "properties": { @@ -7857,9 +7764,6 @@ "useDestinationCalendarEmail": { "type": "boolean" }, - "hideCalendarEventDetails": { - "type": "boolean" - }, "ownerId": { "type": "number", "example": 10 @@ -7909,7 +7813,6 @@ "customName", "destinationCalendar", "useDestinationCalendarEmail", - "hideCalendarEventDetails", "ownerId", "users" ] @@ -8087,120 +7990,64 @@ "description": "If you want that this event has different schedule than user's default one you can specify it here." }, "bookingLimitsCount": { - "description": "Limit how many times this event can be booked", - "oneOf": [ - { - "$ref": "#/components/schemas/BaseBookingLimitsCount_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] + "type": "object", + "description": "Limit how many times this event can be booked" }, "onlyShowFirstAvailableSlot": { "type": "boolean", "description": "This will limit your availability for this event type to one slot per day, scheduled at the earliest available time." }, "bookingLimitsDuration": { - "description": "Limit total amount of time that this event can be booked", - "oneOf": [ - { - "$ref": "#/components/schemas/BaseBookingLimitsDuration_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] + "type": "object", + "description": "Limit total amount of time that this event can be booked" }, "bookingWindow": { + "type": "array", "description": "Limit how far in the future this event can be booked", - "oneOf": [ - { - "$ref": "#/components/schemas/BusinessDaysWindow_2024_06_14" - }, - { - "$ref": "#/components/schemas/CalendarDaysWindow_2024_06_14" - }, - { - "$ref": "#/components/schemas/RangeWindow_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BusinessDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/CalendarDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/RangeWindow_2024_06_14" + } + ] + } }, "offsetStart": { "type": "number", "description": "Offset timeslots shown to bookers by a specified number of minutes" }, - "bookerLayouts": { - "description": "Should booker have week, month or column view. Specify default layout and enabled layouts user can pick.", - "allOf": [ - { - "$ref": "#/components/schemas/BookerLayouts_2024_06_14" - } - ] - }, - "confirmationPolicy": { - "description": "Specify how the booking needs to be manually confirmed before it is pushed to the integrations and a confirmation mail is sent.", - "oneOf": [ - { - "$ref": "#/components/schemas/BaseConfirmationPolicy_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] - }, - "recurrence": { - "description": "Create a recurring event type.", - "oneOf": [ - { - "$ref": "#/components/schemas/Recurrence_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] - }, - "requiresBookerEmailVerification": { - "type": "boolean" - }, - "hideCalendarNotes": { - "type": "boolean" - }, - "lockTimeZoneToggleOnBookingPage": { - "type": "boolean" - }, - "color": { - "$ref": "#/components/schemas/EventTypeColor_2024_06_14" - }, - "seats": { - "description": "Create an event type with multiple seats.", - "oneOf": [ - { - "$ref": "#/components/schemas/Seats_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] - }, "customName": { "type": "string", "description": "Customizable event name with valid variables: \n {Event type title}, {Organiser}, {Scheduler}, {Location}, {Organiser first name}, \n {Scheduler first name}, {Scheduler last name}, {Event duration}, {LOCATION}, \n {HOST/ATTENDEE}, {HOST}, {ATTENDEE}, {USER}", "example": "{Event type title} between {Organiser} and {Scheduler}" - }, - "destinationCalendar": { - "$ref": "#/components/schemas/DestinationCalendar_2024_06_14" - }, - "useDestinationCalendarEmail": { - "type": "boolean" - }, - "hideCalendarEventDetails": { - "type": "boolean" } - } + }, + "required": [ + "lengthInMinutes", + "title", + "slug", + "description", + "locations", + "bookingFields", + "disableGuests", + "slotInterval", + "minimumBookingNotice", + "beforeEventBuffer", + "afterEventBuffer", + "scheduleId", + "bookingLimitsCount", + "onlyShowFirstAvailableSlot", + "bookingLimitsDuration", + "bookingWindow", + "offsetStart", + "customName" + ] }, "UpdateEventTypeOutput_2024_06_14": { "type": "object", @@ -9423,32 +9270,6 @@ "data" ] }, - "Host": { - "type": "object", - "properties": { - "userId": { - "type": "number", - "description": "Which user is the host of this event" - }, - "mandatory": { - "type": "boolean", - "description": "Only relevant for round robin event types. If true then the user must attend round robin event always." - }, - "priority": { - "type": "string", - "enum": [ - "lowest", - "low", - "medium", - "high", - "highest" - ] - } - }, - "required": [ - "userId" - ] - }, "CreateTeamEventTypeInput_2024_06_14": { "type": "object", "properties": { @@ -9554,126 +9375,50 @@ "description": "If you want that this event has different schedule than user's default one you can specify it here." }, "bookingLimitsCount": { - "description": "Limit how many times this event can be booked", - "oneOf": [ - { - "$ref": "#/components/schemas/BaseBookingLimitsCount_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] + "type": "object", + "description": "Limit how many times this event can be booked" }, "onlyShowFirstAvailableSlot": { "type": "boolean", "description": "This will limit your availability for this event type to one slot per day, scheduled at the earliest available time." }, "bookingLimitsDuration": { - "description": "Limit total amount of time that this event can be booked", - "oneOf": [ - { - "$ref": "#/components/schemas/BaseBookingLimitsDuration_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] + "type": "object", + "description": "Limit total amount of time that this event can be booked" }, "bookingWindow": { + "type": "array", "description": "Limit how far in the future this event can be booked", - "oneOf": [ - { - "$ref": "#/components/schemas/BusinessDaysWindow_2024_06_14" - }, - { - "$ref": "#/components/schemas/CalendarDaysWindow_2024_06_14" - }, - { - "$ref": "#/components/schemas/RangeWindow_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BusinessDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/CalendarDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/RangeWindow_2024_06_14" + } + ] + } }, "offsetStart": { "type": "number", "description": "Offset timeslots shown to bookers by a specified number of minutes" }, - "bookerLayouts": { - "description": "Should booker have week, month or column view. Specify default layout and enabled layouts user can pick.", - "allOf": [ - { - "$ref": "#/components/schemas/BookerLayouts_2024_06_14" - } - ] - }, - "confirmationPolicy": { - "description": "Specify how the booking needs to be manually confirmed before it is pushed to the integrations and a confirmation mail is sent.", - "oneOf": [ - { - "$ref": "#/components/schemas/BaseConfirmationPolicy_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] - }, - "recurrence": { - "description": "Create a recurring event type.", - "oneOf": [ - { - "$ref": "#/components/schemas/Recurrence_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] - }, - "requiresBookerEmailVerification": { - "type": "boolean" - }, - "hideCalendarNotes": { - "type": "boolean" - }, - "lockTimeZoneToggleOnBookingPage": { - "type": "boolean" - }, - "color": { - "$ref": "#/components/schemas/EventTypeColor_2024_06_14" - }, - "seats": { - "description": "Create an event type with multiple seats.", - "oneOf": [ - { - "$ref": "#/components/schemas/Seats_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] - }, "customName": { "type": "string", "description": "Customizable event name with valid variables: \n {Event type title}, {Organiser}, {Scheduler}, {Location}, {Organiser first name}, \n {Scheduler first name}, {Scheduler last name}, {Event duration}, {LOCATION}, \n {HOST/ATTENDEE}, {HOST}, {ATTENDEE}, {USER}", "example": "{Event type title} between {Organiser} and {Scheduler}" }, - "destinationCalendar": { - "$ref": "#/components/schemas/DestinationCalendar_2024_06_14" - }, - "useDestinationCalendarEmail": { - "type": "boolean" - }, - "hideCalendarEventDetails": { - "type": "boolean" - }, "schedulingType": { "type": "object" }, "hosts": { "type": "array", "items": { - "$ref": "#/components/schemas/Host" + "type": "string" } }, "assignAllTeamMembers": { @@ -9685,8 +9430,24 @@ "lengthInMinutes", "title", "slug", + "description", + "locations", + "bookingFields", + "disableGuests", + "slotInterval", + "minimumBookingNotice", + "beforeEventBuffer", + "afterEventBuffer", + "scheduleId", + "bookingLimitsCount", + "onlyShowFirstAvailableSlot", + "bookingLimitsDuration", + "bookingWindow", + "offsetStart", + "customName", "schedulingType", - "hosts" + "hosts", + "assignAllTeamMembers" ] }, "CreateTeamEventTypeOutput": { @@ -9719,6 +9480,38 @@ "data" ] }, + "Recurrence_2024_06_14": { + "type": "object", + "properties": { + "interval": { + "type": "number", + "example": 10, + "description": "Repeats every {count} week | month | year" + }, + "occurrences": { + "type": "number", + "example": 10, + "description": "Repeats for a maximum of {count} events" + }, + "frequency": { + "enum": [ + "yearly", + "monthly", + "weekly" + ], + "type": "string" + }, + "disabled": { + "type": "boolean", + "default": false + } + }, + "required": [ + "interval", + "occurrences", + "frequency" + ] + }, "TeamEventTypeResponseHost": { "type": "object", "properties": { @@ -10281,130 +10074,76 @@ "description": "If you want that this event has different schedule than user's default one you can specify it here." }, "bookingLimitsCount": { - "description": "Limit how many times this event can be booked", - "oneOf": [ - { - "$ref": "#/components/schemas/BaseBookingLimitsCount_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] + "type": "object", + "description": "Limit how many times this event can be booked" }, "onlyShowFirstAvailableSlot": { "type": "boolean", "description": "This will limit your availability for this event type to one slot per day, scheduled at the earliest available time." }, "bookingLimitsDuration": { - "description": "Limit total amount of time that this event can be booked", - "oneOf": [ - { - "$ref": "#/components/schemas/BaseBookingLimitsDuration_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] + "type": "object", + "description": "Limit total amount of time that this event can be booked" }, "bookingWindow": { + "type": "array", "description": "Limit how far in the future this event can be booked", - "oneOf": [ - { - "$ref": "#/components/schemas/BusinessDaysWindow_2024_06_14" - }, - { - "$ref": "#/components/schemas/CalendarDaysWindow_2024_06_14" - }, - { - "$ref": "#/components/schemas/RangeWindow_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BusinessDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/CalendarDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/RangeWindow_2024_06_14" + } + ] + } }, "offsetStart": { "type": "number", "description": "Offset timeslots shown to bookers by a specified number of minutes" }, - "bookerLayouts": { - "description": "Should booker have week, month or column view. Specify default layout and enabled layouts user can pick.", - "allOf": [ - { - "$ref": "#/components/schemas/BookerLayouts_2024_06_14" - } - ] - }, - "confirmationPolicy": { - "description": "Specify how the booking needs to be manually confirmed before it is pushed to the integrations and a confirmation mail is sent.", - "oneOf": [ - { - "$ref": "#/components/schemas/BaseConfirmationPolicy_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] - }, - "recurrence": { - "description": "Create a recurring event type.", - "oneOf": [ - { - "$ref": "#/components/schemas/Recurrence_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] - }, - "requiresBookerEmailVerification": { - "type": "boolean" - }, - "hideCalendarNotes": { - "type": "boolean" - }, - "lockTimeZoneToggleOnBookingPage": { - "type": "boolean" - }, - "color": { - "$ref": "#/components/schemas/EventTypeColor_2024_06_14" - }, - "seats": { - "description": "Create an event type with multiple seats.", - "oneOf": [ - { - "$ref": "#/components/schemas/Seats_2024_06_14" - }, - { - "$ref": "#/components/schemas/Disabled_2024_06_14" - } - ] - }, "customName": { "type": "string", "description": "Customizable event name with valid variables: \n {Event type title}, {Organiser}, {Scheduler}, {Location}, {Organiser first name}, \n {Scheduler first name}, {Scheduler last name}, {Event duration}, {LOCATION}, \n {HOST/ATTENDEE}, {HOST}, {ATTENDEE}, {USER}", "example": "{Event type title} between {Organiser} and {Scheduler}" }, - "destinationCalendar": { - "$ref": "#/components/schemas/DestinationCalendar_2024_06_14" - }, - "useDestinationCalendarEmail": { - "type": "boolean" - }, - "hideCalendarEventDetails": { - "type": "boolean" - }, "hosts": { "type": "array", "items": { - "$ref": "#/components/schemas/Host" + "type": "string" } }, "assignAllTeamMembers": { "type": "boolean", "description": "If true, all current and future team members will be assigned to this event type" } - } + }, + "required": [ + "lengthInMinutes", + "title", + "slug", + "description", + "locations", + "bookingFields", + "disableGuests", + "slotInterval", + "minimumBookingNotice", + "beforeEventBuffer", + "afterEventBuffer", + "scheduleId", + "bookingLimitsCount", + "onlyShowFirstAvailableSlot", + "bookingLimitsDuration", + "bookingWindow", + "offsetStart", + "customName", + "hosts", + "assignAllTeamMembers" + ] }, "UpdateTeamEventTypeOutput": { "type": "object", @@ -11246,6 +10985,60 @@ } } }, + "StripConnectOutputDto": { + "type": "object", + "properties": { + "authUrl": { + "type": "string" + } + }, + "required": [ + "authUrl" + ] + }, + "StripConnectOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": [ + "success", + "error" + ] + }, + "data": { + "$ref": "#/components/schemas/StripConnectOutputDto" + } + }, + "required": [ + "status", + "data" + ] + }, + "StripCredentialsSaveOutputResponseDto": { + "type": "object", + "properties": { + "url": { + "type": "string" + } + }, + "required": [ + "url" + ] + }, + "StripCredentialsCheckOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success" + } + }, + "required": [ + "status" + ] + }, "GetDefaultScheduleOutput_2024_06_11": { "type": "object", "properties": { @@ -12181,6 +11974,28 @@ "attendee" ] }, + "Host": { + "type": "object", + "properties": { + "id": { + "type": "number", + "example": 1 + }, + "name": { + "type": "string", + "example": "Jane Doe" + }, + "timeZone": { + "type": "string", + "example": "America/Los_Angeles" + } + }, + "required": [ + "id", + "name", + "timeZone" + ] + }, "BookingOutput_2024_08_13": { "type": "object", "properties": { diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000000..4cbe0750c0 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,32 @@ +# Mintlify Starter Kit + +Click on `Use this template` to copy the Mintlify starter kit. The starter kit contains examples including + +- Guide pages +- Navigation +- Customizations +- API Reference pages +- Use of popular components + +### Development + +Install the [Mintlify CLI](https://www.npmjs.com/package/mintlify) to preview the documentation changes locally. To install, use the following command + +``` +npm i -g mintlify +``` + +Run the following command at the root of your documentation (where mint.json is) + +``` +mintlify dev +``` + +### Publishing Changes + +Install our Github App to auto propagate changes from your repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch. Find the link to install on your dashboard. + +#### Troubleshooting + +- Mintlify dev isn't running - Run `mintlify install` it'll re-install dependencies. +- Page loads as a 404 - Make sure you are running in a folder with `mint.json` diff --git a/docs/api-reference/v1/authentication.mdx b/docs/api-reference/v1/authentication.mdx new file mode 100644 index 0000000000..40ee0d68b0 --- /dev/null +++ b/docs/api-reference/v1/authentication.mdx @@ -0,0 +1,17 @@ +--- +title: "Authentication" +--- + +The Cal.com API uses API keys to authenticate requests. You can view and manage your API keys in your settings page under the security tab in Cal.com. + + + +API Keys are under Settings > Security + +Test mode secret keys have the prefix `cal_` and live mode secret keys have the prefix `cal_live_`. + +Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth. + +Authentication to the API is performed via URL Query Params. Provide your API key as a query param like: `https://api.cal.com/v1/?apiKey=cal_live_xxxxxx` + +All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail. diff --git a/docs/api-reference/v1/errors.mdx b/docs/api-reference/v1/errors.mdx new file mode 100644 index 0000000000..edabcea533 --- /dev/null +++ b/docs/api-reference/v1/errors.mdx @@ -0,0 +1,57 @@ +--- +title: "Errors" +--- + +Cal.com uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, or something else failed, etc.). Codes in the 5xx range indicate an error with Cal.com's servers (these are rare). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
HTTPStatus CodeSummary
200OKEverything worked as expected
400Bad RequestThe request was unacceptable, often due to missing a required parameter
401UnauthorizedNo valid API key provided.
402Request FailedThe parameters were valid but the request failed.
403ForbiddenThe API key doesn't have permissions to perform the request.
404Not FoundThe requested resource doesn't exist.
429Too Many RequestsToo many requests hit the API too quickly. We recommend an exponential backoff of your requests.
500, 502, 503, 504erver ErrorsSomething went wrong on our servers end. (These are rare.)
diff --git a/docs/api-reference/v1/introduction.mdx b/docs/api-reference/v1/introduction.mdx new file mode 100644 index 0000000000..bd14244d23 --- /dev/null +++ b/docs/api-reference/v1/introduction.mdx @@ -0,0 +1,51 @@ +--- +title: "Quick start" +--- + +## Get your API keys + +Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error. + +You can generate an API key from **Settings >** [**Security**](https://app.cal.com/settings/security) within the application. There you will find the API keys section which allows you to generate a key for use. + +More information on this can be found in the [Authentication](authentication) page. + +## Install the library + +The best way to interact with our API is using a good HTTP client like **axios**: + + + + ``` + # Install via NPM + npm install --save axios + + # Install via Yarn + yarn add axios + ``` + + + ``` + # Install via pip + pip install --upgrade requests + ``` + + + +## Make your first request + +To make your first request, send an authenticated request to the event-types endpoint. This will list all of your event types. + +Example using `curl`: + + + + ``` + curl https://api.cal.com/v1/event-types?apiKey=cal_test_xxxxxx + ``` + + + +## Try our Postman Collection + +We've created a small collection of frequently made API calls that you can try in our [Postman Collection](https://www.postman.com/calcom/workspace/cd670dd8-b36d-4aee-8ab2-9044122e30d1/collection/20666831-b92a1d73-bfcc-4a5f-9ef5-cb117d49c904) diff --git a/docs/api-reference/v1/openapi-v1.json b/docs/api-reference/v1/openapi-v1.json new file mode 100644 index 0000000000..c5d9bac7a2 --- /dev/null +++ b/docs/api-reference/v1/openapi-v1.json @@ -0,0 +1,4828 @@ +{ + "openapi": "3.0.3", + "servers": [ + { + "url": "https://api.cal.com/v1" + } + ], + "externalDocs": { + "url": "https://docs.cal.com", + "description": "Find more info at our main docs: https://docs.cal.com/" + }, + "info": { + "title": "@calcom/api: Public API for Cal.com", + "version": "1.0.0" + }, + "components": { + "securitySchemes": { + "ApiKeyAuth": { + "type": "apiKey", + "in": "query", + "name": "apiKey" + } + }, + "schemas": { + "ErrorResponse": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + }, + "Attendee": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "bookingId": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "email": { + "type": "string", + "format": "email" + }, + "timeZone": { + "type": "string" + } + } + }, + "AttendeesFetchedResponse": { + "type": "object", + "properties": { + "attendees": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Attendee" + } + } + } + }, + "AttendeeCreatedResponse": { + "type": "object", + "properties": { + "attendee": { + "$ref": "#/components/schemas/Attendee" + }, + "message": { + "type": "string", + "example": "Attendee created successfully" + } + } + }, + "AttendeeFetchedResponse": { + "type": "object", + "properties": { + "attendee": { + "$ref": "#/components/schemas/Attendee" + } + } + }, + "ArrayOfBookings": { + "type": "array", + "items": { + "properties": { + "id": { + "type": "number" + }, + "description": { + "type": "string" + }, + "eventTypeId": { + "type": "number" + }, + "uid": { + "type": "string", + "format": "uuid" + }, + "title": { + "type": "string" + }, + "startTime": { + "type": "string", + "format": "date-time" + }, + "endTime": { + "type": "string", + "format": "date-time" + }, + "timeZone": { + "type": "string", + "example": "Europe/London" + }, + "fromReschedule": { + "type": "string", + "nullable": true, + "format": "uuid" + }, + "attendees": { + "type": "array", + "items": { + "properties": { + "email": { + "type": "string", + "example": "example@cal.com" + }, + "name": { + "type": "string" + }, + "timeZone": { + "type": "string", + "example": "Europe/London" + }, + "locale": { + "type": "string", + "example": "en" + } + } + } + }, + "user": { + "properties": { + "email": { + "type": "string", + "example": "example@cal.com" + }, + "name": { + "type": "string" + }, + "timeZone": { + "type": "string", + "example": "Europe/London" + }, + "locale": { + "type": "string", + "example": "en" + } + } + }, + "payment": { + "items": { + "properties": { + "id": { + "type": "number", + "example": 1 + }, + "success": { + "type": "boolean", + "example": true + }, + "paymentOption": { + "type": "string", + "example": "ON_BOOKING" + } + } + } + } + } + } + }, + "ArrayOfRecordings": { + "type": "array", + "items": { + "properties": { + "id": { + "type": "string" + }, + "room_name": { + "type": "string" + }, + "start_ts": { + "type": "number" + }, + "status": { + "type": "string" + }, + "max_participants": { + "type": "number" + }, + "duration": { + "type": "number" + }, + "download_link": { + "type": "string" + } + } + } + }, + "Recording": { + "properties": { + "id": { + "type": "string" + }, + "room_name": { + "type": "string" + }, + "start_ts": { + "type": "number" + }, + "status": { + "type": "string" + }, + "max_participants": { + "type": "number" + }, + "duration": { + "type": "number" + }, + "download_link": { + "type": "string" + } + } + }, + "Booking": { + "properties": { + "id": { + "type": "number" + }, + "description": { + "type": "string" + }, + "eventTypeId": { + "type": "number" + }, + "uid": { + "type": "string", + "format": "uuid" + }, + "title": { + "type": "string" + }, + "startTime": { + "type": "string", + "format": "date-time" + }, + "endTime": { + "type": "string", + "format": "date-time" + }, + "timeZone": { + "type": "string", + "example": "Europe/London" + }, + "fromReschedule": { + "type": "string", + "nullable": true, + "format": "uuid" + }, + "attendees": { + "type": "array", + "items": { + "properties": { + "email": { + "type": "string", + "example": "example@cal.com" + }, + "name": { + "type": "string" + }, + "timeZone": { + "type": "string", + "example": "Europe/London" + }, + "locale": { + "type": "string", + "example": "en" + } + } + } + }, + "user": { + "properties": { + "email": { + "type": "string", + "example": "example@cal.com" + }, + "name": { + "type": "string" + }, + "timeZone": { + "type": "string", + "example": "Europe/London" + }, + "locale": { + "type": "string", + "example": "en" + } + } + }, + "payment": { + "items": { + "properties": { + "id": { + "type": "number", + "example": 1 + }, + "success": { + "type": "boolean", + "example": true + }, + "paymentOption": { + "type": "string", + "example": "ON_BOOKING" + } + } + } + } + } + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + } + ], + "tags": [ + { + "name": "Users" + }, + { + "name": "Event Types" + }, + { + "name": "Bookings" + }, + { + "name": "Attendees" + }, + { + "name": "Payments" + }, + { + "name": "Schedules" + }, + { + "name": "Teams" + }, + { + "name": "Memberships" + }, + { + "name": "Availabilities", + "description": "Allows modifying unique availabilities tied to a schedule." + }, + { + "name": "Custom Inputs" + }, + { + "name": "Event References" + }, + { + "name": "Booking References" + }, + { + "name": "Destination Calendars" + }, + { + "name": "Selected Calendars" + } + ], + "paths": { + "/attendees": { + "get": { + "operationId": "listAttendees", + "summary": "Find all attendees", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "tags": ["Attendees"], + "responses": { + "200": { + "description": "Find All Attendees", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AttendeesFetchedResponse" + }, + "examples": { + "Attendees found successfully": { + "value": { + "attendees": [ + { + "id": 251, + "bookingId": 313, + "name": "John Doe", + "email": "john.doe@example.com", + "timeZone": "Asia/Jerusalem" + }, + { + "id": 252, + "bookingId": 314, + "name": "Jane Doe", + "email": "jane.doe@example.com", + "timeZone": "Asia/Dubai" + } + ] + } + } + } + } + } + }, + "401": { + "description": "Authorization information is missing or invalid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + }, + "example": { + "message": "Authorization information is missing or invalid." + } + } + } + }, + "404": { + "description": "No attendees were found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + }, + "example": { + "message": "No attendees were found." + } + } + } + } + } + }, + "post": { + "operationId": "addAttendee", + "summary": "Creates a new attendee", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "requestBody": { + "description": "Create a new attendee related to one of your bookings", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["bookingId", "name", "email", "timeZone"], + "properties": { + "bookingId": { + "type": "number" + }, + "email": { + "type": "string", + "format": "email" + }, + "name": { + "type": "string" + }, + "timeZone": { + "type": "string" + } + } + } + } + } + }, + "tags": ["Attendees"], + "responses": { + "200": { + "description": "Attendee created successfully.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AttendeeCreatedResponse" + }, + "examples": { + "Attendee created successfully": { + "value": { + "attendee": { + "id": 255, + "bookingId": 313, + "name": "Justin Doe", + "email": "justin.doe@example.com", + "timeZone": "Asia/Jerusalem" + }, + "message": "Attendee created successfully" + } + } + } + } + } + }, + "400": { + "description": "Bad request. Attendee body is invalid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + }, + "example": { + "message": "Bad request. Attendee body is invalid." + } + } + } + }, + "401": { + "description": "Authorization information is missing or invalid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + }, + "example": { + "message": "Authorization information is missing or invalid." + } + } + } + } + } + } + }, + "/attendees/{id}": { + "delete": { + "operationId": "removeAttendeeById", + "summary": "Remove an existing attendee", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + }, + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the attendee to delete" + } + ], + "tags": ["Attendees"], + "responses": { + "201": { + "description": "OK, attendee removed successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + }, + "example": { + "message": "OK, attendee removed successfully" + } + } + } + }, + "400": { + "description": "Bad request. Attendee id is invalid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + }, + "example": { + "message": "Bad request. Attendee id is invalid." + } + } + } + }, + "401": { + "description": "Authorization information is missing or invalid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + }, + "example": { + "message": "Authorization information is missing or invalid." + } + } + } + } + } + }, + "get": { + "operationId": "getAttendeeById", + "summary": "Find an attendee", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + }, + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the attendee to get" + } + ], + "tags": ["Attendees"], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AttendeeFetchedResponse" + }, + "examples": { + "Attendee fetched successfully": { + "value": { + "attendee": { + "id": 255, + "bookingId": 313, + "name": "Justin Doe", + "email": "justin.doe@example.com", + "timeZone": "Asia/Jerusalem" + } + } + } + } + } + } + }, + "401": { + "description": "Authorization information is missing or invalid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + }, + "example": { + "message": "Authorization information is missing or invalid." + } + } + } + }, + "404": { + "description": "Attendee was not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + }, + "example": { + "message": "Attendee was not found" + } + } + } + } + } + }, + "patch": { + "operationId": "editAttendeeById", + "summary": "Edit an existing attendee", + "requestBody": { + "description": "Edit an existing attendee related to one of your bookings", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email" + }, + "name": { + "type": "string" + }, + "timeZone": { + "type": "string" + } + } + } + } + } + }, + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + }, + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the attendee to get" + } + ], + "tags": ["Attendees"], + "responses": { + "201": { + "description": "OK, attendee edited successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AttendeeFetchedResponse" + }, + "examples": { + "Attendee edited successfully": { + "value": { + "attendee": { + "id": 255, + "bookingId": 313, + "name": "Justin Doe", + "email": "justin.doe@example.com", + "timeZone": "Asia/Jerusalem" + } + } + } + } + } + } + }, + "400": { + "description": "Bad request. Attendee body is invalid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + }, + "example": { + "message": "Bad request. Attendee body is invalid." + } + } + } + }, + "401": { + "description": "Authorization information is missing or invalid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + }, + "example": { + "message": "Authorization information is missing or invalid." + } + } + } + } + } + } + }, + "/availabilities": { + "post": { + "operationId": "addAvailability", + "summary": "Creates a new availability", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "requestBody": { + "description": "Edit an existing availability related to one of your bookings", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["scheduleId", "startTime", "endTime"], + "properties": { + "days": { + "type": "array", + "description": "Array of integers depicting weekdays", + "items": { + "type": "integer", + "enum": [0, 1, 2, 3, 4, 5] + } + }, + "scheduleId": { + "type": "integer", + "description": "ID of schedule this availability is associated with" + }, + "startTime": { + "type": "string", + "description": "Start time of the availability" + }, + "endTime": { + "type": "string", + "description": "End time of the availability" + } + } + }, + "examples": { + "availability": { + "summary": "An example of availability", + "value": { + "scheduleId": 123, + "days": [1, 2, 3, 5], + "startTime": "1970-01-01T17:00:00.000Z", + "endTime": "1970-01-01T17:00:00.000Z" + } + } + } + } + } + }, + "tags": ["Availabilities"], + "externalDocs": { + "url": "https://docs.cal.com/docs/core-features/availability" + }, + "responses": { + "201": { + "description": "OK, availability created" + }, + "400": { + "description": "Bad request. Availability body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/availabilities/{id}": { + "delete": { + "operationId": "removeAvailabilityById", + "summary": "Remove an existing availability", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the availability to delete" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "integer" + }, + "description": "Your API key" + } + ], + "tags": ["Availabilities"], + "externalDocs": { + "url": "https://docs.cal.com/docs/core-features/availability" + }, + "responses": { + "201": { + "description": "OK, availability removed successfully" + }, + "400": { + "description": "Bad request. Availability id is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + }, + "get": { + "operationId": "getAvailabilityById", + "summary": "Find an availability", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the availability to get" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "integer" + }, + "description": "Your API key" + } + ], + "tags": ["Availabilities"], + "externalDocs": { + "url": "https://docs.cal.com/docs/core-features/availability" + }, + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid" + }, + "404": { + "description": "Availability not found" + } + } + }, + "patch": { + "operationId": "editAvailabilityById", + "summary": "Edit an existing availability", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "description": "Your API key", + "schema": { + "type": "integer" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "integer" + }, + "description": "ID of the availability to edit" + } + ], + "requestBody": { + "description": "Edit an existing availability related to one of your bookings", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "days": { + "type": "array", + "description": "Array of integers depicting weekdays", + "items": { + "type": "integer", + "enum": [0, 1, 2, 3, 4, 5] + } + }, + "scheduleId": { + "type": "integer", + "description": "ID of schedule this availability is associated with" + }, + "startTime": { + "type": "string", + "description": "Start time of the availability" + }, + "endTime": { + "type": "string", + "description": "End time of the availability" + } + } + }, + "examples": { + "availability": { + "summary": "An example of availability", + "value": { + "scheduleId": 123, + "days": [1, 2, 3, 5], + "startTime": "1970-01-01T17:00:00.000Z", + "endTime": "1970-01-01T17:00:00.000Z" + } + } + } + } + } + }, + "tags": ["Availabilities"], + "externalDocs": { + "url": "https://docs.cal.com/docs/core-features/availability" + }, + "responses": { + "201": { + "description": "OK, availability edited successfully" + }, + "400": { + "description": "Bad request. Availability body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/booking-references": { + "get": { + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "operationId": "listBookingReferences", + "summary": "Find all booking references", + "tags": ["Booking References"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "No booking references were found" + } + } + }, + "post": { + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "operationId": "addBookingReference", + "summary": "Creates a new booking reference", + "requestBody": { + "description": "Create a new booking reference related to one of your bookings", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["type", "uid"], + "properties": { + "type": { + "type": "string" + }, + "uid": { + "type": "string" + }, + "meetingId": { + "type": "string" + }, + "meetingPassword": { + "type": "string" + }, + "meetingUrl": { + "type": "string" + }, + "bookingId": { + "type": "boolean" + }, + "externalCalendarId": { + "type": "string" + }, + "deleted": { + "type": "boolean" + }, + "credentialId": { + "type": "integer" + } + } + } + } + } + }, + "tags": ["Booking References"], + "responses": { + "201": { + "description": "OK, booking reference created" + }, + "400": { + "description": "Bad request. BookingReference body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/booking-references/{id}": { + "delete": { + "operationId": "removeBookingReferenceById", + "summary": "Remove an existing booking reference", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the booking reference to delete" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "tags": ["Booking References"], + "responses": { + "201": { + "description": "OK, bookingReference removed successfully" + }, + "400": { + "description": "Bad request. BookingReference id is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + }, + "get": { + "operationId": "getBookingReferenceById", + "summary": "Find a booking reference", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the booking reference to get" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "tags": ["Booking References"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "BookingReference was not found" + } + } + }, + "patch": { + "operationId": "editBookingReferenceById", + "summary": "Edit an existing booking reference", + "requestBody": { + "description": "Edit an existing booking reference related to one of your bookings", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "meetingId": { + "type": "string" + }, + "meetingPassword": { + "type": "string" + }, + "externalCalendarId": { + "type": "string" + }, + "deleted": { + "type": "boolean" + }, + "credentialId": { + "type": "integer" + } + } + } + } + } + }, + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + }, + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the booking reference to edit" + } + ], + "tags": ["Booking References"], + "responses": { + "201": { + "description": "OK, BookingReference edited successfully" + }, + "400": { + "description": "Bad request. BookingReference body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/bookings": { + "post": { + "summary": "Creates a new booking", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "operationId": "addBooking", + "requestBody": { + "description": "Create a new booking related to one of your event-types", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["eventTypeId", "start", "responses", "timeZone", "language", "metadata"], + "properties": { + "eventTypeId": { + "type": "integer", + "description": "ID of the event type to book" + }, + "start": { + "type": "string", + "format": "date-time", + "description": "Start time of the Event" + }, + "end": { + "type": "string", + "format": "date-time", + "description": "End time of the Event" + }, + "rescheduleUid": { + "type": "string", + "format": "UID", + "description": "Uid of the booking to reschedule" + }, + "responses": { + "type": "object", + "required": ["name", "email", "location"], + "properties": { + "name": { + "type": "string", + "description": "Attendee full name" + }, + "email": { + "type": "string", + "format": "email", + "description": "Attendee email address" + }, + "location": { + "type": "object", + "properties": { + "optionValue": { + "type": "string", + "description": "Option value for the location" + }, + "value": { + "type": "string", + "description": "The meeting URL, Phone number or Address" + } + }, + "description": "Meeting location" + } + } + }, + "metadata": { + "type": "object", + "properties": {}, + "description": "Any metadata associated with the booking" + }, + "timeZone": { + "type": "string", + "description": "TimeZone of the Attendee" + }, + "language": { + "type": "string", + "description": "Language of the Attendee" + }, + "title": { + "type": "string", + "description": "Booking event title" + }, + "recurringEventId": { + "type": "integer", + "description": "Recurring event ID if the event is recurring" + }, + "description": { + "type": "string", + "description": "Event description" + }, + "status": { + "type": "string", + "description": "Acceptable values one of [\"ACCEPTED\", \"PENDING\", \"CANCELLED\", \"REJECTED\"]" + }, + "seatsPerTimeSlot": { + "type": "integer", + "description": "The number of seats for each time slot" + }, + "seatsShowAttendees": { + "type": "boolean", + "description": "Share Attendee information in seats" + }, + "seatsShowAvailabilityCount": { + "type": "boolean", + "description": "Show the number of available seats" + }, + "smsReminderNumber": { + "type": "number", + "description": "SMS reminder number" + } + } + }, + "examples": { + "New Booking example": { + "value": { + "eventTypeId": 2323232, + "start": "2023-05-24T13:00:00.000Z", + "end": "2023-05-24T13:30:00.000Z", + "responses": { + "name": "Hello Hello", + "email": "hello@gmail.com", + "metadata": {}, + "location": "Calcom HQ" + }, + "timeZone": "Europe/London", + "language": "en", + "title": "Debugging between Syed Ali Shahbaz and Hello Hello", + "description": null, + "status": "PENDING", + "smsReminderNumber": null + } + } + } + } + } + }, + "tags": ["Bookings"], + "responses": { + "200": { + "description": "Booking(s) created successfully.", + "content": { + "application/json": { + "examples": { + "booking created successfully example": { + "value": { + "booking": { + "id": 91, + "userId": 5, + "description": "", + "eventTypeId": 7, + "uid": "bFJeNb2uX8ANpT3JL5EfXw", + "title": "60min between Pro Example and John Doe", + "startTime": "2023-05-25T09:30:00.000Z", + "endTime": "2023-05-25T10:30:00.000Z", + "attendees": [ + { + "email": "john.doe@example.com", + "name": "John Doe", + "timeZone": "Asia/Kolkata", + "locale": "en" + } + ], + "user": { + "email": "pro@example.com", + "name": "Pro Example", + "timeZone": "Asia/Kolkata", + "locale": "en" + }, + "payment": [ + { + "id": 1, + "success": true, + "paymentOption": "ON_BOOKING" + } + ], + "metadata": {}, + "status": "ACCEPTED", + "responses": { + "email": "john.doe@example.com", + "name": "John Doe", + "location": { + "optionValue": "", + "value": "inPerson" + } + } + } + } + } + } + } + } + }, + "400": { + "description": "Bad request\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
MessageCause
Booking body is invalidMissing property on booking entity.
Invalid eventTypeIdThe provided eventTypeId does not exist.
Missing recurringCountThe eventType is recurring, and no recurringCount was passed.
Invalid recurringCountThe provided recurringCount is greater than the eventType recurring config
\n" + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/bookings/{id}/cancel": { + "delete": { + "summary": "Booking cancellation", + "operationId": "cancelBookingById", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the booking to cancel" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + }, + { + "in": "query", + "name": "allRemainingBookings", + "required": false, + "schema": { + "type": "boolean" + }, + "description": "Delete all remaining bookings" + }, + { + "in": "query", + "name": "cancellationReason", + "required": false, + "schema": { + "type": "string" + }, + "description": "The reason for cancellation of the booking" + } + ], + "tags": ["Bookings"], + "responses": { + "200": { + "description": "OK, booking cancelled successfully" + }, + "400": { + "description": "Bad request\n \n \n \n \n \n \n \n \n \n \n \n \n \n
MessageCause
Booking not foundThe provided id didn't correspond to any existing booking.
User not foundThe userId did not matched an existing user.
\n" + }, + "404": { + "description": "User not found" + } + } + } + }, + "/bookings/{id}": { + "get": { + "summary": "Find a booking", + "operationId": "getBookingById", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the booking to get" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "tags": ["Bookings"], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "properties": { + "id": { + "type": "number" + }, + "description": { + "type": "string" + }, + "eventTypeId": { + "type": "number" + }, + "uid": { + "type": "string", + "format": "uuid" + }, + "title": { + "type": "string" + }, + "startTime": { + "type": "string", + "format": "date-time" + }, + "endTime": { + "type": "string", + "format": "date-time" + }, + "timeZone": { + "type": "string", + "example": "Europe/London" + }, + "fromReschedule": { + "type": "string", + "nullable": true, + "format": "uuid" + }, + "attendees": { + "type": "array", + "items": { + "properties": { + "email": { + "type": "string", + "example": "example@cal.com" + }, + "name": { + "type": "string" + }, + "timeZone": { + "type": "string", + "example": "Europe/London" + }, + "locale": { + "type": "string", + "example": "en" + } + } + } + }, + "user": { + "properties": { + "email": { + "type": "string", + "example": "example@cal.com" + }, + "name": { + "type": "string" + }, + "timeZone": { + "type": "string", + "example": "Europe/London" + }, + "locale": { + "type": "string", + "example": "en" + } + } + }, + "payment": { + "items": { + "properties": { + "id": { + "type": "number", + "example": 1 + }, + "success": { + "type": "boolean", + "example": true + }, + "paymentOption": { + "type": "string", + "example": "ON_BOOKING" + } + } + } + } + } + }, + "examples": { + "booking": { + "value": { + "booking": { + "id": 91, + "userId": 5, + "description": "", + "eventTypeId": 7, + "uid": "bFJeNb2uX8ANpT3JL5EfXw", + "title": "60min between Pro Example and John Doe", + "startTime": "2023-05-25T09:30:00.000Z", + "endTime": "2023-05-25T10:30:00.000Z", + "attendees": [ + { + "email": "john.doe@example.com", + "name": "John Doe", + "timeZone": "Asia/Kolkata", + "locale": "en" + } + ], + "user": { + "email": "pro@example.com", + "name": "Pro Example", + "timeZone": "Asia/Kolkata", + "locale": "en" + }, + "payment": [ + { + "id": 1, + "success": true, + "paymentOption": "ON_BOOKING" + } + ], + "metadata": {}, + "status": "ACCEPTED", + "responses": { + "email": "john.doe@example.com", + "name": "John Doe", + "location": { + "optionValue": "", + "value": "inPerson" + } + } + } + } + } + } + } + } + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "Booking was not found" + } + } + }, + "patch": { + "summary": "Edit an existing booking", + "operationId": "editBookingById", + "requestBody": { + "description": "Edit an existing booking related to one of your event-types", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "Booking event title" + }, + "start": { + "type": "string", + "format": "date-time", + "description": "Start time of the Event" + }, + "end": { + "type": "string", + "format": "date-time", + "description": "End time of the Event" + }, + "status": { + "type": "string", + "description": "Acceptable values one of [\"ACCEPTED\", \"PENDING\", \"CANCELLED\", \"REJECTED\"]" + }, + "description": { + "type": "string", + "description": "Description of the meeting" + } + } + }, + "examples": { + "editBooking": { + "value": { + "title": "Debugging between Syed Ali Shahbaz and Hello Hello", + "start": "2023-05-24T13:00:00.000Z", + "end": "2023-05-24T13:30:00.000Z", + "status": "CANCELLED" + } + } + } + } + } + }, + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + }, + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the booking to edit" + } + ], + "tags": ["Bookings"], + "responses": { + "200": { + "description": "OK, booking edited successfully", + "content": { + "application/json": { + "examples": { + "bookings": { + "value": { + "booking": { + "id": 11223344, + "userId": 182, + "description": null, + "eventTypeId": 2323232, + "uid": "stoSJtnh83PEL4rZmqdHe2", + "title": "Debugging between Syed Ali Shahbaz and Hello Hello", + "startTime": "2023-05-24T13:00:00.000Z", + "endTime": "2023-05-24T13:30:00.000Z", + "metadata": {}, + "status": "CANCELLED", + "responses": { + "email": "john.doe@example.com", + "name": "John Doe", + "location": { + "optionValue": "", + "value": "inPerson" + } + } + } + } + } + } + } + } + }, + "400": { + "description": "Bad request. Booking body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/bookings/{id}/recordings": { + "get": { + "summary": "Find all Cal video recordings of that booking", + "operationId": "getRecordingsByBookingId", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the booking for which recordings need to be fetched. Recording download link is only valid for 12 hours and you would have to fetch the recordings again to get new download link" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "tags": ["Bookings"], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "properties": { + "id": { + "type": "string" + }, + "room_name": { + "type": "string" + }, + "start_ts": { + "type": "number" + }, + "status": { + "type": "string" + }, + "max_participants": { + "type": "number" + }, + "duration": { + "type": "number" + }, + "download_link": { + "type": "string" + } + } + } + }, + "examples": { + "recordings": { + "value": [ + { + "id": "ad90a2e7-154f-49ff-a815-5da1db7bf899", + "room_name": "0n22w24AQ5ZFOtEKX2gX", + "start_ts": 1716215386, + "status": "finished", + "max_participants": 1, + "duration": 11, + "share_token": "x94YK-69Gnh7", + "download_link": "https://daily-meeting-recordings..." + } + ] + } + } + } + } + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "Booking was not found" + } + } + } + }, + "/bookings/{id}/transcripts": { + "get": { + "summary": "Find all Cal video transcripts of that booking", + "operationId": "getTranscriptsByBookingId", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the booking for which recordings need to be fetched." + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "tags": ["Bookings"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "Booking was not found" + } + } + } + }, + "/bookings/{id}/transcripts/{recordingId}": { + "get": { + "summary": "Find all Cal video transcripts of that recording", + "operationId": "getTranscriptsByRecordingId", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the booking for which transcripts need to be fetched." + }, + { + "in": "path", + "name": "recordingId", + "schema": { + "type": "string" + }, + "required": true, + "description": "ID of the recording(daily.co recording id) for which transcripts need to be fetched." + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "tags": ["Bookings"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "Booking was not found" + } + } + } + }, + "/credential-sync": { + "delete": { + "operationId": "deleteUserAppCredential", + "summary": "Delete a credential record for a user", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + }, + { + "in": "query", + "name": "userId", + "required": true, + "schema": { + "type": "string" + }, + "description": "ID of the user to fetch the credentials for" + }, + { + "in": "query", + "name": "credentialId", + "required": true, + "schema": { + "type": "string" + }, + "description": "ID of the credential to update" + } + ], + "tags": ["Credentials"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "505": { + "description": "Credential syncing not enabled" + } + } + }, + "get": { + "operationId": "getUserAppCredentials", + "summary": "Get all app credentials for a user", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + }, + { + "in": "query", + "name": "userId", + "required": true, + "schema": { + "type": "string" + }, + "description": "ID of the user to fetch the credentials for" + } + ], + "tags": ["Credentials"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "505": { + "description": "Credential syncing not enabled" + } + } + }, + "patch": { + "operationId": "updateUserAppCredential", + "summary": "Update a credential record for a user", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + }, + { + "in": "query", + "name": "userId", + "required": true, + "schema": { + "type": "string" + }, + "description": "ID of the user to fetch the credentials for" + }, + { + "in": "query", + "name": "credentialId", + "required": true, + "schema": { + "type": "string" + }, + "description": "ID of the credential to update" + } + ], + "tags": ["Credentials"], + "requestBody": { + "description": "Update a new credential", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["encryptedKey"], + "properties": { + "encryptedKey": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "505": { + "description": "Credential syncing not enabled" + } + } + }, + "post": { + "operationId": "createUserAppCredential", + "summary": "Create a credential record for a user", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + }, + { + "in": "query", + "name": "userId", + "required": true, + "schema": { + "type": "string" + }, + "description": "ID of the user to fetch the credentials for" + } + ], + "tags": ["Credentials"], + "requestBody": { + "description": "Create a new credential", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["encryptedKey", "appSlug"], + "properties": { + "encryptedKey": { + "type": "string" + }, + "appSlug": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "505": { + "description": "Credential syncing not enabled" + } + } + } + }, + "/destination-calendars": { + "get": { + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "summary": "Find all destination calendars", + "tags": ["Destination Calendars"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "No destination calendars were found" + } + } + }, + "post": { + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "summary": "Creates a new destination calendar", + "requestBody": { + "description": "Create a new destination calendar for your events", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["integration", "externalId", "credentialId"], + "properties": { + "integration": { + "type": "string", + "description": "The integration" + }, + "externalId": { + "type": "string", + "description": "The external ID of the integration" + }, + "eventTypeId": { + "type": "integer", + "description": "The ID of the eventType it is associated with" + }, + "bookingId": { + "type": "integer", + "description": "The booking ID it is associated with" + }, + "userId": { + "type": "integer", + "description": "The user it is associated with" + } + } + } + } + } + }, + "tags": ["Destination Calendars"], + "responses": { + "201": { + "description": "OK, destination calendar created" + }, + "400": { + "description": "Bad request. DestinationCalendar body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/destination-calendars/{id}": { + "delete": { + "summary": "Remove an existing destination calendar", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the destination calendar to delete" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "tags": ["Destination Calendars"], + "responses": { + "200": { + "description": "OK, destinationCalendar removed successfully" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "Destination calendar not found" + } + } + }, + "get": { + "summary": "Find a destination calendar", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the destination calendar to get" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "tags": ["Destination Calendars"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "Destination calendar not found" + } + } + }, + "patch": { + "summary": "Edit an existing destination calendar", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the destination calendar to edit" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "requestBody": { + "description": "Create a new booking related to one of your event-types", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "integration": { + "type": "string", + "description": "The integration" + }, + "externalId": { + "type": "string", + "description": "The external ID of the integration" + }, + "eventTypeId": { + "type": "integer", + "description": "The ID of the eventType it is associated with" + }, + "bookingId": { + "type": "integer", + "description": "The booking ID it is associated with" + } + } + } + } + } + }, + "tags": ["Destination Calendars"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "Destination calendar not found" + } + } + } + }, + "/event-types": { + "get": { + "summary": "Find all event types", + "operationId": "listEventTypes", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API Key" + }, + { + "in": "query", + "name": "slug", + "schema": { + "type": "string" + }, + "required": false, + "description": "Slug to filter event types by" + } + ], + "tags": ["Event Types"], + "externalDocs": { + "url": "https://docs.cal.com/docs/core-features/event-types" + }, + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "No event types were found" + } + } + }, + "post": { + "summary": "Creates a new event type", + "operationId": "addEventType", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API Key" + } + ], + "requestBody": { + "description": "Create a new event-type related to your user or team", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["title", "slug", "length", "metadata"], + "properties": { + "length": { + "type": "integer", + "description": "Duration of the event type in minutes" + }, + "metadata": { + "type": "object", + "description": "Metadata relating to event type. Pass {} if empty" + }, + "title": { + "type": "string", + "description": "Title of the event type" + }, + "slug": { + "type": "string", + "description": "Unique slug for the event type" + }, + "hosts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "userId": { + "type": "number" + }, + "isFixed": { + "type": "boolean", + "description": "Host MUST be available for any slot to be bookable." + } + } + } + }, + "hidden": { + "type": "boolean", + "description": "If the event type should be hidden from your public booking page" + }, + "scheduleId": { + "type": "number", + "description": "The ID of the schedule for this event type" + }, + "position": { + "type": "integer", + "description": "The position of the event type on the public booking page" + }, + "teamId": { + "type": "integer", + "description": "Team ID if the event type should belong to a team" + }, + "periodType": { + "type": "string", + "enum": ["UNLIMITED", "ROLLING", "RANGE"], + "description": "To decide how far into the future an invitee can book an event with you" + }, + "periodStartDate": { + "type": "string", + "format": "date-time", + "description": "Start date of bookable period (Required if periodType is 'range')" + }, + "periodEndDate": { + "type": "string", + "format": "date-time", + "description": "End date of bookable period (Required if periodType is 'range')" + }, + "periodDays": { + "type": "integer", + "description": "Number of bookable days (Required if periodType is rolling)" + }, + "periodCountCalendarDays": { + "type": "boolean", + "description": "If calendar days should be counted for period days" + }, + "requiresConfirmation": { + "type": "boolean", + "description": "If the event type should require your confirmation before completing the booking" + }, + "recurringEvent": { + "type": "object", + "description": "If the event should recur every week/month/year with the selected frequency", + "properties": { + "interval": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "freq": { + "type": "integer" + } + } + }, + "disableGuests": { + "type": "boolean", + "description": "If the event type should disable adding guests to the booking" + }, + "hideCalendarNotes": { + "type": "boolean", + "description": "If the calendar notes should be hidden from the booking" + }, + "minimumBookingNotice": { + "type": "integer", + "description": "Minimum time in minutes before the event is bookable" + }, + "beforeEventBuffer": { + "type": "integer", + "description": "Number of minutes of buffer time before a Cal Event" + }, + "afterEventBuffer": { + "type": "integer", + "description": "Number of minutes of buffer time after a Cal Event" + }, + "schedulingType": { + "type": "string", + "description": "The type of scheduling if a Team event. Required for team events only", + "enum": ["ROUND_ROBIN", "COLLECTIVE", "MANAGED"] + }, + "price": { + "type": "integer", + "description": "Price of the event type booking" + }, + "parentId": { + "type": "integer", + "description": "EventTypeId of the parent managed event" + }, + "currency": { + "type": "string", + "description": "Currency acronym. Eg- usd, eur, gbp, etc." + }, + "slotInterval": { + "type": "integer", + "description": "The intervals of available bookable slots in minutes" + }, + "successRedirectUrl": { + "type": "string", + "format": "url", + "description": "A valid URL where the booker will redirect to, once the booking is completed successfully" + }, + "description": { + "type": "string", + "description": "Description of the event type" + }, + "locations": { + "type": "array", + "description": "A list of all available locations for the event type", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["integrations:daily"] + } + } + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["attendeeInPerson"] + } + } + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["inPerson"] + }, + "address": { + "type": "string" + }, + "displayLocationPublicly": { + "type": "boolean" + } + } + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["link"] + }, + "link": { + "type": "string" + }, + "displayLocationPublicly": { + "type": "boolean" + } + } + } + ] + } + } + } + } + }, + "examples": { + "event-type": { + "summary": "An example of an individual event type POST request", + "value": { + "title": "Hello World", + "slug": "hello-world", + "length": 30, + "hidden": false, + "position": 0, + "eventName": null, + "timeZone": null, + "scheduleId": 5, + "periodType": "UNLIMITED", + "periodStartDate": "2023-02-15T08:46:16.000Z", + "periodEndDate": "2023-0-15T08:46:16.000Z", + "periodDays": null, + "periodCountCalendarDays": false, + "requiresConfirmation": false, + "recurringEvent": null, + "disableGuests": false, + "hideCalendarNotes": false, + "minimumBookingNotice": 120, + "beforeEventBuffer": 0, + "afterEventBuffer": 0, + "price": 0, + "currency": "usd", + "slotInterval": null, + "successRedirectUrl": null, + "description": "A test event type", + "metadata": { + "apps": { + "stripe": { + "price": 0, + "enabled": false, + "currency": "usd" + } + } + } + } + }, + "team-event-type": { + "summary": "An example of a team event type POST request", + "value": { + "title": "Tennis class", + "slug": "tennis-class-{{$guid}}", + "length": 60, + "hidden": false, + "position": 0, + "teamId": 3, + "eventName": null, + "timeZone": null, + "periodType": "UNLIMITED", + "periodStartDate": null, + "periodEndDate": null, + "periodDays": null, + "periodCountCalendarDays": null, + "requiresConfirmation": true, + "recurringEvent": { + "interval": 2, + "count": 10, + "freq": 2 + }, + "disableGuests": false, + "hideCalendarNotes": false, + "minimumBookingNotice": 120, + "beforeEventBuffer": 0, + "afterEventBuffer": 0, + "schedulingType": "COLLECTIVE", + "price": 0, + "currency": "usd", + "slotInterval": null, + "successRedirectUrl": null, + "description": null, + "locations": [ + { + "address": "London", + "type": "inPerson" + } + ], + "metadata": {} + } + } + } + } + } + }, + "tags": ["Event Types"], + "externalDocs": { + "url": "https://docs.cal.com/docs/core-features/event-types" + }, + "responses": { + "201": { + "description": "OK, event type created" + }, + "400": { + "description": "Bad request. EventType body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/event-types/{id}": { + "delete": { + "operationId": "removeEventTypeById", + "summary": "Remove an existing eventType", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API Key" + }, + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the eventType to delete" + } + ], + "tags": ["Event Types"], + "externalDocs": { + "url": "https://docs.cal.com/docs/core-features/event-types" + }, + "responses": { + "201": { + "description": "OK, eventType removed successfully" + }, + "400": { + "description": "Bad request. EventType id is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + }, + "get": { + "operationId": "getEventTypeById", + "summary": "Find a eventType", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API Key" + }, + { + "in": "path", + "name": "id", + "example": 4, + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the eventType to get" + } + ], + "tags": ["Event Types"], + "externalDocs": { + "url": "https://docs.cal.com/docs/core-features/event-types" + }, + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "EventType was not found" + } + } + }, + "patch": { + "operationId": "editEventTypeById", + "summary": "Edit an existing eventType", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API Key" + }, + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the eventType to edit" + } + ], + "requestBody": { + "description": "Create a new event-type related to your user or team", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "length": { + "type": "integer", + "description": "Duration of the event type in minutes" + }, + "metadata": { + "type": "object", + "description": "Metadata relating to event type. Pass {} if empty" + }, + "title": { + "type": "string", + "description": "Title of the event type" + }, + "slug": { + "type": "string", + "description": "Unique slug for the event type" + }, + "scheduleId": { + "type": "number", + "description": "The ID of the schedule for this event type" + }, + "hosts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "userId": { + "type": "number" + }, + "isFixed": { + "type": "boolean", + "description": "Host MUST be available for any slot to be bookable." + } + } + } + }, + "hidden": { + "type": "boolean", + "description": "If the event type should be hidden from your public booking page" + }, + "position": { + "type": "integer", + "description": "The position of the event type on the public booking page" + }, + "teamId": { + "type": "integer", + "description": "Team ID if the event type should belong to a team" + }, + "periodType": { + "type": "string", + "enum": ["UNLIMITED", "ROLLING", "RANGE"], + "description": "To decide how far into the future an invitee can book an event with you" + }, + "periodStartDate": { + "type": "string", + "format": "date-time", + "description": "Start date of bookable period (Required if periodType is 'range')" + }, + "periodEndDate": { + "type": "string", + "format": "date-time", + "description": "End date of bookable period (Required if periodType is 'range')" + }, + "periodDays": { + "type": "integer", + "description": "Number of bookable days (Required if periodType is rolling)" + }, + "periodCountCalendarDays": { + "type": "boolean", + "description": "If calendar days should be counted for period days" + }, + "requiresConfirmation": { + "type": "boolean", + "description": "If the event type should require your confirmation before completing the booking" + }, + "recurringEvent": { + "type": "object", + "description": "If the event should recur every week/month/year with the selected frequency", + "properties": { + "interval": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "freq": { + "type": "integer" + } + } + }, + "disableGuests": { + "type": "boolean", + "description": "If the event type should disable adding guests to the booking" + }, + "hideCalendarNotes": { + "type": "boolean", + "description": "If the calendar notes should be hidden from the booking" + }, + "minimumBookingNotice": { + "type": "integer", + "description": "Minimum time in minutes before the event is bookable" + }, + "beforeEventBuffer": { + "type": "integer", + "description": "Number of minutes of buffer time before a Cal Event" + }, + "afterEventBuffer": { + "type": "integer", + "description": "Number of minutes of buffer time after a Cal Event" + }, + "schedulingType": { + "type": "string", + "description": "The type of scheduling if a Team event. Required for team events only", + "enum": ["ROUND_ROBIN", "COLLECTIVE"] + }, + "price": { + "type": "integer", + "description": "Price of the event type booking" + }, + "currency": { + "type": "string", + "description": "Currency acronym. Eg- usd, eur, gbp, etc." + }, + "slotInterval": { + "type": "integer", + "description": "The intervals of available bookable slots in minutes" + }, + "successRedirectUrl": { + "type": "string", + "format": "url", + "description": "A valid URL where the booker will redirect to, once the booking is completed successfully" + }, + "description": { + "type": "string", + "description": "Description of the event type" + }, + "seatsPerTimeSlot": { + "type": "integer", + "description": "The number of seats for each time slot" + }, + "seatsShowAttendees": { + "type": "boolean", + "description": "Share Attendee information in seats" + }, + "seatsShowAvailabilityCount": { + "type": "boolean", + "description": "Show the number of available seats" + }, + "locations": { + "type": "array", + "description": "A list of all available locations for the event type", + "items": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["integrations:daily"] + } + } + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["attendeeInPerson"] + } + } + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["inPerson"] + }, + "address": { + "type": "string" + }, + "displayLocationPublicly": { + "type": "boolean" + } + } + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["link"] + }, + "link": { + "type": "string" + }, + "displayLocationPublicly": { + "type": "boolean" + } + } + } + ] + } + } + } + } + }, + "example": { + "event-type": { + "summary": "An example of event type PATCH request", + "value": { + "length": 60, + "requiresConfirmation": true + } + } + } + } + } + }, + "tags": ["Event Types"], + "externalDocs": { + "url": "https://docs.cal.com/docs/core-features/event-types" + }, + "responses": { + "201": { + "description": "OK, eventType edited successfully" + }, + "400": { + "description": "Bad request. EventType body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/memberships": { + "get": { + "summary": "Find all memberships", + "tags": ["Memberships"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "No memberships were found" + } + } + }, + "post": { + "summary": "Creates a new membership", + "tags": ["Memberships"], + "responses": { + "201": { + "description": "OK, membership created" + }, + "400": { + "description": "Bad request. Membership body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/memberships/{userId}_{teamId}": { + "delete": { + "summary": "Remove an existing membership", + "parameters": [ + { + "in": "path", + "name": "userId", + "schema": { + "type": "integer" + }, + "required": true, + "description": "Numeric userId of the membership to get" + }, + { + "in": "path", + "name": "teamId", + "schema": { + "type": "integer" + }, + "required": true, + "description": "Numeric teamId of the membership to get" + } + ], + "tags": ["Memberships"], + "responses": { + "201": { + "description": "OK, membership removed successfuly" + }, + "400": { + "description": "Bad request. Membership id is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + }, + "get": { + "summary": "Find a membership by userID and teamID", + "parameters": [ + { + "in": "path", + "name": "userId", + "schema": { + "type": "integer" + }, + "required": true, + "description": "Numeric userId of the membership to get" + }, + { + "in": "path", + "name": "teamId", + "schema": { + "type": "integer" + }, + "required": true, + "description": "Numeric teamId of the membership to get" + } + ], + "tags": ["Memberships"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "Membership was not found" + } + } + }, + "patch": { + "summary": "Edit an existing membership", + "parameters": [ + { + "in": "path", + "name": "userId", + "schema": { + "type": "integer" + }, + "required": true, + "description": "Numeric userId of the membership to get" + }, + { + "in": "path", + "name": "teamId", + "schema": { + "type": "integer" + }, + "required": true, + "description": "Numeric teamId of the membership to get" + } + ], + "tags": ["Memberships"], + "responses": { + "201": { + "description": "OK, membership edited successfully" + }, + "400": { + "description": "Bad request. Membership body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/payments/{id}": { + "get": { + "summary": "Find a payment", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + }, + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the payment to get" + } + ], + "tags": ["Payments"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "Payment was not found" + } + } + } + }, + "/payments": { + "get": { + "summary": "Find all payments", + "tags": ["Payments"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "No payments were found" + } + } + } + }, + "/schedules": { + "get": { + "operationId": "listSchedules", + "summary": "Find all schedules", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API Key" + } + ], + "tags": ["Schedules"], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "examples": { + "schedules": { + "value": { + "schedules": [ + { + "id": 1234, + "userId": 5678, + "name": "Sample Schedule 1", + "timeZone": "America/Chicago", + "availability": [ + { + "id": 987, + "eventTypeId": null, + "days": [1, 2, 3, 4, 5], + "startTime": "09:00:00", + "endTime": "23:00:00" + } + ] + }, + { + "id": 2345, + "userId": 6789, + "name": "Sample Schedule 2", + "timeZone": "Europe/Amsterdam", + "availability": [ + { + "id": 876, + "eventTypeId": null, + "days": [1, 2, 3, 4, 5], + "startTime": "09:00:00", + "endTime": "17:00:00" + } + ] + } + ] + } + } + } + } + } + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "No schedules were found" + } + } + }, + "post": { + "operationId": "addSchedule", + "summary": "Creates a new schedule", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API Key" + } + ], + "requestBody": { + "description": "Create a new schedule", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["name", "timeZone"], + "properties": { + "name": { + "type": "string", + "description": "Name of the schedule" + }, + "timeZone": { + "type": "string", + "description": "The timeZone for this schedule" + } + } + }, + "examples": { + "schedule": { + "value": { + "name": "Sample Schedule", + "timeZone": "Asia/Calcutta" + } + } + } + } + } + }, + "tags": ["Schedules"], + "responses": { + "200": { + "description": "OK, schedule created", + "content": { + "application/json": { + "examples": { + "schedule": { + "value": { + "schedule": { + "id": 79471, + "userId": 182, + "name": "Total Testing", + "timeZone": "Asia/Calcutta", + "availability": [ + { + "id": 337917, + "eventTypeId": null, + "days": [1, 2, 3, 4, 5], + "startTime": "09:00:00", + "endTime": "17:00:00" + } + ] + }, + "message": "Schedule created successfully" + } + } + } + } + } + }, + "400": { + "description": "Bad request. Schedule body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/schedules/{id}": { + "delete": { + "operationId": "removeScheduleById", + "summary": "Remove an existing schedule", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the schedule to delete" + }, + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API Key" + } + ], + "tags": ["Schedules"], + "responses": { + "201": { + "description": "OK, schedule removed successfully" + }, + "400": { + "description": "Bad request. Schedule id is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + }, + "get": { + "operationId": "getScheduleById", + "summary": "Find a schedule", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the schedule to get" + }, + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API Key" + } + ], + "tags": ["Schedules"], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "examples": { + "schedule": { + "value": { + "schedule": { + "id": 12345, + "userId": 182, + "name": "Sample Schedule", + "timeZone": "Asia/Calcutta", + "availability": [ + { + "id": 111, + "eventTypeId": null, + "days": [0, 1, 2, 3, 4, 6], + "startTime": "00:00:00", + "endTime": "23:45:00" + }, + { + "id": 112, + "eventTypeId": null, + "days": [5], + "startTime": "00:00:00", + "endTime": "12:00:00" + }, + { + "id": 113, + "eventTypeId": null, + "days": [5], + "startTime": "15:00:00", + "endTime": "23:45:00" + } + ] + } + } + } + } + } + } + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "Schedule was not found" + } + } + }, + "patch": { + "operationId": "editScheduleById", + "summary": "Edit an existing schedule", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the schedule to edit" + }, + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API Key" + } + ], + "requestBody": { + "description": "Edit an existing schedule", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the schedule" + }, + "timeZone": { + "type": "string", + "description": "The timezone for this schedule" + } + } + }, + "examples": { + "schedule": { + "value": { + "name": "Updated Schedule", + "timeZone": "Asia/Calcutta" + } + } + } + } + } + }, + "tags": ["Schedules"], + "responses": { + "200": { + "description": "OK, schedule edited successfully", + "content": { + "application/json": { + "examples": { + "schedule": { + "value": { + "schedule": { + "id": 12345, + "userId": 1, + "name": "Total Testing Part 2", + "timeZone": "Asia/Calcutta", + "availability": [ + { + "id": 4567, + "eventTypeId": null, + "days": [1, 2, 3, 4, 5], + "startTime": "09:00:00", + "endTime": "17:00:00" + } + ] + } + } + } + } + } + } + }, + "400": { + "description": "Bad request. Schedule body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/selected-calendars": { + "get": { + "operationId": "listSelectedCalendars", + "summary": "Find all selected calendars", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API Key" + } + ], + "tags": ["Selected Calendars"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "No selected calendars were found" + } + } + }, + "post": { + "summary": "Creates a new selected calendar", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API Key" + } + ], + "requestBody": { + "description": "Create a new selected calendar", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["integration", "externalId"], + "properties": { + "integration": { + "type": "string", + "description": "The integration name" + }, + "externalId": { + "type": "string", + "description": "The external ID of the integration" + } + } + } + } + } + }, + "tags": ["Selected Calendars"], + "responses": { + "201": { + "description": "OK, selected calendar created" + }, + "400": { + "description": "Bad request. SelectedCalendar body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/selected-calendars/{userId}_{integration}_{externalId}": { + "delete": { + "operationId": "removeSelectedCalendarById", + "summary": "Remove a selected calendar", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API Key" + }, + { + "in": "path", + "name": "userId", + "schema": { + "type": "integer" + }, + "required": true, + "description": "userId of the selected calendar to get" + }, + { + "in": "path", + "name": "externalId", + "schema": { + "type": "integer" + }, + "required": true, + "description": "externalId of the selected-calendar to get" + }, + { + "in": "path", + "name": "integration", + "schema": { + "type": "string" + }, + "required": true, + "description": "integration of the selected calendar to get" + } + ], + "tags": ["Selected Calendars"], + "responses": { + "201": { + "description": "OK, selected-calendar removed successfully" + }, + "400": { + "description": "Bad request. SelectedCalendar id is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + }, + "get": { + "operationId": "getSelectedCalendarById", + "summary": "Find a selected calendar by providing the compoundId(userId_integration_externalId) separated by `_`", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API Key" + }, + { + "in": "path", + "name": "userId", + "schema": { + "type": "integer" + }, + "required": true, + "description": "userId of the selected calendar to get" + }, + { + "in": "path", + "name": "externalId", + "schema": { + "type": "string" + }, + "required": true, + "description": "externalId of the selected calendar to get" + }, + { + "in": "path", + "name": "integration", + "schema": { + "type": "string" + }, + "required": true, + "description": "integration of the selected calendar to get" + } + ], + "tags": ["Selected Calendars"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "SelectedCalendar was not found" + } + } + }, + "patch": { + "operationId": "editSelectedCalendarById", + "summary": "Edit a selected calendar", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API Key" + }, + { + "in": "path", + "name": "userId", + "schema": { + "type": "integer" + }, + "required": true, + "description": "userId of the selected calendar to get" + }, + { + "in": "path", + "name": "externalId", + "schema": { + "type": "string" + }, + "required": true, + "description": "externalId of the selected calendar to get" + }, + { + "in": "path", + "name": "integration", + "schema": { + "type": "string" + }, + "required": true, + "description": "integration of the selected calendar to get" + } + ], + "tags": ["Selected Calendars"], + "responses": { + "201": { + "description": "OK, selected-calendar edited successfully" + }, + "400": { + "description": "Bad request. SelectedCalendar body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/teams": { + "get": { + "operationId": "listTeams", + "summary": "Find all teams", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "tags": ["Teams"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "No teams were found" + } + } + }, + "post": { + "operationId": "addTeam", + "summary": "Creates a new team", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "requestBody": { + "description": "Create a new custom input for an event type", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "name", + "slug", + "hideBookATeamMember", + "brandColor", + "darkBrandColor", + "timeZone", + "weekStart", + "isPrivate" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the team" + }, + "slug": { + "type": "string", + "description": "A unique slug that works as path for the team public page" + }, + "hideBookATeamMember": { + "type": "boolean", + "description": "Flag to hide or show the book a team member option" + }, + "brandColor": { + "type": "string", + "description": "Primary brand color for the team" + }, + "darkBrandColor": { + "type": "string", + "description": "Dark variant of the primary brand color for the team" + }, + "timeZone": { + "type": "string", + "description": "Time zone of the team" + }, + "weekStart": { + "type": "string", + "description": "Starting day of the week for the team" + }, + "isPrivate": { + "type": "boolean", + "description": "Flag indicating if the team is private" + }, + "ownerId": { + "type": "number", + "description": "ID of the team owner - only admins can set this." + }, + "parentId": { + "type": "number", + "description": "ID of the parent organization." + } + } + } + } + } + }, + "tags": ["Teams"], + "responses": { + "201": { + "description": "OK, team created" + }, + "400": { + "description": "Bad request. Team body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/teams/{teamId}": { + "delete": { + "operationId": "removeTeamById", + "summary": "Remove an existing team", + "parameters": [ + { + "in": "path", + "name": "teamId", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the team to delete" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "tags": ["Teams"], + "responses": { + "201": { + "description": "OK, team removed successfully" + }, + "400": { + "description": "Bad request. Team id is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + }, + "get": { + "operationId": "getTeamById", + "summary": "Find a team", + "parameters": [ + { + "in": "path", + "name": "teamId", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the team to get" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "tags": ["Teams"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "Team was not found" + } + } + }, + "patch": { + "operationId": "editTeamById", + "summary": "Edit an existing team", + "parameters": [ + { + "in": "path", + "name": "teamId", + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the team to edit" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "requestBody": { + "description": "Create a new custom input for an event type", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the team" + }, + "slug": { + "type": "string", + "description": "A unique slug that works as path for the team public page" + } + } + } + } + } + }, + "tags": ["Teams"], + "responses": { + "201": { + "description": "OK, team edited successfully" + }, + "400": { + "description": "Bad request. Team body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/teams/{teamId}/event-types": { + "get": { + "summary": "Find all event types that belong to teamId", + "operationId": "listEventTypesByTeamId", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API Key" + }, + { + "in": "path", + "name": "teamId", + "schema": { + "type": "number" + }, + "required": true + } + ], + "tags": ["Event Types"], + "externalDocs": { + "url": "https://docs.cal.com/docs/core-features/event-types" + }, + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "No event types were found" + } + } + } + }, + "/users": { + "get": { + "operationId": "listUsers", + "summary": "Find all users", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + }, + { + "in": "query", + "name": "email", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "format": "email" + } + }, + "style": "form", + "explode": true, + "description": "The email address or an array of email addresses to filter by" + } + ], + "tags": ["Users"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "No users were found" + } + } + }, + "post": { + "operationId": "addUser", + "summary": "Creates a new user", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "requestBody": { + "description": "Create a new user", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["email", "username"], + "properties": { + "email": { + "type": "string", + "format": "email", + "description": "Email that belongs to the user being edited" + }, + "username": { + "type": "string", + "description": "Username for the user being created" + }, + "brandColor": { + "description": "The new user's brand color", + "type": "string" + }, + "darkBrandColor": { + "description": "The new user's brand color for dark mode", + "type": "string" + }, + "hideBranding": { + "description": "Remove branding from the user's calendar page", + "type": "boolean" + }, + "weekStart": { + "description": "Start of the week. Acceptable values are one of [SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY]", + "type": "string" + }, + "timeZone": { + "description": "The new user's time zone. Eg- 'EUROPE/PARIS'", + "type": "string" + }, + "theme": { + "description": "Default theme for the new user. Acceptable values are one of [DARK, LIGHT]", + "type": "string" + }, + "timeFormat": { + "description": "The new user's time format. Acceptable values are one of [TWELVE, TWENTY_FOUR]", + "type": "string" + }, + "locale": { + "description": "The new user's locale. Acceptable values are one of [EN, FR, IT, RU, ES, DE, PT, RO, NL, PT_BR, ES_419, KO, JA, PL, AR, IW, ZH_CH, ZH_TW, CS, SR, SV, VI]", + "type": "string" + }, + "avatar": { + "description": "The user's avatar, in base64 format", + "type": "string" + } + } + }, + "examples": { + "user": { + "summary": "An example of USER", + "value": { + "email": "email@example.com", + "username": "johndoe", + "weekStart": "MONDAY", + "brandColor": "#555555", + "darkBrandColor": "#111111", + "timeZone": "EUROPE/PARIS", + "theme": "LIGHT", + "timeFormat": "TWELVE", + "locale": "FR" + } + } + } + } + } + }, + "tags": ["Users"], + "responses": { + "201": { + "description": "OK, user created" + }, + "400": { + "description": "Bad request. user body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/users/{userId}": { + "delete": { + "summary": "Remove an existing user", + "operationId": "removeUserById", + "parameters": [ + { + "in": "path", + "name": "userId", + "example": 1, + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the user to delete" + }, + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API key" + } + ], + "tags": ["Users"], + "responses": { + "201": { + "description": "OK, user removed successfuly" + }, + "400": { + "description": "Bad request. User id is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + }, + "get": { + "summary": "Find a user, returns your user if regular user.", + "operationId": "getUserById", + "parameters": [ + { + "in": "path", + "name": "userId", + "example": 4, + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the user to get" + }, + { + "in": "query", + "name": "apiKey", + "schema": { + "type": "string" + }, + "required": true, + "description": "Your API key" + } + ], + "tags": ["Users"], + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "User was not found" + } + } + }, + "patch": { + "summary": "Edit an existing user", + "operationId": "editUserById", + "parameters": [ + { + "in": "path", + "name": "userId", + "example": 4, + "schema": { + "type": "integer" + }, + "required": true, + "description": "ID of the user to edit" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "requestBody": { + "description": "Edit an existing attendee related to one of your bookings", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email", + "description": "Email that belongs to the user being edited" + }, + "username": { + "type": "string", + "description": "Username for the user being edited" + }, + "brandColor": { + "description": "The user's brand color", + "type": "string" + }, + "darkBrandColor": { + "description": "The user's brand color for dark mode", + "type": "string" + }, + "weekStart": { + "description": "Start of the week. Acceptable values are one of [SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY]", + "type": "string" + }, + "timeZone": { + "description": "The user's time zone", + "type": "string" + }, + "hideBranding": { + "description": "Remove branding from the user's calendar page", + "type": "boolean" + }, + "theme": { + "description": "Default theme for the user. Acceptable values are one of [DARK, LIGHT]", + "type": "string" + }, + "timeFormat": { + "description": "The user's time format. Acceptable values are one of [TWELVE, TWENTY_FOUR]", + "type": "string" + }, + "locale": { + "description": "The user's locale. Acceptable values are one of [EN, FR, IT, RU, ES, DE, PT, RO, NL, PT_BR, ES_419, KO, JA, PL, AR, IW, ZH_CH, ZH_TW, CS, SR, SV, VI]", + "type": "string" + }, + "avatar": { + "description": "The user's avatar, in base64 format", + "type": "string" + } + } + }, + "examples": { + "user": { + "summary": "An example of USER", + "value": { + "email": "email@example.com", + "username": "johndoe", + "weekStart": "MONDAY", + "brandColor": null, + "darkBrandColor": null, + "timeZone": "EUROPE/PARIS", + "theme": "LIGHT", + "timeFormat": "TWELVE", + "locale": "FR" + } + } + } + } + } + }, + "tags": ["Users"], + "responses": { + "200": { + "description": "OK, user edited successfully" + }, + "400": { + "description": "Bad request. User body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "403": { + "description": "Insufficient permissions to access resource." + } + } + } + }, + "/webhooks": { + "get": { + "summary": "Find all webhooks", + "operationId": "listWebhooks", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "tags": ["Webhooks"], + "externalDocs": { + "url": "https://docs.cal.com/docs/core-features/webhooks" + }, + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "No webhooks were found" + } + } + }, + "post": { + "summary": "Creates a new webhook", + "operationId": "addWebhook", + "parameters": [ + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "requestBody": { + "description": "Create a new webhook", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["subscriberUrl", "eventTriggers", "active"], + "properties": { + "subscriberUrl": { + "type": "string", + "format": "uri", + "description": "The URL to subscribe to this webhook" + }, + "eventTriggers": { + "type": "string", + "enum": ["BOOKING_CREATED", "BOOKING_RESCHEDULED", "BOOKING_CANCELLED", "MEETING_ENDED"], + "description": "The events which should trigger this webhook call" + }, + "active": { + "type": "boolean", + "description": "Whether the webhook is active and should trigger on associated trigger events" + }, + "payloadTemplate": { + "type": "string", + "description": "The template of the webhook's payload" + }, + "eventTypeId": { + "type": "number", + "description": "The event type ID if this webhook should be associated with only that event type" + }, + "secret": { + "type": "string", + "description": "The secret to verify the authenticity of the received payload" + } + } + } + } + } + }, + "tags": ["Webhooks"], + "externalDocs": { + "url": "https://docs.cal.com/docs/core-features/webhooks" + }, + "responses": { + "201": { + "description": "OK, webhook created" + }, + "400": { + "description": "Bad request. webhook body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + }, + "/webhooks/{id}": { + "delete": { + "summary": "Remove an existing hook", + "operationId": "removeWebhookById", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "Numeric ID of the hooks to delete" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "tags": ["Webhooks"], + "externalDocs": { + "url": "https://docs.cal.com/docs/core-features/webhooks" + }, + "responses": { + "201": { + "description": "OK, hook removed successfully" + }, + "400": { + "description": "Bad request. hook id is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + }, + "get": { + "summary": "Find a webhook", + "operationId": "getWebhookById", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "Numeric ID of the webhook to get" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "tags": ["Webhooks"], + "externalDocs": { + "url": "https://docs.cal.com/docs/core-features/webhooks" + }, + "responses": { + "200": { + "description": "OK" + }, + "401": { + "description": "Authorization information is missing or invalid." + }, + "404": { + "description": "Webhook was not found" + } + } + }, + "patch": { + "summary": "Edit an existing webhook", + "operationId": "editWebhookById", + "parameters": [ + { + "in": "path", + "name": "id", + "schema": { + "type": "integer" + }, + "required": true, + "description": "Numeric ID of the webhook to edit" + }, + { + "in": "query", + "name": "apiKey", + "required": true, + "schema": { + "type": "string" + }, + "description": "Your API key" + } + ], + "requestBody": { + "description": "Edit an existing webhook", + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "subscriberUrl": { + "type": "string", + "format": "uri", + "description": "The URL to subscribe to this webhook" + }, + "eventTriggers": { + "type": "string", + "enum": ["BOOKING_CREATED", "BOOKING_RESCHEDULED", "BOOKING_CANCELLED", "MEETING_ENDED"], + "description": "The events which should trigger this webhook call" + }, + "active": { + "type": "boolean", + "description": "Whether the webhook is active and should trigger on associated trigger events" + }, + "payloadTemplate": { + "type": "string", + "description": "The template of the webhook's payload" + }, + "eventTypeId": { + "type": "number", + "description": "The event type ID if this webhook should be associated with only that event type" + }, + "secret": { + "type": "string", + "description": "The secret to verify the authenticity of the received payload" + } + } + } + } + } + }, + "tags": ["Webhooks"], + "externalDocs": { + "url": "https://docs.cal.com/docs/core-features/webhooks" + }, + "responses": { + "201": { + "description": "OK, webhook edited successfully" + }, + "400": { + "description": "Bad request. Webhook body is invalid." + }, + "401": { + "description": "Authorization information is missing or invalid." + } + } + } + } + } +} diff --git a/docs/api-reference/v1/rate-limit.mdx b/docs/api-reference/v1/rate-limit.mdx new file mode 100644 index 0000000000..b62b0fe050 --- /dev/null +++ b/docs/api-reference/v1/rate-limit.mdx @@ -0,0 +1,39 @@ +--- +title: "Rate limits" +--- + +We limit the number of calls you can make over a certain period of time. Rate limits vary and are specified by the following header in all responses: + + + + + + + + + + + + + + + + + + + + + + +
HeaderDescription
X-RateLimit-LimitThe maximum number of requests that the consumer is permitted to make.
X-RateLimit-RemainingThe number of requests remaining in the current rate limit window.
X-RateLimit-ResetThe time at which the current rate limit window resets in UTC epoch seconds.
+ +When the rate limit is **exceeded**, an error is returned with the status **"429 Too Many Requests"**: + +```json +{ + "error": { + "code": "too_many_requests", + "message": "Rate limit exceeded", + } +} +``` diff --git a/docs/api-reference/v2/introduction.mdx b/docs/api-reference/v2/introduction.mdx new file mode 100644 index 0000000000..81db0e1749 --- /dev/null +++ b/docs/api-reference/v2/introduction.mdx @@ -0,0 +1,20 @@ +--- +title: 'Introduction to API v2' +description: 'Introduction to Cal.com API v2 endpoints' +--- + +## Authentication + +The Cal.com API uses API keys to authenticate requests. You can view and manage your API keys in your settings page under the security tab in Cal.com. + + + +API Keys are under Settings > Security + +Test mode secret keys have the prefix `cal_` and live mode secret keys have the prefix `cal_live_`. + +Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth. + +Authentication to the API is performed via the Authentication header like: `Bearer: cal_live_xxxxxx` + +All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail. diff --git a/docs/api-reference/v2/openapi.json b/docs/api-reference/v2/openapi.json new file mode 100644 index 0000000000..d6d728663d --- /dev/null +++ b/docs/api-reference/v2/openapi.json @@ -0,0 +1,11255 @@ +{ + "openapi": "3.0.0", + "paths": { + "/v2/provider/{clientId}": { + "get": { + "operationId": "CalProviderController_verifyClientId", + "summary": "Get a provider", + "parameters": [ + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProviderVerifyClientOutput" + } + } + } + } + }, + "tags": ["Platform / Cal Provider"] + } + }, + "/v2/provider/{clientId}/access-token": { + "get": { + "operationId": "CalProviderController_verifyAccessToken", + "summary": "Verify an access token", + "parameters": [ + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProviderVerifyAccessTokenOutput" + } + } + } + } + }, + "tags": ["Platform / Cal Provider"] + } + }, + "/v2/gcal/oauth/auth-url": { + "get": { + "operationId": "GcalController_redirect", + "summary": "Get auth URL", + "parameters": [ + { + "name": "Authorization", + "required": true, + "in": "header", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GcalAuthUrlOutput" + } + } + } + } + }, + "tags": ["Platform / Google Calendar"] + } + }, + "/v2/gcal/oauth/save": { + "get": { + "operationId": "GcalController_save", + "summary": "Connect a calendar", + "parameters": [ + { + "name": "state", + "required": true, + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "code", + "required": true, + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GcalSaveRedirectOutput" + } + } + } + } + }, + "tags": ["Platform / Google Calendar"] + } + }, + "/v2/gcal/check": { + "get": { + "operationId": "GcalController_check", + "summary": "Check a calendar connection status", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GcalCheckOutput" + } + } + } + } + }, + "tags": ["Platform / Google Calendar"] + } + }, + "/v2/oauth-clients/{clientId}/users": { + "get": { + "operationId": "OAuthClientUsersController_getManagedUsers", + "summary": "Get all managed users", + "parameters": [ + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "required": false, + "in": "query", + "description": "The number of items to return", + "example": 10, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetManagedUsersOutput" + } + } + } + } + }, + "tags": ["Platform / Managed Users"] + }, + "post": { + "operationId": "OAuthClientUsersController_createUser", + "summary": "Create a managed user", + "parameters": [ + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateManagedUserInput" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateManagedUserOutput" + } + } + } + } + }, + "tags": ["Platform / Managed Users"] + } + }, + "/v2/oauth-clients/{clientId}/users/{userId}": { + "get": { + "operationId": "OAuthClientUsersController_getUserById", + "summary": "Get a managed user", + "parameters": [ + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + }, + { + "name": "userId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetManagedUserOutput" + } + } + } + } + }, + "tags": ["Platform / Managed Users"] + }, + "patch": { + "operationId": "OAuthClientUsersController_updateUser", + "summary": "Update a managed user", + "parameters": [ + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + }, + { + "name": "userId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateManagedUserInput" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetManagedUserOutput" + } + } + } + } + }, + "tags": ["Platform / Managed Users"] + }, + "delete": { + "operationId": "OAuthClientUsersController_deleteUser", + "summary": "Delete a managed user", + "parameters": [ + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + }, + { + "name": "userId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetManagedUserOutput" + } + } + } + } + }, + "tags": ["Platform / Managed Users"] + } + }, + "/v2/oauth-clients/{clientId}/users/{userId}/force-refresh": { + "post": { + "operationId": "OAuthClientUsersController_forceRefresh", + "summary": "Force refresh tokens", + "parameters": [ + { + "name": "userId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KeysResponseDto" + } + } + } + } + }, + "tags": ["Platform / Managed Users"] + } + }, + "/v2/oauth-clients/{clientId}/webhooks": { + "post": { + "operationId": "OAuthClientWebhooksController_createOAuthClientWebhook", + "summary": "Create a webhook", + "parameters": [ + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateWebhookInputDto" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OAuthClientWebhookOutputResponseDto" + } + } + } + } + }, + "tags": ["Platform / Webhooks"] + }, + "get": { + "operationId": "OAuthClientWebhooksController_getOAuthClientWebhooks", + "summary": "Get all webhooks", + "parameters": [ + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + }, + { + "name": "take", + "required": false, + "in": "query", + "description": "The number of items to return", + "example": 10, + "schema": { + "type": "number" + } + }, + { + "name": "skip", + "required": false, + "in": "query", + "description": "The number of items to skip", + "example": 0, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OAuthClientWebhooksOutputResponseDto" + } + } + } + } + }, + "tags": ["Platform / Webhooks"] + }, + "delete": { + "operationId": "OAuthClientWebhooksController_deleteAllOAuthClientWebhooks", + "summary": "Delete all webhooks", + "parameters": [ + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteManyWebhooksOutputResponseDto" + } + } + } + } + }, + "tags": ["Platform / Webhooks"] + } + }, + "/v2/oauth-clients/{clientId}/webhooks/{webhookId}": { + "patch": { + "operationId": "OAuthClientWebhooksController_updateOAuthClientWebhook", + "summary": "Update a webhook", + "parameters": [ + { + "name": "webhookId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateWebhookInputDto" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OAuthClientWebhookOutputResponseDto" + } + } + } + } + }, + "tags": ["Platform / Webhooks"] + }, + "get": { + "operationId": "OAuthClientWebhooksController_getOAuthClientWebhook", + "summary": "Get a webhook", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OAuthClientWebhookOutputResponseDto" + } + } + } + } + }, + "tags": ["Platform / Webhooks"] + }, + "delete": { + "operationId": "OAuthClientWebhooksController_deleteOAuthClientWebhook", + "summary": "Delete a webhook", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OAuthClientWebhookOutputResponseDto" + } + } + } + } + }, + "tags": ["Platform / Webhooks"] + } + }, + "/v2/organizations/{orgId}/attributes": { + "get": { + "operationId": "OrganizationsAttributesController_getOrganizationAttributes", + "summary": "Get all attributes", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "take", + "required": false, + "in": "query", + "description": "The number of items to return", + "example": 10, + "schema": { + "type": "number" + } + }, + { + "name": "skip", + "required": false, + "in": "query", + "description": "The number of items to skip", + "example": 0, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetOrganizationAttributesOutput" + } + } + } + } + }, + "tags": ["Orgs / Attributes"] + }, + "post": { + "operationId": "OrganizationsAttributesController_createOrganizationAttribute", + "summary": "Create an attribute", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateOrganizationAttributeInput" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateOrganizationAttributesOutput" + } + } + } + } + }, + "tags": ["Orgs / Attributes"] + } + }, + "/v2/organizations/{orgId}/attributes/{attributeId}": { + "get": { + "operationId": "OrganizationsAttributesController_getOrganizationAttribute", + "summary": "Get an attribute", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "attributeId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetSingleAttributeOutput" + } + } + } + } + }, + "tags": ["Orgs / Attributes"] + }, + "patch": { + "operationId": "OrganizationsAttributesController_updateOrganizationAttribute", + "summary": "Update an attribute", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "attributeId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrganizationAttributeInput" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrganizationAttributesOutput" + } + } + } + } + }, + "tags": ["Orgs / Attributes"] + }, + "delete": { + "operationId": "OrganizationsAttributesController_deleteOrganizationAttribute", + "summary": "Delete an attribute", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "attributeId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteOrganizationAttributesOutput" + } + } + } + } + }, + "tags": ["Orgs / Attributes"] + } + }, + "/v2/organizations/{orgId}/attributes/{attributeId}/options": { + "post": { + "operationId": "OrganizationsOptionsAttributesController_createOrganizationAttributeOption", + "summary": "Create an attribute option", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "attributeId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateOrganizationAttributeOptionInput" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateAttributeOptionOutput" + } + } + } + } + }, + "tags": ["Orgs / Attributes / Options"] + }, + "get": { + "operationId": "OrganizationsOptionsAttributesController_getOrganizationAttributeOptions", + "summary": "Get all attribute options", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "attributeId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetAllAttributeOptionOutput" + } + } + } + } + }, + "tags": ["Orgs / Attributes / Options"] + } + }, + "/v2/organizations/{orgId}/attributes/{attributeId}/options/{optionId}": { + "delete": { + "operationId": "OrganizationsOptionsAttributesController_deleteOrganizationAttributeOption", + "summary": "Delete an attribute option", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "attributeId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + }, + { + "name": "optionId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteAttributeOptionOutput" + } + } + } + } + }, + "tags": ["Orgs / Attributes / Options"] + }, + "patch": { + "operationId": "OrganizationsOptionsAttributesController_updateOrganizationAttributeOption", + "summary": "Update an attribute option", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "attributeId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + }, + { + "name": "optionId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrganizationAttributeOptionInput" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateAttributeOptionOutput" + } + } + } + } + }, + "tags": ["Orgs / Attributes / Options"] + } + }, + "/v2/organizations/{orgId}/attributes/options/{userId}": { + "post": { + "operationId": "OrganizationsOptionsAttributesController_assignOrganizationAttributeOptionToUser", + "summary": "Assign an attribute to a user", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "userId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssignOrganizationAttributeOptionToUserInput" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssignOptionUserOutput" + } + } + } + } + }, + "tags": ["Orgs / Attributes / Options"] + }, + "get": { + "operationId": "OrganizationsOptionsAttributesController_getOrganizationAttributeOptionsForUser", + "summary": "Get all attribute options for a user", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "userId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetOptionUserOutput" + } + } + } + } + }, + "tags": ["Orgs / Attributes / Options"] + } + }, + "/v2/organizations/{orgId}/attributes/options/{userId}/{attributeOptionId}": { + "delete": { + "operationId": "OrganizationsOptionsAttributesController_unassignOrganizationAttributeOptionFromUser", + "summary": "Unassign an attribute from a user", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "userId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "attributeOptionId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnassignOptionUserOutput" + } + } + } + } + }, + "tags": ["Orgs / Attributes / Options"] + } + }, + "/v2/organizations/{orgId}/teams/{teamId}/event-types": { + "post": { + "operationId": "OrganizationsEventTypesController_createTeamEventType", + "summary": "Create an event type", + "parameters": [ + { + "name": "teamId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTeamEventTypeInput_2024_06_14" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTeamEventTypeOutput" + } + } + } + } + }, + "tags": ["Orgs / Event Types"] + }, + "get": { + "operationId": "OrganizationsEventTypesController_getTeamEventTypes", + "summary": "Get a team event type", + "parameters": [ + { + "name": "teamId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "eventSlug", + "required": true, + "in": "query", + "description": "Slug of team event type to return.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTeamEventTypesOutput" + } + } + } + } + }, + "tags": ["Orgs / Event Types"] + } + }, + "/v2/organizations/{orgId}/teams/{teamId}/event-types/{eventTypeId}": { + "get": { + "operationId": "OrganizationsEventTypesController_getTeamEventType", + "summary": "Get an event type", + "parameters": [ + { + "name": "teamId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "eventTypeId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTeamEventTypeOutput" + } + } + } + } + }, + "tags": ["Orgs / Event Types"] + }, + "patch": { + "operationId": "OrganizationsEventTypesController_updateTeamEventType", + "summary": "Update a team event type", + "parameters": [ + { + "name": "teamId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "eventTypeId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTeamEventTypeInput_2024_06_14" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTeamEventTypeOutput" + } + } + } + } + }, + "tags": ["Orgs / Event Types"] + }, + "delete": { + "operationId": "OrganizationsEventTypesController_deleteTeamEventType", + "summary": "Delete a team event type", + "parameters": [ + { + "name": "teamId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "eventTypeId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteTeamEventTypeOutput" + } + } + } + } + }, + "tags": ["Orgs / Event Types"] + } + }, + "/v2/organizations/{orgId}/teams/{teamId}/event-types/{eventTypeId}/create-phone-call": { + "post": { + "operationId": "OrganizationsEventTypesController_createPhoneCall", + "summary": "Create a phone call", + "parameters": [ + { + "name": "eventTypeId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreatePhoneCallInput" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreatePhoneCallOutput" + } + } + } + } + }, + "tags": ["Orgs / Event Types"] + } + }, + "/v2/organizations/{orgId}/teams/event-types": { + "get": { + "operationId": "OrganizationsEventTypesController_getTeamsEventTypes", + "summary": "Get all team event types", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "take", + "required": false, + "in": "query", + "description": "The number of items to return", + "example": 10, + "schema": { + "type": "number" + } + }, + { + "name": "skip", + "required": false, + "in": "query", + "description": "The number of items to skip", + "example": 0, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTeamEventTypesOutput" + } + } + } + } + }, + "tags": ["Orgs / Event Types"] + } + }, + "/v2/organizations/{orgId}/memberships": { + "get": { + "operationId": "OrganizationsMembershipsController_getAllMemberships", + "summary": "Get all memberships", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "take", + "required": false, + "in": "query", + "description": "The number of items to return", + "example": 10, + "schema": { + "type": "number" + } + }, + { + "name": "skip", + "required": false, + "in": "query", + "description": "The number of items to skip", + "example": 0, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetAllOrgMemberships" + } + } + } + } + }, + "tags": ["Orgs / Memberships"] + }, + "post": { + "operationId": "OrganizationsMembershipsController_createMembership", + "summary": "Create a membership", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateOrgMembershipDto" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateOrgMembershipOutput" + } + } + } + } + }, + "tags": ["Orgs / Memberships"] + } + }, + "/v2/organizations/{orgId}/memberships/{membershipId}": { + "get": { + "operationId": "OrganizationsMembershipsController_getOrgMembership", + "summary": "Get a membership", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "membershipId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetOrgMembership" + } + } + } + } + }, + "tags": ["Orgs / Memberships"] + }, + "delete": { + "operationId": "OrganizationsMembershipsController_deleteMembership", + "summary": "Delete a membership", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "membershipId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteOrgMembership" + } + } + } + } + }, + "tags": ["Orgs / Memberships"] + }, + "patch": { + "operationId": "OrganizationsMembershipsController_updateMembership", + "summary": "Update a membership", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "membershipId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrgMembershipDto" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrgMembership" + } + } + } + } + }, + "tags": ["Orgs / Memberships"] + } + }, + "/v2/organizations/{orgId}/schedules": { + "get": { + "operationId": "OrganizationsSchedulesController_getOrganizationSchedules", + "summary": "Get all schedules", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "take", + "required": false, + "in": "query", + "description": "The number of items to return", + "example": 10, + "schema": { + "type": "number" + } + }, + { + "name": "skip", + "required": false, + "in": "query", + "description": "The number of items to skip", + "example": 0, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetSchedulesOutput_2024_06_11" + } + } + } + } + }, + "tags": ["Orgs / Schedules"] + } + }, + "/v2/organizations/{orgId}/users/{userId}/schedules": { + "post": { + "operationId": "OrganizationsSchedulesController_createUserSchedule", + "summary": "Create a schedule", + "parameters": [ + { + "name": "userId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateScheduleInput_2024_06_11" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateScheduleOutput_2024_06_11" + } + } + } + } + }, + "tags": ["Orgs / Schedules", "Orgs / Users / Schedules"] + }, + "get": { + "operationId": "OrganizationsSchedulesController_getUserSchedules", + "summary": "Get all schedules", + "parameters": [ + { + "name": "userId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetSchedulesOutput_2024_06_11" + } + } + } + } + }, + "tags": ["Orgs / Schedules", "Orgs / Users / Schedules"] + } + }, + "/v2/organizations/{orgId}/users/{userId}/schedules/{scheduleId}": { + "get": { + "operationId": "OrganizationsSchedulesController_getUserSchedule", + "summary": "Get a schedule", + "parameters": [ + { + "name": "userId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "scheduleId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetScheduleOutput_2024_06_11" + } + } + } + } + }, + "tags": ["Orgs / Schedules", "Orgs / Users / Schedules"] + }, + "patch": { + "operationId": "OrganizationsSchedulesController_updateUserSchedule", + "summary": "Update a schedule", + "parameters": [ + { + "name": "userId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "scheduleId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateScheduleInput_2024_06_11" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateScheduleOutput_2024_06_11" + } + } + } + } + }, + "tags": ["Orgs / Schedules", "Orgs / Users / Schedules"] + }, + "delete": { + "operationId": "OrganizationsSchedulesController_deleteUserSchedule", + "summary": "Delete a schedule", + "parameters": [ + { + "name": "userId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "scheduleId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteScheduleOutput_2024_06_11" + } + } + } + } + }, + "tags": ["Orgs / Schedules", "Orgs / Users / Schedules"] + } + }, + "/v2/organizations/{orgId}/teams": { + "get": { + "operationId": "OrganizationsTeamsController_getAllTeams", + "summary": "Get all teams", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "take", + "required": false, + "in": "query", + "description": "The number of items to return", + "example": 10, + "schema": { + "type": "number" + } + }, + { + "name": "skip", + "required": false, + "in": "query", + "description": "The number of items to skip", + "example": 0, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrgTeamsOutputResponseDto" + } + } + } + } + }, + "tags": ["Orgs / Teams", "Teams"] + }, + "post": { + "operationId": "OrganizationsTeamsController_createTeam", + "summary": "Create a team", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "x-cal-client-id", + "required": true, + "in": "header", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateOrgTeamDto" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrgTeamOutputResponseDto" + } + } + } + } + }, + "tags": ["Orgs / Teams"] + } + }, + "/v2/organizations/{orgId}/teams/me": { + "get": { + "operationId": "OrganizationsTeamsController_getMyTeams", + "summary": "Get team membership for user", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "take", + "required": false, + "in": "query", + "description": "The number of items to return", + "example": 10, + "schema": { + "type": "number" + } + }, + { + "name": "skip", + "required": false, + "in": "query", + "description": "The number of items to skip", + "example": 0, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrgMeTeamsOutputResponseDto" + } + } + } + } + }, + "tags": ["Orgs / Teams"] + } + }, + "/v2/organizations/{orgId}/teams/{teamId}": { + "get": { + "operationId": "OrganizationsTeamsController_getTeam", + "summary": "Get a team", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrgTeamOutputResponseDto" + } + } + } + } + }, + "tags": ["Orgs / Teams"] + }, + "delete": { + "operationId": "OrganizationsTeamsController_deleteTeam", + "summary": "Delete a team", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "teamId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrgTeamOutputResponseDto" + } + } + } + } + }, + "tags": ["Orgs / Teams"] + }, + "patch": { + "operationId": "OrganizationsTeamsController_updateTeam", + "summary": "Update a team", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "teamId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrgTeamDto" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrgTeamOutputResponseDto" + } + } + } + } + }, + "tags": ["Orgs / Teams"] + } + }, + "/v2/organizations/{orgId}/teams/{teamId}/memberships": { + "get": { + "operationId": "OrganizationsTeamsMembershipsController_getAllOrgTeamMemberships", + "summary": "Get all memberships", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "teamId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "take", + "required": false, + "in": "query", + "description": "The number of items to return", + "example": 10, + "schema": { + "type": "number" + } + }, + { + "name": "skip", + "required": false, + "in": "query", + "description": "The number of items to skip", + "example": 0, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrgTeamMembershipsOutputResponseDto" + } + } + } + } + }, + "tags": ["Orgs / Teams / Memberships"] + }, + "post": { + "operationId": "OrganizationsTeamsMembershipsController_createOrgTeamMembership", + "summary": "Create a membership", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "teamId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateOrgTeamMembershipDto" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrgTeamMembershipOutputResponseDto" + } + } + } + } + }, + "tags": ["Orgs / Teams / Memberships"] + } + }, + "/v2/organizations/{orgId}/teams/{teamId}/memberships/{membershipId}": { + "get": { + "operationId": "OrganizationsTeamsMembershipsController_getOrgTeamMembership", + "summary": "Get a membership", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "teamId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "membershipId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrgTeamMembershipOutputResponseDto" + } + } + } + } + }, + "tags": ["Orgs / Teams / Memberships"] + }, + "delete": { + "operationId": "OrganizationsTeamsMembershipsController_deleteOrgTeamMembership", + "summary": "Delete a membership", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "teamId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "membershipId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrgTeamMembershipOutputResponseDto" + } + } + } + } + }, + "tags": ["Orgs / Teams / Memberships"] + }, + "patch": { + "operationId": "OrganizationsTeamsMembershipsController_updateOrgTeamMembership", + "summary": "Update a membership", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "teamId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "membershipId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrgTeamMembershipDto" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrgTeamMembershipOutputResponseDto" + } + } + } + } + }, + "tags": ["Orgs / Teams / Memberships"] + } + }, + "/v2/organizations/{orgId}/users": { + "get": { + "operationId": "OrganizationsUsersController_getOrganizationsUsers", + "summary": "Get all users", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "take", + "required": false, + "in": "query", + "description": "The number of items to return", + "example": 10, + "schema": { + "type": "number" + } + }, + { + "name": "skip", + "required": false, + "in": "query", + "description": "The number of items to skip", + "example": 0, + "schema": { + "type": "number" + } + }, + { + "name": "emails", + "required": false, + "in": "query", + "description": "The email address or an array of email addresses to filter by", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetOrganizationUsersOutput" + } + } + } + } + }, + "tags": ["Orgs / Users"] + }, + "post": { + "operationId": "OrganizationsUsersController_createOrganizationUser", + "summary": "Create a user", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateOrganizationUserInput" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetOrganizationUserOutput" + } + } + } + } + }, + "tags": ["Orgs / Users"] + } + }, + "/v2/organizations/{orgId}/users/{userId}": { + "patch": { + "operationId": "OrganizationsUsersController_updateOrganizationUser", + "summary": "Update a user", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "userId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrganizationUserInput" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetOrganizationUserOutput" + } + } + } + } + }, + "tags": ["Orgs / Users"] + }, + "delete": { + "operationId": "OrganizationsUsersController_deleteOrganizationUser", + "summary": "Delete a user", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "userId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetOrganizationUserOutput" + } + } + } + } + }, + "tags": ["Orgs / Users"] + } + }, + "/v2/organizations/{orgId}/webhooks": { + "get": { + "operationId": "OrganizationsWebhooksController_getAllOrganizationWebhooks", + "summary": "Get all webhooks", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "take", + "required": false, + "in": "query", + "description": "The number of items to return", + "example": 10, + "schema": { + "type": "number" + } + }, + { + "name": "skip", + "required": false, + "in": "query", + "description": "The number of items to skip", + "example": 0, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TeamWebhooksOutputResponseDto" + } + } + } + } + }, + "tags": ["Orgs / Webhooks"] + }, + "post": { + "operationId": "OrganizationsWebhooksController_createOrganizationWebhook", + "summary": "Create a webhook", + "parameters": [ + { + "name": "orgId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateWebhookInputDto" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TeamWebhookOutputResponseDto" + } + } + } + } + }, + "tags": ["Orgs / Webhooks"] + } + }, + "/v2/organizations/{orgId}/webhooks/{webhookId}": { + "get": { + "operationId": "OrganizationsWebhooksController_getOrganizationWebhook", + "summary": "Get a webhook", + "parameters": [ + { + "name": "webhookId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TeamWebhookOutputResponseDto" + } + } + } + } + }, + "tags": ["Orgs / Webhooks"] + }, + "delete": { + "operationId": "OrganizationsWebhooksController_deleteWebhook", + "summary": "Delete a webhook", + "parameters": [ + { + "name": "webhookId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TeamWebhookOutputResponseDto" + } + } + } + } + }, + "tags": ["Orgs / Webhooks"] + }, + "patch": { + "operationId": "OrganizationsWebhooksController_updateOrgWebhook", + "summary": "Update a webhook", + "parameters": [ + { + "name": "webhookId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateWebhookInputDto" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TeamWebhookOutputResponseDto" + } + } + } + } + }, + "tags": ["Orgs / Webhooks"] + } + }, + "/v2/bookings": { + "post": { + "operationId": "BookingsController_2024_08_13_createBooking", + "summary": "Create a booking", + "description": "\n POST /v2/bookings is used to create regular bookings, recurring bookings and instant bookings. The request bodies for all 3 are almost the same except:\n If eventTypeId in the request body is id of a regular event, then regular booking is created.\n\n If it is an id of a recurring event type, then recurring booking is created.\n\n Meaning that the request bodies are equal but the outcome depends on what kind of event type it is with the goal of making it as seamless for developers as possible.\n\n For team event types it is possible to create instant meeting. To do that just pass `\"instant\": true` to the request body.\n\n The start needs to be in UTC aka if the timezone is GMT+2 in Rome and meeting should start at 11, then UTC time should have hours 09:00 aka without time zone.\n ", + "parameters": [ + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-08-13`", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "description": "Accepts different types of booking input: CreateBookingInput_2024_08_13, CreateInstantBookingInput_2024_08_13, or CreateRecurringBookingInput_2024_08_13", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "$ref": "#/components/schemas/CreateBookingInput_2024_08_13" + }, + { + "$ref": "#/components/schemas/CreateInstantBookingInput_2024_08_13" + }, + { + "$ref": "#/components/schemas/CreateRecurringBookingInput_2024_08_13" + } + ] + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateBookingOutput_2024_08_13" + } + } + } + } + }, + "tags": ["Bookings"] + }, + "get": { + "operationId": "BookingsController_2024_08_13_getBookings", + "summary": "Get all bookings", + "parameters": [ + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-08-13`", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "status", + "required": false, + "in": "query", + "description": "Filter bookings by status. If you want to filter by multiple statuses, separate them with a comma.", + "example": "?status=upcoming,past", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": ["upcoming", "recurring", "past", "cancelled", "unconfirmed"] + } + } + }, + { + "name": "attendeeEmail", + "required": false, + "in": "query", + "description": "Filter bookings by the attendee's email address.", + "example": "example@domain.com", + "schema": { + "type": "string" + } + }, + { + "name": "attendeeName", + "required": false, + "in": "query", + "description": "Filter bookings by the attendee's name.", + "example": "John Doe", + "schema": { + "type": "string" + } + }, + { + "name": "eventTypeIds", + "required": false, + "in": "query", + "description": "Filter bookings by event type ids belonging to the user. Event type ids must be separated by a comma.", + "example": "?eventTypeIds=100,200", + "schema": { + "type": "string" + } + }, + { + "name": "eventTypeId", + "required": false, + "in": "query", + "description": "Filter bookings by event type id belonging to the user.", + "example": "?eventTypeId=100", + "schema": { + "type": "string" + } + }, + { + "name": "teamsIds", + "required": false, + "in": "query", + "description": "Filter bookings by team ids that user is part of. Team ids must be separated by a comma.", + "example": "?teamIds=50,60", + "schema": { + "type": "string" + } + }, + { + "name": "teamId", + "required": false, + "in": "query", + "description": "Filter bookings by team id that user is part of", + "example": "?teamId=50", + "schema": { + "type": "string" + } + }, + { + "name": "afterStart", + "required": false, + "in": "query", + "description": "Filter bookings with start after this date string.", + "example": "?afterStart=2025-03-07T10:00:00.000Z", + "schema": { + "type": "string" + } + }, + { + "name": "beforeEnd", + "required": false, + "in": "query", + "description": "Filter bookings with end before this date string.", + "example": "?beforeEnd=2025-03-07T11:00:00.000Z", + "schema": { + "type": "string" + } + }, + { + "name": "sortStart", + "required": false, + "in": "query", + "description": "Sort results by their start time in ascending or descending order.", + "example": "?sortStart=asc OR ?sortStart=desc", + "schema": { + "enum": ["asc", "desc"], + "type": "string" + } + }, + { + "name": "sortEnd", + "required": false, + "in": "query", + "description": "Sort results by their end time in ascending or descending order.", + "example": "?sortEnd=asc OR ?sortEnd=desc", + "schema": { + "enum": ["asc", "desc"], + "type": "string" + } + }, + { + "name": "sortCreated", + "required": false, + "in": "query", + "description": "Sort results by their creation time (when booking was made) in ascending or descending order.", + "example": "?sortEnd=asc OR ?sortEnd=desc", + "schema": { + "enum": ["asc", "desc"], + "type": "string" + } + }, + { + "name": "take", + "required": false, + "in": "query", + "description": "The number of items to return", + "example": 10, + "schema": { + "type": "number" + } + }, + { + "name": "skip", + "required": false, + "in": "query", + "description": "The number of items to skip", + "example": 0, + "schema": { + "type": "number" + } + }, + { + "name": "Authorization", + "in": "header", + "description": "value must be `Bearer ` where `` either managed user access token or api key prefixed with cal_", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetBookingsOutput_2024_08_13" + } + } + } + } + }, + "tags": ["Bookings"] + } + }, + "/v2/bookings/{bookingUid}": { + "get": { + "operationId": "BookingsController_2024_08_13_getBooking", + "summary": "Get a booking", + "description": "`:bookingUid` can be\n\n 1. uid of a normal booking\n\n 2. uid of one of the recurring booking recurrences\n\n 3. uid of recurring booking which will return an array of all recurring booking recurrences (stored as recurringBookingUid on one of the individual recurrences).", + "parameters": [ + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-08-13`", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "bookingUid", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetBookingOutput_2024_08_13" + } + } + } + } + }, + "tags": ["Bookings"] + } + }, + "/v2/bookings/{bookingUid}/reschedule": { + "post": { + "operationId": "BookingsController_2024_08_13_rescheduleBooking", + "summary": "Reschedule a booking", + "description": "Reschedule a booking by passing `:bookingUid` of the booking that should be rescheduled and pass request body with a new start time to create a new booking.", + "parameters": [ + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-08-13`", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "bookingUid", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RescheduleBookingInput_2024_08_13" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RescheduleBookingOutput_2024_08_13" + } + } + } + } + }, + "tags": ["Bookings"] + } + }, + "/v2/bookings/{bookingUid}/cancel": { + "post": { + "operationId": "BookingsController_2024_08_13_cancelBooking", + "summary": "Cancel a booking", + "parameters": [ + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-08-13`", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "bookingUid", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CancelBookingInput_2024_08_13" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CancelBookingOutput_2024_08_13" + } + } + } + } + }, + "tags": ["Bookings"] + } + }, + "/v2/bookings/{bookingUid}/mark-absent": { + "post": { + "operationId": "BookingsController_2024_08_13_markNoShow", + "summary": "Mark a booking absence", + "parameters": [ + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-08-13`", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "bookingUid", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "in": "header", + "description": "value must be `Bearer ` where `` either managed user access token or api key prefixed with cal_", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MarkAbsentBookingInput_2024_08_13" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MarkAbsentBookingOutput_2024_08_13" + } + } + } + } + }, + "tags": ["Bookings"] + } + }, + "/v2/calendars/ics-feed/save": { + "post": { + "operationId": "CalendarsController_createIcsFeed", + "summary": "Save an ICS feed", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateIcsFeedInputDto" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateIcsFeedOutputResponseDto" + } + } + } + } + }, + "tags": ["Calendars"] + } + }, + "/v2/calendars/ics-feed/check": { + "get": { + "operationId": "CalendarsController_checkIcsFeed", + "summary": "Check an ICS feed", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + } + }, + "tags": ["Calendars"] + } + }, + "/v2/calendars/busy-times": { + "get": { + "operationId": "CalendarsController_getBusyTimes", + "summary": "Get busy times", + "parameters": [ + { + "name": "loggedInUsersTz", + "required": true, + "in": "query", + "description": "The timezone of the logged in user represented as a string", + "example": "America/New_York", + "schema": { + "type": "string" + } + }, + { + "name": "calendarsToLoad", + "required": true, + "in": "query", + "description": "An array of Calendar objects representing the calendars to be loaded", + "example": "[{ credentialId: \"1\", externalId: \"AQgtJE7RnHEeyisVq2ENs2gAAAgEGAAAACgtJE7RnHEeyisVq2ENs2gAAAhSDAAAA\" }, { credentialId: \"2\", externalId: \"AQM7RnHEeyisVq2ENs2gAAAhFDBBBBB\" }]", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetBusyTimesOutput" + } + } + } + } + }, + "tags": ["Calendars"] + } + }, + "/v2/calendars": { + "get": { + "operationId": "CalendarsController_getCalendars", + "summary": "Get all calendars", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConnectedCalendarsOutput" + } + } + } + } + }, + "tags": ["Calendars"] + } + }, + "/v2/calendars/{calendar}/connect": { + "get": { + "operationId": "CalendarsController_redirect", + "summary": "Get connect URL", + "parameters": [ + { + "name": "Authorization", + "required": true, + "in": "header", + "schema": { + "type": "string" + } + }, + { + "name": "calendar", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + } + }, + "tags": ["Calendars"] + } + }, + "/v2/calendars/{calendar}/save": { + "get": { + "operationId": "CalendarsController_save", + "summary": "Save a calendar", + "parameters": [ + { + "name": "state", + "required": true, + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "code", + "required": true, + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "calendar", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "" + } + }, + "tags": ["Calendars"] + } + }, + "/v2/calendars/{calendar}/credentials": { + "post": { + "operationId": "CalendarsController_syncCredentials", + "summary": "Sync credentials", + "parameters": [ + { + "name": "calendar", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "201": { + "description": "" + } + }, + "tags": ["Calendars"] + } + }, + "/v2/calendars/{calendar}/check": { + "get": { + "operationId": "CalendarsController_check", + "summary": "Check a calendar connection", + "parameters": [ + { + "name": "calendar", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + } + }, + "tags": ["Calendars"] + } + }, + "/v2/calendars/{calendar}/disconnect": { + "post": { + "operationId": "CalendarsController_deleteCalendarCredentials", + "summary": "Disconnect a calendar", + "parameters": [ + { + "name": "calendar", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteCalendarCredentialsInputBodyDto" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeletedCalendarCredentialsOutputResponseDto" + } + } + } + } + }, + "tags": ["Calendars"] + } + }, + "/v2/destination-calendars": { + "put": { + "operationId": "DestinationCalendarsController_updateDestinationCalendars", + "summary": "Update destination calendars", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DestinationCalendarsInputBodyDto" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DestinationCalendarsOutputResponseDto" + } + } + } + } + }, + "tags": ["Destination Calendars"] + } + }, + "/v2/event-types": { + "post": { + "operationId": "EventTypesController_2024_06_14_createEventType", + "summary": "Create an event type", + "parameters": [ + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-06-14`", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "in": "header", + "description": "value must be `Bearer ` where `` either managed user access token or api key prefixed with cal_", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateEventTypeInput_2024_06_14" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateEventTypeOutput_2024_06_14" + } + } + } + } + }, + "tags": ["Event Types"] + }, + "get": { + "operationId": "EventTypesController_2024_06_14_getEventTypes", + "summary": "Get all event types", + "parameters": [ + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-06-14`", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "username", + "required": true, + "in": "query", + "description": "The username of the user to get event types for. If only username provided will get all event types.", + "schema": { + "type": "string" + } + }, + { + "name": "eventSlug", + "required": true, + "in": "query", + "description": "Slug of event type to return. Notably, if eventSlug is provided then username must be provided too, because multiple users can have event with same slug.", + "schema": { + "type": "string" + } + }, + { + "name": "usernames", + "required": true, + "in": "query", + "description": "Get dynamic event type for multiple usernames separated by comma. e.g `usernames=alice,bob`", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetEventTypesOutput_2024_06_14" + } + } + } + } + }, + "tags": ["Event Types"] + } + }, + "/v2/event-types/{eventTypeId}": { + "get": { + "operationId": "EventTypesController_2024_06_14_getEventTypeById", + "summary": "Get an event type", + "parameters": [ + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-06-14`", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "eventTypeId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "in": "header", + "description": "value must be `Bearer ` where `` either managed user access token or api key prefixed with cal_", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetEventTypeOutput_2024_06_14" + } + } + } + } + }, + "tags": ["Event Types"] + }, + "patch": { + "operationId": "EventTypesController_2024_06_14_updateEventType", + "summary": "Update an event type", + "parameters": [ + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-06-14`", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "eventTypeId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "Authorization", + "in": "header", + "description": "value must be `Bearer ` where `` either managed user access token or api key prefixed with cal_", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateEventTypeInput_2024_06_14" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateEventTypeOutput_2024_06_14" + } + } + } + } + }, + "tags": ["Event Types"] + }, + "delete": { + "operationId": "EventTypesController_2024_06_14_deleteEventType", + "summary": "Delete an event type", + "parameters": [ + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-06-14`", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "eventTypeId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "Authorization", + "in": "header", + "description": "value must be `Bearer ` where `` either managed user access token or api key prefixed with cal_", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteEventTypeOutput_2024_06_14" + } + } + } + } + }, + "tags": ["Event Types"] + } + }, + "/v2/event-types/{eventTypeId}/webhooks": { + "post": { + "operationId": "EventTypeWebhooksController_createEventTypeWebhook", + "summary": "Create a webhook", + "parameters": [ + { + "name": "eventTypeId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateWebhookInputDto" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EventTypeWebhookOutputResponseDto" + } + } + } + } + }, + "tags": ["Event Types / Webhooks"] + }, + "get": { + "operationId": "EventTypeWebhooksController_getEventTypeWebhooks", + "summary": "Get all webhooks", + "parameters": [ + { + "name": "eventTypeId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + }, + { + "name": "take", + "required": false, + "in": "query", + "description": "The number of items to return", + "example": 10, + "schema": { + "type": "number" + } + }, + { + "name": "skip", + "required": false, + "in": "query", + "description": "The number of items to skip", + "example": 0, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EventTypeWebhooksOutputResponseDto" + } + } + } + } + }, + "tags": ["Event Types / Webhooks"] + }, + "delete": { + "operationId": "EventTypeWebhooksController_deleteAllEventTypeWebhooks", + "summary": "Delete all webhooks", + "parameters": [ + { + "name": "eventTypeId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteManyWebhooksOutputResponseDto" + } + } + } + } + }, + "tags": ["Event Types / Webhooks"] + } + }, + "/v2/event-types/{eventTypeId}/webhooks/{webhookId}": { + "patch": { + "operationId": "EventTypeWebhooksController_updateEventTypeWebhook", + "summary": "Update a webhook", + "parameters": [ + { + "name": "webhookId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateWebhookInputDto" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EventTypeWebhookOutputResponseDto" + } + } + } + } + }, + "tags": ["Event Types / Webhooks"] + }, + "get": { + "operationId": "EventTypeWebhooksController_getEventTypeWebhook", + "summary": "Get a webhook", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EventTypeWebhookOutputResponseDto" + } + } + } + } + }, + "tags": ["Event Types / Webhooks"] + }, + "delete": { + "operationId": "EventTypeWebhooksController_deleteEventTypeWebhook", + "summary": "Delete a webhook", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EventTypeWebhookOutputResponseDto" + } + } + } + } + }, + "tags": ["Event Types / Webhooks"] + } + }, + "/health": { + "get": { + "operationId": "AppController_getHealth", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + } + } + }, + "tags": ["Health - development only"] + } + }, + "/v2/me": { + "get": { + "operationId": "MeController_getMe", + "summary": "Get my profile", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetMeOutput" + } + } + } + } + }, + "tags": ["Me"] + }, + "patch": { + "operationId": "MeController_updateMe", + "summary": "Update my profile", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateManagedUserInput" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateMeOutput" + } + } + } + } + }, + "tags": ["Me"] + } + }, + "/v2/oauth-clients": { + "post": { + "operationId": "OAuthClientsController_createOAuthClient", + "summary": "", + "description": "⚠️ First, this endpoint requires `Cookie: next-auth.session-token=eyJhbGciOiJ` header. Log into Cal web app using owner of organization that was created after visiting `/settings/organizations/new`, refresh swagger docs, and the cookie will be added to requests automatically to pass the NextAuthGuard.\nSecond, make sure that the logged in user has organizationId set to pass the OrganizationRolesGuard guard.", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateOAuthClientInput" + } + } + } + }, + "responses": { + "201": { + "description": "Create an OAuth client", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateOAuthClientResponseDto" + } + } + } + } + }, + "tags": ["OAuth - development only"] + }, + "get": { + "operationId": "OAuthClientsController_getOAuthClients", + "summary": "", + "description": "⚠️ First, this endpoint requires `Cookie: next-auth.session-token=eyJhbGciOiJ` header. Log into Cal web app using owner of organization that was created after visiting `/settings/organizations/new`, refresh swagger docs, and the cookie will be added to requests automatically to pass the NextAuthGuard.\nSecond, make sure that the logged in user has organizationId set to pass the OrganizationRolesGuard guard.", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetOAuthClientsResponseDto" + } + } + } + } + }, + "tags": ["OAuth - development only"] + } + }, + "/v2/oauth-clients/{clientId}": { + "get": { + "operationId": "OAuthClientsController_getOAuthClientById", + "summary": "", + "description": "⚠️ First, this endpoint requires `Cookie: next-auth.session-token=eyJhbGciOiJ` header. Log into Cal web app using owner of organization that was created after visiting `/settings/organizations/new`, refresh swagger docs, and the cookie will be added to requests automatically to pass the NextAuthGuard.\nSecond, make sure that the logged in user has organizationId set to pass the OrganizationRolesGuard guard.", + "parameters": [ + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetOAuthClientResponseDto" + } + } + } + } + }, + "tags": ["OAuth - development only"] + }, + "patch": { + "operationId": "OAuthClientsController_updateOAuthClient", + "summary": "", + "description": "⚠️ First, this endpoint requires `Cookie: next-auth.session-token=eyJhbGciOiJ` header. Log into Cal web app using owner of organization that was created after visiting `/settings/organizations/new`, refresh swagger docs, and the cookie will be added to requests automatically to pass the NextAuthGuard.\nSecond, make sure that the logged in user has organizationId set to pass the OrganizationRolesGuard guard.", + "parameters": [ + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOAuthClientInput" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetOAuthClientResponseDto" + } + } + } + } + }, + "tags": ["OAuth - development only"] + }, + "delete": { + "operationId": "OAuthClientsController_deleteOAuthClient", + "summary": "", + "description": "⚠️ First, this endpoint requires `Cookie: next-auth.session-token=eyJhbGciOiJ` header. Log into Cal web app using owner of organization that was created after visiting `/settings/organizations/new`, refresh swagger docs, and the cookie will be added to requests automatically to pass the NextAuthGuard.\nSecond, make sure that the logged in user has organizationId set to pass the OrganizationRolesGuard guard.", + "parameters": [ + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetOAuthClientResponseDto" + } + } + } + } + }, + "tags": ["OAuth - development only"] + } + }, + "/v2/oauth-clients/{clientId}/managed-users": { + "get": { + "operationId": "OAuthClientsController_getOAuthClientManagedUsersById", + "summary": "", + "description": "⚠️ First, this endpoint requires `Cookie: next-auth.session-token=eyJhbGciOiJ` header. Log into Cal web app using owner of organization that was created after visiting `/settings/organizations/new`, refresh swagger docs, and the cookie will be added to requests automatically to pass the NextAuthGuard.\nSecond, make sure that the logged in user has organizationId set to pass the OrganizationRolesGuard guard.", + "parameters": [ + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "required": false, + "in": "query", + "description": "The number of items to return", + "example": 10, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetManagedUsersOutput" + } + } + } + } + }, + "tags": ["OAuth - development only"] + } + }, + "/v2/oauth/{clientId}/authorize": { + "post": { + "operationId": "OAuthFlowController_authorize", + "summary": "Authorize an OAuth client", + "description": "Redirects the user to the specified 'redirect_uri' with an authorization code in query parameter if the client is authorized successfully. The code is then exchanged for access and refresh tokens via the `/exchange` endpoint.", + "parameters": [ + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OAuthAuthorizeInput" + } + } + } + }, + "responses": { + "200": { + "description": "The user is redirected to the 'redirect_uri' with an authorization code in query parameter e.g. `redirectUri?code=secretcode.`" + }, + "400": { + "description": "Bad request if the OAuth client is not found, if the redirect URI is invalid, or if the user has already authorized the client." + } + }, + "tags": ["OAuth - development only"] + } + }, + "/v2/oauth/{clientId}/exchange": { + "post": { + "operationId": "OAuthFlowController_exchange", + "summary": "Exchange authorization code for access tokens", + "description": "Exchanges the authorization code received from the `/authorize` endpoint for access and refresh tokens. The authorization code should be provided in the 'Authorization' header prefixed with 'Bearer '.", + "parameters": [ + { + "name": "Authorization", + "required": true, + "in": "header", + "schema": { + "type": "string" + } + }, + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExchangeAuthorizationCodeInput" + } + } + } + }, + "responses": { + "200": { + "description": "Successfully exchanged authorization code for access and refresh tokens.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KeysResponseDto" + } + } + } + }, + "400": { + "description": "Bad request if the authorization code is missing, invalid, or if the client ID and secret do not match." + } + }, + "tags": ["OAuth - development only"] + } + }, + "/v2/oauth/{clientId}/refresh": { + "post": { + "operationId": "OAuthFlowController_refreshAccessToken", + "parameters": [ + { + "name": "clientId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + }, + { + "name": "x-cal-secret-key", + "required": true, + "in": "header", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RefreshTokenInput" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KeysResponseDto" + } + } + } + } + }, + "tags": ["OAuth - development only"] + } + }, + "/v2/schedules": { + "post": { + "operationId": "SchedulesController_2024_06_11_createSchedule", + "summary": "Create a schedule", + "description": "\n Create a schedule for the authenticated user.\n\n The point of creating schedules is for event types to be available at specific times.\n\n The first goal of schedules is to have a default schedule. If you are platform customer and created managed users, then it is important to note that each managed user should have a default schedule.\n 1. If you passed `timeZone` when creating managed user, then the default schedule from Monday to Friday from 9AM to 5PM will be created with that timezone. The managed user can then change the default schedule via the `AvailabilitySettings` atom.\n 2. If you did not, then we assume you want the user to have this specific schedule right away. You should create a default schedule by specifying\n `\"isDefault\": true` in the request body. Until the user has a default schedule the user can't be booked nor manage their schedule via the AvailabilitySettings atom.\n\n The second goal of schedules is to create another schedule that event types can point to. This is useful for when an event is booked because availability is not checked against the default schedule but instead against that specific schedule.\n After creating a non-default schedule, you can update an event type to point to that schedule via the PATCH `event-types/{eventTypeId}` endpoint.\n\n When specifying start time and end time for each day use the 24 hour format e.g. 08:00, 15:00 etc.\n ", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "value must be `Bearer ` where `` either managed user access token or api key prefixed with cal_", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-06-11`", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateScheduleInput_2024_06_11" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateScheduleOutput_2024_06_11" + } + } + } + } + }, + "tags": ["Schedules"] + }, + "get": { + "operationId": "SchedulesController_2024_06_11_getSchedules", + "summary": "Get all schedules", + "description": "Get all schedules of the authenticated user.", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "value must be `Bearer ` where `` either managed user access token or api key prefixed with cal_", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-06-11`", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetSchedulesOutput_2024_06_11" + } + } + } + } + }, + "tags": ["Schedules"] + } + }, + "/v2/schedules/default": { + "get": { + "operationId": "SchedulesController_2024_06_11_getDefaultSchedule", + "summary": "Get default schedule", + "description": "Get the default schedule of the authenticated user.", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "value must be `Bearer ` where `` either managed user access token or api key prefixed with cal_", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-06-11`", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetDefaultScheduleOutput_2024_06_11" + } + } + } + } + }, + "tags": ["Schedules"] + } + }, + "/v2/schedules/{scheduleId}": { + "get": { + "operationId": "SchedulesController_2024_06_11_getSchedule", + "summary": "Get a schedule", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "value must be `Bearer ` where `` either managed user access token or api key prefixed with cal_", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-06-11`", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "scheduleId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetScheduleOutput_2024_06_11" + } + } + } + } + }, + "tags": ["Schedules"] + }, + "patch": { + "operationId": "SchedulesController_2024_06_11_updateSchedule", + "summary": "Update a schedule", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "value must be `Bearer ` where `` either managed user access token or api key prefixed with cal_", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-06-11`", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "scheduleId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateScheduleInput_2024_06_11" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateScheduleOutput_2024_06_11" + } + } + } + } + }, + "tags": ["Schedules"] + }, + "delete": { + "operationId": "SchedulesController_2024_06_11_deleteSchedule", + "summary": "Delete a schedule", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "value must be `Bearer ` where `` either managed user access token or api key prefixed with cal_", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "cal-api-version", + "in": "header", + "description": "Must be set to `2024-06-11`", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "scheduleId", + "required": true, + "in": "path", + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteScheduleOutput_2024_06_11" + } + } + } + } + }, + "tags": ["Schedules"] + } + }, + "/v2/selected-calendars": { + "post": { + "operationId": "SelectedCalendarsController_addSelectedCalendar", + "summary": "Add a selected calendar", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SelectedCalendarsInputDto" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SelectedCalendarOutputResponseDto" + } + } + } + } + }, + "tags": ["Selected Calendars"] + }, + "delete": { + "operationId": "SelectedCalendarsController_removeSelectedCalendar", + "summary": "Delete a selected calendar", + "parameters": [ + { + "name": "integration", + "required": true, + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "externalId", + "required": true, + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "credentialId", + "required": true, + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SelectedCalendarOutputResponseDto" + } + } + } + } + }, + "tags": ["Selected Calendars"] + } + }, + "/v2/slots/reserve": { + "post": { + "operationId": "SlotsController_reserveSlot", + "summary": "Reserve a slot", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReserveSlotInput" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + } + }, + "tags": ["Slots"] + } + }, + "/v2/slots/selected-slot": { + "delete": { + "operationId": "SlotsController_deleteSelectedSlot", + "summary": "Delete a selected slot", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + } + }, + "tags": ["Slots"] + } + }, + "/v2/slots/available": { + "get": { + "operationId": "SlotsController_getAvailableSlots", + "summary": "Get available slots", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + } + }, + "tags": ["Slots"] + } + }, + "/v2/stripe/connect": { + "get": { + "operationId": "StripeController_redirect", + "parameters": [ + { + "name": "Authorization", + "required": true, + "in": "header", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StripConnectOutputResponseDto" + } + } + } + } + }, + "tags": ["Stripe"] + } + }, + "/v2/stripe/save": { + "get": { + "operationId": "StripeController_save", + "parameters": [ + { + "name": "state", + "required": true, + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "code", + "required": true, + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StripCredentialsSaveOutputResponseDto" + } + } + } + } + }, + "tags": ["Stripe"] + } + }, + "/v2/stripe/check": { + "get": { + "operationId": "StripeController_check", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StripCredentialsCheckOutputResponseDto" + } + } + } + } + }, + "tags": ["Stripe"] + } + }, + "/v2/timezones": { + "get": { + "operationId": "TimezonesController_getTimeZones", + "summary": "Get all timezones", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object" + } + } + } + } + }, + "tags": ["Timezones"] + } + }, + "/v2/webhooks": { + "post": { + "operationId": "WebhooksController_createWebhook", + "summary": "Create a webhook", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateWebhookInputDto" + } + } + } + }, + "responses": { + "201": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserWebhookOutputResponseDto" + } + } + } + } + }, + "tags": ["Webhooks"] + }, + "get": { + "operationId": "WebhooksController_getWebhooks", + "summary": "Get all webooks (paginated)", + "parameters": [ + { + "name": "take", + "required": false, + "in": "query", + "description": "The number of items to return", + "example": 10, + "schema": { + "type": "number" + } + }, + { + "name": "skip", + "required": false, + "in": "query", + "description": "The number of items to skip", + "example": 0, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserWebhooksOutputResponseDto" + } + } + } + } + }, + "tags": ["Webhooks"] + } + }, + "/v2/webhooks/{webhookId}": { + "patch": { + "operationId": "WebhooksController_updateWebhook", + "summary": "Update a webhook", + "parameters": [ + { + "name": "webhookId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateWebhookInputDto" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserWebhookOutputResponseDto" + } + } + } + } + }, + "tags": ["Webhooks"] + }, + "get": { + "operationId": "WebhooksController_getWebhook", + "summary": "Get a webhook", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserWebhookOutputResponseDto" + } + } + } + } + }, + "tags": ["Webhooks"] + }, + "delete": { + "operationId": "WebhooksController_deleteWebhook", + "summary": "Delete a webhook", + "parameters": [ + { + "name": "webhookId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserWebhookOutputResponseDto" + } + } + } + } + }, + "tags": ["Webhooks"] + } + } + }, + "info": { + "title": "Cal.com API v2", + "description": "", + "version": "1.0.0", + "contact": {} + }, + "tags": [], + "servers": [], + "components": { + "schemas": { + "ManagedUserOutput": { + "type": "object", + "properties": { + "id": { + "type": "number", + "example": 1 + }, + "email": { + "type": "string", + "example": "alice+cluo37fwd0001khkzqqynkpj3@example.com" + }, + "username": { + "type": "string", + "nullable": true, + "example": "alice" + }, + "name": { + "type": "string", + "nullable": true, + "example": "alice" + }, + "timeZone": { + "type": "string", + "example": "America/New_York" + }, + "weekStart": { + "type": "string", + "example": "Sunday" + }, + "createdDate": { + "type": "string", + "example": "2024-04-01T00:00:00.000Z" + }, + "timeFormat": { + "type": "number", + "nullable": true, + "example": 12 + }, + "defaultScheduleId": { + "type": "number", + "nullable": true, + "example": null + }, + "locale": { + "enum": [ + "ar", + "ca", + "de", + "es", + "eu", + "he", + "id", + "ja", + "lv", + "pl", + "ro", + "sr", + "th", + "vi", + "az", + "cs", + "el", + "es-419", + "fi", + "hr", + "it", + "km", + "nl", + "pt", + "ru", + "sv", + "tr", + "zh-CN", + "bg", + "da", + "en", + "et", + "fr", + "hu", + "iw", + "ko", + "no", + "pt-BR", + "sk", + "ta", + "uk", + "zh-TW" + ], + "type": "string", + "example": "en" + } + }, + "required": [ + "id", + "email", + "username", + "name", + "timeZone", + "weekStart", + "createdDate", + "timeFormat", + "defaultScheduleId" + ] + }, + "GetManagedUsersOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ManagedUserOutput" + } + } + }, + "required": ["status", "data"] + }, + "CreateManagedUserInput": { + "type": "object", + "properties": { + "email": { + "type": "string", + "example": "alice@example.com" + }, + "name": { + "type": "string", + "example": "Alice Smith", + "description": "Managed user's name is used in emails" + }, + "timeFormat": { + "type": "number", + "enum": [12, 24], + "example": 12, + "description": "Must be a number 12 or 24" + }, + "weekStart": { + "type": "string", + "example": "Monday", + "enum": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"] + }, + "timeZone": { + "type": "string", + "example": "America/New_York", + "description": "Timezone is used to create user's default schedule from Monday to Friday from 9AM to 5PM. If it is not passed then user does not have\n a default schedule and it must be created manually via the /schedules endpoint. Until the schedule is created, the user can't access availability atom to set his / her availability nor booked." + }, + "locale": { + "enum": [ + "ar", + "ca", + "de", + "es", + "eu", + "he", + "id", + "ja", + "lv", + "pl", + "ro", + "sr", + "th", + "vi", + "az", + "cs", + "el", + "es-419", + "fi", + "hr", + "it", + "km", + "nl", + "pt", + "ru", + "sv", + "tr", + "zh-CN", + "bg", + "da", + "en", + "et", + "fr", + "hu", + "iw", + "ko", + "no", + "pt-BR", + "sk", + "ta", + "uk", + "zh-TW" + ], + "type": "string", + "example": "en" + } + }, + "required": ["email", "name"] + }, + "CreateManagedUserData": { + "type": "object", + "properties": { + "user": { + "$ref": "#/components/schemas/ManagedUserOutput" + }, + "accessToken": { + "type": "string" + }, + "refreshToken": { + "type": "string" + }, + "accessTokenExpiresAt": { + "type": "number" + } + }, + "required": ["user", "accessToken", "refreshToken", "accessTokenExpiresAt"] + }, + "CreateManagedUserOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/CreateManagedUserData" + } + }, + "required": ["status", "data"] + }, + "GetManagedUserOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/ManagedUserOutput" + } + }, + "required": ["status", "data"] + }, + "UpdateManagedUserInput": { + "type": "object", + "properties": { + "timeFormat": { + "type": "number", + "enum": [12, 24], + "example": 12, + "description": "Must be 12 or 24" + }, + "weekStart": { + "type": "string", + "enum": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], + "example": "Monday" + }, + "locale": { + "enum": [ + "ar", + "ca", + "de", + "es", + "eu", + "he", + "id", + "ja", + "lv", + "pl", + "ro", + "sr", + "th", + "vi", + "az", + "cs", + "el", + "es-419", + "fi", + "hr", + "it", + "km", + "nl", + "pt", + "ru", + "sv", + "tr", + "zh-CN", + "bg", + "da", + "en", + "et", + "fr", + "hu", + "iw", + "ko", + "no", + "pt-BR", + "sk", + "ta", + "uk", + "zh-TW" + ], + "type": "string", + "example": "en" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + }, + "defaultScheduleId": { + "type": "number" + }, + "timeZone": { + "type": "string" + } + } + }, + "KeysDto": { + "type": "object", + "properties": { + "accessToken": { + "type": "string", + "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9" + }, + "refreshToken": { + "type": "string", + "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9" + }, + "accessTokenExpiresAt": { + "type": "number" + } + }, + "required": ["accessToken", "refreshToken", "accessTokenExpiresAt"] + }, + "KeysResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/KeysDto" + } + }, + "required": ["status", "data"] + }, + "CreateOAuthClientInput": { + "type": "object", + "properties": {} + }, + "DataDto": { + "type": "object", + "properties": { + "clientId": { + "type": "string", + "example": "clsx38nbl0001vkhlwin9fmt0" + }, + "clientSecret": { + "type": "string", + "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoib2F1dGgtY2xpZW50Iiwi" + } + }, + "required": ["clientId", "clientSecret"] + }, + "CreateOAuthClientResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": ["success", "error"], + "example": "success" + }, + "data": { + "example": { + "clientId": "clsx38nbl0001vkhlwin9fmt0", + "clientSecret": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoib2F1dGgtY2xpZW50Iiwi" + }, + "allOf": [ + { + "$ref": "#/components/schemas/DataDto" + } + ] + } + }, + "required": ["status", "data"] + }, + "PlatformOAuthClientDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "clsx38nbl0001vkhlwin9fmt0" + }, + "name": { + "type": "string", + "example": "MyClient" + }, + "secret": { + "type": "string", + "example": "secretValue" + }, + "permissions": { + "type": "number", + "example": 3 + }, + "logo": { + "type": "string", + "nullable": true, + "example": "https://example.com/logo.png" + }, + "redirectUris": { + "example": ["https://example.com/callback"], + "type": "array", + "items": { + "type": "string" + } + }, + "organizationId": { + "type": "number", + "example": 1 + }, + "createdAt": { + "format": "date-time", + "type": "string", + "example": "2024-03-23T08:33:21.851Z" + } + }, + "required": ["id", "name", "secret", "permissions", "redirectUris", "organizationId", "createdAt"] + }, + "GetOAuthClientsResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PlatformOAuthClientDto" + } + } + }, + "required": ["status", "data"] + }, + "GetOAuthClientResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/PlatformOAuthClientDto" + } + }, + "required": ["status", "data"] + }, + "UpdateOAuthClientInput": { + "type": "object", + "properties": { + "logo": { + "type": "string" + }, + "name": { + "type": "string" + }, + "redirectUris": { + "default": [], + "type": "array", + "items": { + "type": "string" + } + }, + "bookingRedirectUri": { + "type": "string" + }, + "bookingCancelRedirectUri": { + "type": "string" + }, + "bookingRescheduleRedirectUri": { + "type": "string" + }, + "areEmailsEnabled": { + "type": "boolean" + } + } + }, + "OAuthAuthorizeInput": { + "type": "object", + "properties": { + "redirectUri": { + "type": "string" + } + }, + "required": ["redirectUri"] + }, + "ExchangeAuthorizationCodeInput": { + "type": "object", + "properties": { + "clientSecret": { + "type": "string" + } + }, + "required": ["clientSecret"] + }, + "RefreshTokenInput": { + "type": "object", + "properties": { + "refreshToken": { + "type": "string" + } + }, + "required": ["refreshToken"] + }, + "AddressLocation_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "address", + "description": "only allowed value for type is `address`" + }, + "address": { + "type": "string", + "example": "123 Example St, City, Country" + }, + "public": { + "type": "boolean" + } + }, + "required": ["type", "address", "public"] + }, + "LinkLocation_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "link", + "description": "only allowed value for type is `link`" + }, + "link": { + "type": "string", + "example": "https://customvideo.com/join/123456" + }, + "public": { + "type": "boolean" + } + }, + "required": ["type", "link", "public"] + }, + "IntegrationLocation_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "integration", + "description": "only allowed value for type is `integration`" + }, + "integration": { + "type": "string", + "example": "cal-video", + "enum": ["cal-video"] + } + }, + "required": ["type", "integration"] + }, + "PhoneLocation_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "phone", + "description": "only allowed value for type is `phone`" + }, + "phone": { + "type": "string", + "example": "+37120993151" + }, + "public": { + "type": "boolean" + } + }, + "required": ["type", "phone", "public"] + }, + "PhoneFieldInput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "phone", + "description": "only allowed value for type is `phone`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string" + }, + "required": { + "type": "boolean" + }, + "placeholder": { + "type": "string" + } + }, + "required": ["type", "slug", "label", "required", "placeholder"] + }, + "AddressFieldInput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "address", + "description": "only allowed value for type is `address`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Please enter your address" + }, + "required": { + "type": "boolean" + }, + "placeholder": { + "type": "string", + "example": "e.g., 1234 Main St" + } + }, + "required": ["type", "slug", "label", "required", "placeholder"] + }, + "TextFieldInput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "text", + "description": "only allowed value for type is `text`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Please enter your text" + }, + "required": { + "type": "boolean" + }, + "placeholder": { + "type": "string", + "example": "e.g., Enter text here" + } + }, + "required": ["type", "slug", "label", "required", "placeholder"] + }, + "NumberFieldInput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "number", + "description": "only allowed value for type is `number`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Please enter a number" + }, + "required": { + "type": "boolean" + }, + "placeholder": { + "type": "string", + "example": "e.g., 100" + } + }, + "required": ["type", "slug", "label", "required", "placeholder"] + }, + "TextAreaFieldInput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "textarea", + "description": "only allowed value for type is `textarea`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Please enter detailed information" + }, + "required": { + "type": "boolean" + }, + "placeholder": { + "type": "string", + "example": "e.g., Detailed description here..." + } + }, + "required": ["type", "slug", "label", "required", "placeholder"] + }, + "SelectFieldInput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "select", + "description": "only allowed value for type is `select`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Please select an option" + }, + "required": { + "type": "boolean" + }, + "placeholder": { + "type": "string", + "example": "Select..." + }, + "options": { + "example": ["Option 1", "Option 2"], + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": ["type", "slug", "label", "required", "placeholder", "options"] + }, + "MultiSelectFieldInput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "multiselect", + "description": "only allowed value for type is `multiselect`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Please select multiple options" + }, + "required": { + "type": "boolean" + }, + "options": { + "example": ["Option 1", "Option 2"], + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": ["type", "slug", "label", "required", "options"] + }, + "MultiEmailFieldInput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "multiemail", + "description": "only allowed value for type is `multiemail`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Please enter multiple emails" + }, + "required": { + "type": "boolean" + }, + "placeholder": { + "type": "string", + "example": "e.g., example@example.com" + } + }, + "required": ["type", "slug", "label", "required", "placeholder"] + }, + "CheckboxGroupFieldInput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "checkbox", + "description": "only allowed value for type is `checkbox`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Select all that apply" + }, + "required": { + "type": "boolean" + }, + "options": { + "example": ["Checkbox 1", "Checkbox 2"], + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": ["type", "slug", "label", "required", "options"] + }, + "RadioGroupFieldInput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "radio", + "description": "only allowed value for type is `radio`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Select one option" + }, + "required": { + "type": "boolean" + }, + "options": { + "example": ["Radio 1", "Radio 2"], + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": ["type", "slug", "label", "required", "options"] + }, + "BooleanFieldInput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "boolean", + "description": "only allowed value for type is `boolean`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Agree to terms?" + }, + "required": { + "type": "boolean" + } + }, + "required": ["type", "slug", "label", "required"] + }, + "BusinessDaysWindow_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["businessDays", "calendarDays", "range"], + "description": "Whether the window should be business days, calendar days or a range of dates" + }, + "value": { + "type": "number", + "example": 5, + "description": "How many business day into the future can this event be booked" + }, + "rolling": { + "type": "boolean", + "example": true, + "description": "If true, the window will be rolling aka from the moment that someone is trying to book this event. Otherwise it will be specified amount of days from the current date." + } + }, + "required": ["type", "value", "rolling"] + }, + "CalendarDaysWindow_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["businessDays", "calendarDays", "range"], + "description": "Whether the window should be business days, calendar days or a range of dates" + }, + "value": { + "type": "number", + "example": 5, + "description": "How many calendar days into the future can this event be booked" + }, + "rolling": { + "type": "boolean", + "example": true, + "description": "If true, the window will be rolling aka from the moment that someone is trying to book this event. Otherwise it will be specified amount of days from the current date." + } + }, + "required": ["type", "value", "rolling"] + }, + "RangeWindow_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["businessDays", "calendarDays", "range"], + "description": "Whether the window should be business days, calendar days or a range of dates" + }, + "value": { + "example": ["2030-09-05", "2030-09-09"], + "description": "Date range for when this event can be booked.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": ["type", "value"] + }, + "CreateEventTypeInput_2024_06_14": { + "type": "object", + "properties": { + "lengthInMinutes": { + "type": "number", + "example": 60 + }, + "title": { + "type": "string", + "example": "Learn the secrets of masterchief!" + }, + "slug": { + "type": "string", + "example": "learn-the-secrets-of-masterchief" + }, + "description": { + "type": "string", + "example": "Discover the culinary wonders of the Argentina by making the best flan ever!" + }, + "locations": { + "type": "array", + "description": "Locations where the event will take place. If not provided, cal video link will be used as the location.", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AddressLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/LinkLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/IntegrationLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/PhoneLocation_2024_06_14" + } + ] + } + }, + "bookingFields": { + "type": "array", + "description": "Custom fields that can be added to the booking form when the event is booked by someone. By default booking form has name and email field.", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/PhoneFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/AddressFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/TextFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/NumberFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/TextAreaFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/SelectFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/MultiSelectFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/MultiEmailFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/CheckboxGroupFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/RadioGroupFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/BooleanFieldInput_2024_06_14" + } + ] + } + }, + "disableGuests": { + "type": "boolean", + "description": "If true, person booking this event't cant add guests via their emails." + }, + "slotInterval": { + "type": "number", + "description": "Number representing length of each slot when event is booked. By default it equal length of the event type.\n If event length is 60 minutes then we would have slots 9AM, 10AM, 11AM etc. but if it was changed to 30 minutes then\n we would have slots 9AM, 9:30AM, 10AM, 10:30AM etc. as the available times to book the 60 minute event." + }, + "minimumBookingNotice": { + "type": "number", + "description": "Minimum number of minutes before the event that a booking can be made." + }, + "beforeEventBuffer": { + "type": "number", + "description": "Time spaces that can be pre-pended before an event to give more time before it." + }, + "afterEventBuffer": { + "type": "number", + "description": "Time spaces that can be appended after an event to give more time after it." + }, + "scheduleId": { + "type": "number", + "description": "If you want that this event has different schedule than user's default one you can specify it here." + }, + "bookingLimitsCount": { + "type": "object", + "description": "Limit how many times this event can be booked" + }, + "onlyShowFirstAvailableSlot": { + "type": "boolean", + "description": "This will limit your availability for this event type to one slot per day, scheduled at the earliest available time." + }, + "bookingLimitsDuration": { + "type": "object", + "description": "Limit total amount of time that this event can be booked" + }, + "bookingWindow": { + "type": "array", + "description": "Limit how far in the future this event can be booked", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BusinessDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/CalendarDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/RangeWindow_2024_06_14" + } + ] + } + }, + "offsetStart": { + "type": "number", + "description": "Offset timeslots shown to bookers by a specified number of minutes" + }, + "customName": { + "type": "string", + "description": "Customizable event name with valid variables: \n {Event type title}, {Organiser}, {Scheduler}, {Location}, {Organiser first name}, \n {Scheduler first name}, {Scheduler last name}, {Event duration}, {LOCATION}, \n {HOST/ATTENDEE}, {HOST}, {ATTENDEE}, {USER}", + "example": "{Event type title} between {Organiser} and {Scheduler}" + } + }, + "required": [ + "lengthInMinutes", + "title", + "slug", + "description", + "locations", + "bookingFields", + "disableGuests", + "slotInterval", + "minimumBookingNotice", + "beforeEventBuffer", + "afterEventBuffer", + "scheduleId", + "bookingLimitsCount", + "onlyShowFirstAvailableSlot", + "bookingLimitsDuration", + "bookingWindow", + "offsetStart", + "customName" + ] + }, + "EmailDefaultFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "isDefault": { + "type": "object", + "default": true, + "description": "This property is always true because it's a default field", + "example": true + }, + "slug": { + "type": "string", + "default": "email" + }, + "type": { + "type": "string", + "default": "email" + }, + "required": { + "type": "boolean" + } + }, + "required": ["isDefault", "slug", "type", "required"] + }, + "NameDefaultFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "isDefault": { + "type": "object", + "default": true, + "description": "This property is always true because it's a default field", + "example": true + }, + "slug": { + "type": "string", + "default": "name" + }, + "type": { + "type": "string", + "default": "name" + }, + "required": { + "type": "boolean" + } + }, + "required": ["isDefault", "slug", "type", "required"] + }, + "LocationDefaultFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "isDefault": { + "type": "object", + "default": true, + "description": "This property is always true because it's a default field", + "example": true + }, + "slug": { + "type": "string", + "default": "location" + }, + "type": { + "type": "string", + "default": "radioInput" + }, + "required": { + "type": "boolean" + } + }, + "required": ["isDefault", "slug", "type", "required"] + }, + "RescheduleReasonDefaultFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "isDefault": { + "type": "object", + "default": true, + "description": "This property is always true because it's a default field", + "example": true + }, + "slug": { + "type": "string", + "default": "rescheduleReason" + }, + "type": { + "type": "string", + "default": "textarea" + }, + "required": { + "type": "boolean" + } + }, + "required": ["isDefault", "slug", "type", "required"] + }, + "TitleDefaultFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "isDefault": { + "type": "object", + "default": true, + "description": "This property is always true because it's a default field", + "example": true + }, + "slug": { + "type": "string", + "default": "title" + }, + "type": { + "type": "string", + "default": "text" + }, + "required": { + "type": "boolean" + } + }, + "required": ["isDefault", "slug", "type", "required"] + }, + "NotesDefaultFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "isDefault": { + "type": "object", + "default": true, + "description": "This property is always true because it's a default field", + "example": true + }, + "slug": { + "type": "string", + "default": "notes" + }, + "type": { + "type": "string", + "default": "textarea" + }, + "required": { + "type": "boolean" + } + }, + "required": ["isDefault", "slug", "type", "required"] + }, + "GuestsDefaultFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "isDefault": { + "type": "object", + "default": true, + "description": "This property is always true because it's a default field", + "example": true + }, + "slug": { + "type": "string", + "default": "guests" + }, + "type": { + "type": "string", + "default": "multiemail" + }, + "required": { + "type": "boolean" + } + }, + "required": ["isDefault", "slug", "type", "required"] + }, + "AddressFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "phone", + "address", + "text", + "number", + "textarea", + "select", + "multiselect", + "multiemail", + "checkbox", + "radio", + "boolean" + ], + "example": "address", + "description": "only allowed value for type is `address`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Please enter your address" + }, + "required": { + "type": "boolean" + }, + "placeholder": { + "type": "string", + "example": "e.g., 1234 Main St" + }, + "isDefault": { + "type": "object", + "default": false, + "description": "This property is always false because it's not default field but custom field", + "example": false + } + }, + "required": ["type", "slug", "label", "required", "isDefault"] + }, + "BooleanFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "phone", + "address", + "text", + "number", + "textarea", + "select", + "multiselect", + "multiemail", + "checkbox", + "radio", + "boolean" + ], + "example": "boolean", + "description": "only allowed value for type is `boolean`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Agree to terms?" + }, + "required": { + "type": "boolean" + }, + "isDefault": { + "type": "object", + "default": false, + "description": "This property is always false because it's not default field but custom field", + "example": false + } + }, + "required": ["type", "slug", "label", "required", "isDefault"] + }, + "CheckboxGroupFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "phone", + "address", + "text", + "number", + "textarea", + "select", + "multiselect", + "multiemail", + "checkbox", + "radio", + "boolean" + ], + "example": "checkbox", + "description": "only allowed value for type is `checkbox`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Select all that apply" + }, + "required": { + "type": "boolean" + }, + "options": { + "example": ["Checkbox 1", "Checkbox 2"], + "type": "array", + "items": { + "type": "string" + } + }, + "isDefault": { + "type": "object", + "default": false, + "description": "This property is always false because it's not default field but custom field", + "example": false + } + }, + "required": ["type", "slug", "label", "required", "options", "isDefault"] + }, + "MultiEmailFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "phone", + "address", + "text", + "number", + "textarea", + "select", + "multiselect", + "multiemail", + "checkbox", + "radio", + "boolean" + ], + "example": "multiemail", + "description": "only allowed value for type is `multiemail`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Please enter multiple emails" + }, + "required": { + "type": "boolean" + }, + "placeholder": { + "type": "string", + "example": "e.g., example@example.com" + }, + "isDefault": { + "type": "object", + "default": false, + "description": "This property is always false because it's not default field but custom field", + "example": false + } + }, + "required": ["type", "slug", "label", "required", "isDefault"] + }, + "MultiSelectFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "phone", + "address", + "text", + "number", + "textarea", + "select", + "multiselect", + "multiemail", + "checkbox", + "radio", + "boolean" + ], + "example": "multiselect", + "description": "only allowed value for type is `multiselect`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Please select multiple options" + }, + "required": { + "type": "boolean" + }, + "options": { + "example": ["Option 1", "Option 2"], + "type": "array", + "items": { + "type": "string" + } + }, + "isDefault": { + "type": "object", + "default": false, + "description": "This property is always false because it's not default field but custom field", + "example": false + } + }, + "required": ["type", "slug", "label", "required", "options", "isDefault"] + }, + "NumberFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "phone", + "address", + "text", + "number", + "textarea", + "select", + "multiselect", + "multiemail", + "checkbox", + "radio", + "boolean" + ], + "example": "number", + "description": "only allowed value for type is `number`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Please enter a number" + }, + "required": { + "type": "boolean" + }, + "placeholder": { + "type": "string", + "example": "e.g., 100" + }, + "isDefault": { + "type": "object", + "default": false, + "description": "This property is always false because it's not default field but custom field", + "example": false + } + }, + "required": ["type", "slug", "label", "required", "isDefault"] + }, + "PhoneFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "phone", + "address", + "text", + "number", + "textarea", + "select", + "multiselect", + "multiemail", + "checkbox", + "radio", + "boolean" + ], + "example": "phone", + "description": "only allowed value for type is `phone`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string" + }, + "required": { + "type": "boolean" + }, + "placeholder": { + "type": "string" + }, + "isDefault": { + "type": "object", + "default": false, + "description": "This property is always false because it's not default field but custom field", + "example": false + } + }, + "required": ["type", "slug", "label", "required", "isDefault"] + }, + "RadioGroupFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "phone", + "address", + "text", + "number", + "textarea", + "select", + "multiselect", + "multiemail", + "checkbox", + "radio", + "boolean" + ], + "example": "radio", + "description": "only allowed value for type is `radio`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Select one option" + }, + "required": { + "type": "boolean" + }, + "options": { + "example": ["Radio 1", "Radio 2"], + "type": "array", + "items": { + "type": "string" + } + }, + "isDefault": { + "type": "object", + "default": false, + "description": "This property is always false because it's not default field but custom field", + "example": false + } + }, + "required": ["type", "slug", "label", "required", "options", "isDefault"] + }, + "SelectFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "phone", + "address", + "text", + "number", + "textarea", + "select", + "multiselect", + "multiemail", + "checkbox", + "radio", + "boolean" + ], + "example": "select", + "description": "only allowed value for type is `select`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Please select an option" + }, + "required": { + "type": "boolean" + }, + "placeholder": { + "type": "string", + "example": "Select..." + }, + "options": { + "example": ["Option 1", "Option 2"], + "type": "array", + "items": { + "type": "string" + } + }, + "isDefault": { + "type": "object", + "default": false, + "description": "This property is always false because it's not default field but custom field", + "example": false + } + }, + "required": ["type", "slug", "label", "required", "options", "isDefault"] + }, + "TextAreaFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "phone", + "address", + "text", + "number", + "textarea", + "select", + "multiselect", + "multiemail", + "checkbox", + "radio", + "boolean" + ], + "example": "textarea", + "description": "only allowed value for type is `textarea`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Please enter detailed information" + }, + "required": { + "type": "boolean" + }, + "placeholder": { + "type": "string", + "example": "e.g., Detailed description here..." + }, + "isDefault": { + "type": "object", + "default": false, + "description": "This property is always false because it's not default field but custom field", + "example": false + } + }, + "required": ["type", "slug", "label", "required", "isDefault"] + }, + "TextFieldOutput_2024_06_14": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "phone", + "address", + "text", + "number", + "textarea", + "select", + "multiselect", + "multiemail", + "checkbox", + "radio", + "boolean" + ], + "example": "text", + "description": "only allowed value for type is `text`" + }, + "slug": { + "type": "string", + "description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking", + "example": "some-slug" + }, + "label": { + "type": "string", + "example": "Please enter your text" + }, + "required": { + "type": "boolean" + }, + "placeholder": { + "type": "string", + "example": "e.g., Enter text here" + }, + "isDefault": { + "type": "object", + "default": false, + "description": "This property is always false because it's not default field but custom field", + "example": false + } + }, + "required": ["type", "slug", "label", "required", "isDefault"] + }, + "BaseBookingLimitsDuration_2024_06_14": { + "type": "object", + "properties": { + "day": { + "type": "number", + "minimum": 15, + "description": "The duration of bookings per day (must be a multiple of 15)", + "example": 60 + }, + "week": { + "type": "number", + "minimum": 15, + "description": "The duration of bookings per week (must be a multiple of 15)", + "example": 120 + }, + "month": { + "type": "number", + "minimum": 15, + "description": "The duration of bookings per month (must be a multiple of 15)", + "example": 180 + }, + "year": { + "type": "number", + "minimum": 15, + "description": "The duration of bookings per year (must be a multiple of 15)", + "example": 240 + }, + "disabled": { + "type": "boolean", + "default": false + } + } + }, + "BookerLayouts_2024_06_14": { + "type": "object", + "properties": {} + }, + "EventTypeColor_2024_06_14": { + "type": "object", + "properties": { + "lightThemeHex": { + "type": "string", + "description": "Color used for event types in light theme", + "example": "#292929" + }, + "darkThemeHex": { + "type": "string", + "description": "Color used for event types in dark theme", + "example": "#fafafa" + } + }, + "required": ["lightThemeHex", "darkThemeHex"] + }, + "Seats_2024_06_14": { + "type": "object", + "properties": { + "seatsPerTimeSlot": { + "type": "number", + "description": "Number of seats available per time slot", + "example": 4 + }, + "showAttendeeInfo": { + "type": "boolean", + "description": "Show attendee information to other guests", + "example": true + }, + "showAvailabilityCount": { + "type": "boolean", + "description": "Display the count of available seats", + "example": true + } + }, + "required": ["seatsPerTimeSlot", "showAttendeeInfo", "showAvailabilityCount"] + }, + "DestinationCalendar_2024_06_14": { + "type": "object", + "properties": { + "integration": { + "type": "string", + "description": "The integration type of the destination calendar. Refer to the /api/v2/calendars endpoint to retrieve the integration type of your connected calendars." + }, + "externalId": { + "type": "string", + "description": "The external ID of the destination calendar. Refer to the /api/v2/calendars endpoint to retrieve the external IDs of your connected calendars." + } + }, + "required": ["integration", "externalId"] + }, + "EventTypeOutput_2024_06_14": { + "type": "object", + "properties": { + "id": { + "type": "number", + "example": 1 + }, + "lengthInMinutes": { + "type": "number", + "example": 60 + }, + "title": { + "type": "string", + "example": "Learn the secrets of masterchief!" + }, + "slug": { + "type": "string", + "example": "learn-the-secrets-of-masterchief" + }, + "description": { + "type": "string", + "example": "Discover the culinary wonders of Argentina by making the best flan ever!" + }, + "locations": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AddressLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/LinkLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/IntegrationLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/PhoneLocation_2024_06_14" + } + ] + } + }, + "bookingFields": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/NameDefaultFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/EmailDefaultFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/LocationDefaultFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/RescheduleReasonDefaultFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/TitleDefaultFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/NotesDefaultFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/GuestsDefaultFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/PhoneFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/AddressFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/TextFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/NumberFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/TextAreaFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/SelectFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/MultiSelectFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/MultiEmailFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/CheckboxGroupFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/RadioGroupFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/BooleanFieldOutput_2024_06_14" + } + ] + } + }, + "disableGuests": { + "type": "boolean" + }, + "slotInterval": { + "type": "number", + "example": 60 + }, + "minimumBookingNotice": { + "type": "number", + "example": 0 + }, + "beforeEventBuffer": { + "type": "number", + "example": 0 + }, + "afterEventBuffer": { + "type": "number", + "example": 0 + }, + "recurrence": { + "type": "object" + }, + "metadata": { + "type": "object" + }, + "price": { + "type": "number" + }, + "currency": { + "type": "string" + }, + "lockTimeZoneToggleOnBookingPage": { + "type": "boolean" + }, + "seatsPerTimeSlot": { + "type": "object" + }, + "forwardParamsSuccessRedirect": { + "type": "object" + }, + "successRedirectUrl": { + "type": "object" + }, + "isInstantEvent": { + "type": "boolean" + }, + "seatsShowAvailabilityCount": { + "type": "object" + }, + "scheduleId": { + "type": "object" + }, + "bookingLimitsCount": { + "type": "object" + }, + "onlyShowFirstAvailableSlot": { + "type": "boolean" + }, + "bookingLimitsDuration": { + "type": "object" + }, + "bookingWindow": { + "type": "array", + "description": "Limit how far in the future this event can be booked", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BusinessDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/CalendarDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/RangeWindow_2024_06_14" + } + ] + } + }, + "bookerLayouts": { + "$ref": "#/components/schemas/BookerLayouts_2024_06_14" + }, + "confirmationPolicy": { + "type": "object" + }, + "requiresBookerEmailVerification": { + "type": "boolean" + }, + "hideCalendarNotes": { + "type": "boolean" + }, + "color": { + "$ref": "#/components/schemas/EventTypeColor_2024_06_14" + }, + "seats": { + "$ref": "#/components/schemas/Seats_2024_06_14" + }, + "offsetStart": { + "type": "number" + }, + "customName": { + "type": "string" + }, + "destinationCalendar": { + "$ref": "#/components/schemas/DestinationCalendar_2024_06_14" + }, + "useDestinationCalendarEmail": { + "type": "boolean" + }, + "ownerId": { + "type": "number", + "example": 10 + }, + "users": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "lengthInMinutes", + "title", + "slug", + "description", + "locations", + "bookingFields", + "disableGuests", + "slotInterval", + "minimumBookingNotice", + "beforeEventBuffer", + "afterEventBuffer", + "recurrence", + "metadata", + "price", + "currency", + "lockTimeZoneToggleOnBookingPage", + "seatsPerTimeSlot", + "forwardParamsSuccessRedirect", + "successRedirectUrl", + "isInstantEvent", + "seatsShowAvailabilityCount", + "scheduleId", + "bookingLimitsCount", + "onlyShowFirstAvailableSlot", + "bookingLimitsDuration", + "bookingWindow", + "bookerLayouts", + "confirmationPolicy", + "requiresBookerEmailVerification", + "hideCalendarNotes", + "color", + "seats", + "offsetStart", + "customName", + "destinationCalendar", + "useDestinationCalendarEmail", + "ownerId", + "users" + ] + }, + "CreateEventTypeOutput_2024_06_14": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": ["success", "error"], + "example": "success" + }, + "data": { + "$ref": "#/components/schemas/EventTypeOutput_2024_06_14" + } + }, + "required": ["status", "data"] + }, + "GetEventTypeOutput_2024_06_14": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": ["success", "error"], + "example": "success" + }, + "data": { + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/EventTypeOutput_2024_06_14" + } + ] + } + }, + "required": ["status", "data"] + }, + "GetEventTypesOutput_2024_06_14": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": ["success", "error"], + "example": "success" + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EventTypeOutput_2024_06_14" + } + } + }, + "required": ["status", "data"] + }, + "UpdateEventTypeInput_2024_06_14": { + "type": "object", + "properties": { + "lengthInMinutes": { + "type": "number", + "example": 60 + }, + "title": { + "type": "string", + "example": "Learn the secrets of masterchief!" + }, + "slug": { + "type": "string", + "example": "learn-the-secrets-of-masterchief" + }, + "description": { + "type": "string", + "example": "Discover the culinary wonders of the Argentina by making the best flan ever!" + }, + "locations": { + "type": "array", + "description": "Locations where the event will take place. If not provided, cal video link will be used as the location.", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AddressLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/LinkLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/IntegrationLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/PhoneLocation_2024_06_14" + } + ] + } + }, + "bookingFields": { + "type": "array", + "description": "Custom fields that can be added to the booking form when the event is booked by someone. By default booking form has name and email field.", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/PhoneFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/AddressFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/TextFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/NumberFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/TextAreaFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/SelectFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/MultiSelectFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/MultiEmailFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/CheckboxGroupFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/RadioGroupFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/BooleanFieldInput_2024_06_14" + } + ] + } + }, + "disableGuests": { + "type": "boolean", + "description": "If true, person booking this event't cant add guests via their emails." + }, + "slotInterval": { + "type": "number", + "description": "Number representing length of each slot when event is booked. By default it equal length of the event type.\n If event length is 60 minutes then we would have slots 9AM, 10AM, 11AM etc. but if it was changed to 30 minutes then\n we would have slots 9AM, 9:30AM, 10AM, 10:30AM etc. as the available times to book the 60 minute event." + }, + "minimumBookingNotice": { + "type": "number", + "description": "Minimum number of minutes before the event that a booking can be made." + }, + "beforeEventBuffer": { + "type": "number", + "description": "Time spaces that can be pre-pended before an event to give more time before it." + }, + "afterEventBuffer": { + "type": "number", + "description": "Time spaces that can be appended after an event to give more time after it." + }, + "scheduleId": { + "type": "number", + "description": "If you want that this event has different schedule than user's default one you can specify it here." + }, + "bookingLimitsCount": { + "type": "object", + "description": "Limit how many times this event can be booked" + }, + "onlyShowFirstAvailableSlot": { + "type": "boolean", + "description": "This will limit your availability for this event type to one slot per day, scheduled at the earliest available time." + }, + "bookingLimitsDuration": { + "type": "object", + "description": "Limit total amount of time that this event can be booked" + }, + "bookingWindow": { + "type": "array", + "description": "Limit how far in the future this event can be booked", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BusinessDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/CalendarDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/RangeWindow_2024_06_14" + } + ] + } + }, + "offsetStart": { + "type": "number", + "description": "Offset timeslots shown to bookers by a specified number of minutes" + }, + "customName": { + "type": "string", + "description": "Customizable event name with valid variables: \n {Event type title}, {Organiser}, {Scheduler}, {Location}, {Organiser first name}, \n {Scheduler first name}, {Scheduler last name}, {Event duration}, {LOCATION}, \n {HOST/ATTENDEE}, {HOST}, {ATTENDEE}, {USER}", + "example": "{Event type title} between {Organiser} and {Scheduler}" + } + }, + "required": [ + "lengthInMinutes", + "title", + "slug", + "description", + "locations", + "bookingFields", + "disableGuests", + "slotInterval", + "minimumBookingNotice", + "beforeEventBuffer", + "afterEventBuffer", + "scheduleId", + "bookingLimitsCount", + "onlyShowFirstAvailableSlot", + "bookingLimitsDuration", + "bookingWindow", + "offsetStart", + "customName" + ] + }, + "UpdateEventTypeOutput_2024_06_14": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": ["success", "error"], + "example": "success" + }, + "data": { + "$ref": "#/components/schemas/EventTypeOutput_2024_06_14" + } + }, + "required": ["status", "data"] + }, + "DeleteData_2024_06_14": { + "type": "object", + "properties": { + "id": { + "type": "number", + "example": 1 + }, + "lengthInMinutes": { + "type": "number", + "example": 60 + }, + "title": { + "type": "string", + "example": "Learn the secrets of masterchief!" + }, + "slug": { + "type": "string" + } + }, + "required": ["id", "lengthInMinutes", "title", "slug"] + }, + "DeleteEventTypeOutput_2024_06_14": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": ["success", "error"], + "example": "success" + }, + "data": { + "$ref": "#/components/schemas/DeleteData_2024_06_14" + } + }, + "required": ["status", "data"] + }, + "SelectedCalendarsInputDto": { + "type": "object", + "properties": { + "integration": { + "type": "string" + }, + "externalId": { + "type": "string" + }, + "credentialId": { + "type": "number" + } + }, + "required": ["integration", "externalId", "credentialId"] + }, + "SelectedCalendarOutputDto": { + "type": "object", + "properties": { + "userId": { + "type": "number" + }, + "integration": { + "type": "string" + }, + "externalId": { + "type": "string" + }, + "credentialId": { + "type": "number", + "nullable": true + } + }, + "required": ["userId", "integration", "externalId", "credentialId"] + }, + "SelectedCalendarOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/SelectedCalendarOutputDto" + } + }, + "required": ["status", "data"] + }, + "OrgTeamOutputDto": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "parentId": { + "type": "number" + }, + "name": { + "type": "string", + "minLength": 1 + }, + "slug": { + "type": "string" + }, + "logoUrl": { + "type": "string" + }, + "calVideoLogo": { + "type": "string" + }, + "appLogo": { + "type": "string" + }, + "appIconLogo": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "hideBranding": { + "type": "boolean" + }, + "isOrganization": { + "type": "boolean" + }, + "isPrivate": { + "type": "boolean" + }, + "hideBookATeamMember": { + "type": "boolean", + "default": false + }, + "metadata": { + "type": "string" + }, + "theme": { + "type": "string" + }, + "brandColor": { + "type": "string" + }, + "darkBrandColor": { + "type": "string" + }, + "bannerUrl": { + "type": "string" + }, + "timeFormat": { + "type": "number" + }, + "timeZone": { + "type": "string", + "default": "Europe/London" + }, + "weekStart": { + "type": "string", + "default": "Sunday" + } + }, + "required": ["id", "name"] + }, + "OrgTeamsOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OrgTeamOutputDto" + } + } + }, + "required": ["status", "data"] + }, + "OrgMeTeamsOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OrgTeamOutputDto" + } + } + }, + "required": ["status", "data"] + }, + "OrgTeamOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/OrgTeamOutputDto" + } + }, + "required": ["status", "data"] + }, + "UpdateOrgTeamDto": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "slug": { + "type": "string" + }, + "logoUrl": { + "type": "string" + }, + "calVideoLogo": { + "type": "string" + }, + "appLogo": { + "type": "string" + }, + "appIconLogo": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "hideBranding": { + "type": "boolean", + "default": false + }, + "isPrivate": { + "type": "boolean" + }, + "hideBookATeamMember": { + "type": "boolean" + }, + "metadata": { + "type": "string" + }, + "theme": { + "type": "string" + }, + "brandColor": { + "type": "string" + }, + "darkBrandColor": { + "type": "string" + }, + "bannerUrl": { + "type": "string" + }, + "timeFormat": { + "type": "number" + }, + "timeZone": { + "type": "string", + "default": "Europe/London" + }, + "weekStart": { + "type": "string", + "default": "Sunday" + }, + "bookingLimits": { + "type": "string" + } + } + }, + "CreateOrgTeamDto": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "slug": { + "type": "string" + }, + "logoUrl": { + "type": "string" + }, + "calVideoLogo": { + "type": "string" + }, + "appLogo": { + "type": "string" + }, + "appIconLogo": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "hideBranding": { + "type": "boolean", + "default": false + }, + "isPrivate": { + "type": "boolean" + }, + "hideBookATeamMember": { + "type": "boolean" + }, + "metadata": { + "type": "string" + }, + "theme": { + "type": "string" + }, + "brandColor": { + "type": "string" + }, + "darkBrandColor": { + "type": "string" + }, + "bannerUrl": { + "type": "string" + }, + "timeFormat": { + "type": "number" + }, + "timeZone": { + "type": "string", + "default": "Europe/London" + }, + "weekStart": { + "type": "string", + "default": "Sunday" + }, + "autoAcceptCreator": { + "type": "boolean", + "default": true + } + }, + "required": ["name"] + }, + "ScheduleAvailabilityInput_2024_06_11": { + "type": "object", + "properties": { + "days": { + "type": "string", + "enum": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], + "example": ["Monday", "Tuesday"], + "description": "Array of days when schedule is active." + }, + "startTime": { + "type": "string", + "pattern": "TIME_FORMAT_HH_MM", + "example": "08:00", + "description": "startTime must be a valid time in format HH:MM e.g. 08:00" + }, + "endTime": { + "type": "string", + "pattern": "TIME_FORMAT_HH_MM", + "example": "15:00", + "description": "endTime must be a valid time in format HH:MM e.g. 15:00" + } + }, + "required": ["days", "startTime", "endTime"] + }, + "ScheduleOverrideInput_2024_06_11": { + "type": "object", + "properties": { + "date": { + "type": "string", + "example": "2024-05-20" + }, + "startTime": { + "type": "string", + "pattern": "TIME_FORMAT_HH_MM", + "example": "12:00", + "description": "startTime must be a valid time in format HH:MM e.g. 12:00" + }, + "endTime": { + "type": "string", + "pattern": "TIME_FORMAT_HH_MM", + "example": "13:00", + "description": "endTime must be a valid time in format HH:MM e.g. 13:00" + } + }, + "required": ["date", "startTime", "endTime"] + }, + "ScheduleOutput_2024_06_11": { + "type": "object", + "properties": { + "id": { + "type": "number", + "example": 254 + }, + "ownerId": { + "type": "number", + "example": 478 + }, + "name": { + "type": "string", + "example": "Catch up hours" + }, + "timeZone": { + "type": "string", + "example": "Europe/Rome" + }, + "availability": { + "example": [ + { + "days": ["Monday", "Tuesday"], + "startTime": "17:00", + "endTime": "19:00" + }, + { + "days": ["Wednesday", "Thursday"], + "startTime": "16:00", + "endTime": "20:00" + } + ], + "type": "array", + "items": { + "$ref": "#/components/schemas/ScheduleAvailabilityInput_2024_06_11" + } + }, + "isDefault": { + "type": "boolean", + "example": true + }, + "overrides": { + "example": [ + { + "date": "2024-05-20", + "startTime": "18:00", + "endTime": "21:00" + } + ], + "type": "array", + "items": { + "$ref": "#/components/schemas/ScheduleOverrideInput_2024_06_11" + } + } + }, + "required": ["id", "ownerId", "name", "timeZone", "availability", "isDefault", "overrides"] + }, + "GetSchedulesOutput_2024_06_11": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScheduleOutput_2024_06_11" + } + }, + "error": { + "type": "object" + } + }, + "required": ["status", "data"] + }, + "CreateScheduleInput_2024_06_11": { + "type": "object", + "properties": { + "name": { + "type": "string", + "example": "Catch up hours" + }, + "timeZone": { + "type": "string", + "example": "Europe/Rome", + "description": "Timezone is used to calculate available times when an event using the schedule is booked." + }, + "availability": { + "description": "Each object contains days and times when the user is available. If not passed, the default availability is Monday to Friday from 09:00 to 17:00.", + "example": [ + { + "days": ["Monday", "Tuesday"], + "startTime": "17:00", + "endTime": "19:00" + }, + { + "days": ["Wednesday", "Thursday"], + "startTime": "16:00", + "endTime": "20:00" + } + ], + "type": "array", + "items": { + "$ref": "#/components/schemas/ScheduleAvailabilityInput_2024_06_11" + } + }, + "isDefault": { + "type": "boolean", + "example": true, + "description": "Each user should have 1 default schedule. If you specified `timeZone` when creating managed user, then the default schedule will be created with that timezone.\n Default schedule means that if an event type is not tied to a specific schedule then the default schedule is used." + }, + "overrides": { + "description": "Need to change availability for a specific date? Add an override.", + "example": [ + { + "date": "2024-05-20", + "startTime": "18:00", + "endTime": "21:00" + } + ], + "type": "array", + "items": { + "$ref": "#/components/schemas/ScheduleOverrideInput_2024_06_11" + } + } + }, + "required": ["name", "timeZone", "isDefault"] + }, + "CreateScheduleOutput_2024_06_11": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/ScheduleOutput_2024_06_11" + } + }, + "required": ["status", "data"] + }, + "GetScheduleOutput_2024_06_11": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/ScheduleOutput_2024_06_11" + } + ] + }, + "error": { + "type": "object" + } + }, + "required": ["status", "data"] + }, + "UpdateScheduleInput_2024_06_11": { + "type": "object", + "properties": { + "name": { + "type": "string", + "example": "One-on-one coaching" + }, + "timeZone": { + "type": "string", + "example": "Europe/Rome" + }, + "availability": { + "example": [ + { + "days": ["Monday", "Tuesday"], + "startTime": "09:00", + "endTime": "10:00" + } + ], + "type": "array", + "items": { + "$ref": "#/components/schemas/ScheduleAvailabilityInput_2024_06_11" + } + }, + "isDefault": { + "type": "boolean", + "example": true + }, + "overrides": { + "example": [ + { + "date": "2024-05-20", + "startTime": "12:00", + "endTime": "14:00" + } + ], + "type": "array", + "items": { + "$ref": "#/components/schemas/ScheduleOverrideInput_2024_06_11" + } + } + } + }, + "UpdateScheduleOutput_2024_06_11": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/ScheduleOutput_2024_06_11" + }, + "error": { + "type": "object" + } + }, + "required": ["status", "data"] + }, + "DeleteScheduleOutput_2024_06_11": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + } + }, + "required": ["status"] + }, + "GetUserOutput": { + "type": "object", + "properties": { + "id": { + "type": "number", + "description": "The ID of the user", + "example": 1 + }, + "username": { + "type": "string", + "nullable": true, + "description": "The username of the user", + "example": "john_doe" + }, + "name": { + "type": "string", + "nullable": true, + "description": "The name of the user", + "example": "John Doe" + }, + "email": { + "type": "string", + "description": "The email of the user", + "example": "john@example.com" + }, + "emailVerified": { + "format": "date-time", + "type": "string", + "nullable": true, + "description": "The date when the email was verified", + "example": "2022-01-01T00:00:00Z" + }, + "bio": { + "type": "string", + "nullable": true, + "description": "The bio of the user", + "example": "I am a software developer" + }, + "avatarUrl": { + "type": "string", + "nullable": true, + "description": "The URL of the user's avatar", + "example": "https://example.com/avatar.jpg" + }, + "timeZone": { + "type": "string", + "description": "The time zone of the user", + "example": "America/New_York" + }, + "weekStart": { + "type": "string", + "description": "The week start day of the user", + "example": "Monday" + }, + "appTheme": { + "type": "string", + "nullable": true, + "description": "The app theme of the user", + "example": "light" + }, + "theme": { + "type": "string", + "nullable": true, + "description": "The theme of the user", + "example": "default" + }, + "defaultScheduleId": { + "type": "number", + "nullable": true, + "description": "The ID of the default schedule for the user", + "example": 1 + }, + "locale": { + "type": "string", + "nullable": true, + "description": "The locale of the user", + "example": "en-US" + }, + "timeFormat": { + "type": "number", + "nullable": true, + "description": "The time format of the user", + "example": 12 + }, + "hideBranding": { + "type": "boolean", + "description": "Whether to hide branding for the user", + "example": false + }, + "brandColor": { + "type": "string", + "nullable": true, + "description": "The brand color of the user", + "example": "#ffffff" + }, + "darkBrandColor": { + "type": "string", + "nullable": true, + "description": "The dark brand color of the user", + "example": "#000000" + }, + "allowDynamicBooking": { + "type": "boolean", + "nullable": true, + "description": "Whether dynamic booking is allowed for the user", + "example": true + }, + "createdDate": { + "format": "date-time", + "type": "string", + "description": "The date when the user was created", + "example": "2022-01-01T00:00:00Z" + }, + "verified": { + "type": "boolean", + "nullable": true, + "description": "Whether the user is verified", + "example": true + }, + "invitedTo": { + "type": "number", + "nullable": true, + "description": "The ID of the user who invited this user", + "example": 1 + } + }, + "required": ["id", "email", "timeZone", "weekStart", "hideBranding", "createdDate"] + }, + "GetOrganizationUsersOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GetUserOutput" + } + } + }, + "required": ["status", "data"] + }, + "CreateOrganizationUserInput": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "User email address", + "example": "user@example.com" + }, + "username": { + "type": "string", + "description": "Username", + "example": "user123" + }, + "weekday": { + "type": "string", + "description": "Preferred weekday", + "example": "Monday" + }, + "brandColor": { + "type": "string", + "description": "Brand color in HEX format", + "example": "#FFFFFF" + }, + "darkBrandColor": { + "type": "string", + "description": "Dark brand color in HEX format", + "example": "#000000" + }, + "hideBranding": { + "type": "boolean", + "description": "Hide branding", + "example": false + }, + "timeZone": { + "type": "string", + "description": "Time zone", + "example": "America/New_York" + }, + "theme": { + "type": "string", + "nullable": true, + "description": "Theme", + "example": "dark" + }, + "appTheme": { + "type": "string", + "nullable": true, + "description": "Application theme", + "example": "light" + }, + "timeFormat": { + "type": "number", + "description": "Time format", + "example": 24 + }, + "defaultScheduleId": { + "type": "number", + "minimum": 0, + "description": "Default schedule ID", + "example": 1 + }, + "locale": { + "type": "string", + "nullable": true, + "default": "en", + "description": "Locale", + "example": "en" + }, + "avatarUrl": { + "type": "string", + "description": "Avatar URL", + "example": "https://example.com/avatar.jpg" + }, + "organizationRole": { + "type": "object", + "default": "MEMBER" + }, + "autoAccept": { + "type": "object", + "default": true + } + }, + "required": ["email", "organizationRole", "autoAccept"] + }, + "GetOrganizationUserOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/GetUserOutput" + } + }, + "required": ["status", "data"] + }, + "UpdateOrganizationUserInput": { + "type": "object", + "properties": {} + }, + "OrgMembershipOutputDto": { + "type": "object", + "properties": { + "role": { + "type": "string", + "enum": ["MEMBER", "OWNER", "ADMIN"] + }, + "id": { + "type": "number" + }, + "userId": { + "type": "number" + }, + "teamId": { + "type": "number" + }, + "accepted": { + "type": "boolean" + }, + "disableImpersonation": { + "type": "boolean" + } + }, + "required": ["role", "id", "userId", "teamId", "accepted"] + }, + "GetAllOrgMemberships": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/OrgMembershipOutputDto" + } + }, + "required": ["status", "data"] + }, + "CreateOrgMembershipDto": { + "type": "object", + "properties": { + "role": { + "type": "string", + "default": "MEMBER", + "enum": ["MEMBER", "OWNER", "ADMIN"] + }, + "userId": { + "type": "number" + }, + "accepted": { + "type": "boolean", + "default": false + }, + "disableImpersonation": { + "type": "boolean", + "default": false + } + }, + "required": ["role", "userId"] + }, + "CreateOrgMembershipOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/OrgMembershipOutputDto" + } + }, + "required": ["status", "data"] + }, + "GetOrgMembership": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/OrgMembershipOutputDto" + } + }, + "required": ["status", "data"] + }, + "DeleteOrgMembership": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/OrgMembershipOutputDto" + } + }, + "required": ["status", "data"] + }, + "UpdateOrgMembershipDto": { + "type": "object", + "properties": { + "role": { + "type": "string", + "default": "MEMBER", + "enum": ["MEMBER", "OWNER", "ADMIN"] + }, + "accepted": { + "type": "boolean", + "default": false + }, + "disableImpersonation": { + "type": "boolean", + "default": false + } + } + }, + "UpdateOrgMembership": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/OrgMembershipOutputDto" + } + }, + "required": ["status", "data"] + }, + "CreateTeamEventTypeInput_2024_06_14": { + "type": "object", + "properties": { + "lengthInMinutes": { + "type": "number", + "example": 60 + }, + "title": { + "type": "string", + "example": "Learn the secrets of masterchief!" + }, + "slug": { + "type": "string", + "example": "learn-the-secrets-of-masterchief" + }, + "description": { + "type": "string", + "example": "Discover the culinary wonders of the Argentina by making the best flan ever!" + }, + "locations": { + "type": "array", + "description": "Locations where the event will take place. If not provided, cal video link will be used as the location.", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AddressLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/LinkLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/IntegrationLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/PhoneLocation_2024_06_14" + } + ] + } + }, + "bookingFields": { + "type": "array", + "description": "Custom fields that can be added to the booking form when the event is booked by someone. By default booking form has name and email field.", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/PhoneFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/AddressFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/TextFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/NumberFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/TextAreaFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/SelectFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/MultiSelectFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/MultiEmailFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/CheckboxGroupFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/RadioGroupFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/BooleanFieldInput_2024_06_14" + } + ] + } + }, + "disableGuests": { + "type": "boolean", + "description": "If true, person booking this event't cant add guests via their emails." + }, + "slotInterval": { + "type": "number", + "description": "Number representing length of each slot when event is booked. By default it equal length of the event type.\n If event length is 60 minutes then we would have slots 9AM, 10AM, 11AM etc. but if it was changed to 30 minutes then\n we would have slots 9AM, 9:30AM, 10AM, 10:30AM etc. as the available times to book the 60 minute event." + }, + "minimumBookingNotice": { + "type": "number", + "description": "Minimum number of minutes before the event that a booking can be made." + }, + "beforeEventBuffer": { + "type": "number", + "description": "Time spaces that can be pre-pended before an event to give more time before it." + }, + "afterEventBuffer": { + "type": "number", + "description": "Time spaces that can be appended after an event to give more time after it." + }, + "scheduleId": { + "type": "number", + "description": "If you want that this event has different schedule than user's default one you can specify it here." + }, + "bookingLimitsCount": { + "type": "object", + "description": "Limit how many times this event can be booked" + }, + "onlyShowFirstAvailableSlot": { + "type": "boolean", + "description": "This will limit your availability for this event type to one slot per day, scheduled at the earliest available time." + }, + "bookingLimitsDuration": { + "type": "object", + "description": "Limit total amount of time that this event can be booked" + }, + "bookingWindow": { + "type": "array", + "description": "Limit how far in the future this event can be booked", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BusinessDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/CalendarDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/RangeWindow_2024_06_14" + } + ] + } + }, + "offsetStart": { + "type": "number", + "description": "Offset timeslots shown to bookers by a specified number of minutes" + }, + "customName": { + "type": "string", + "description": "Customizable event name with valid variables: \n {Event type title}, {Organiser}, {Scheduler}, {Location}, {Organiser first name}, \n {Scheduler first name}, {Scheduler last name}, {Event duration}, {LOCATION}, \n {HOST/ATTENDEE}, {HOST}, {ATTENDEE}, {USER}", + "example": "{Event type title} between {Organiser} and {Scheduler}" + }, + "schedulingType": { + "type": "object" + }, + "hosts": { + "type": "array", + "items": { + "type": "string" + } + }, + "assignAllTeamMembers": { + "type": "boolean", + "description": "If true, all current and future team members will be assigned to this event type" + } + }, + "required": [ + "lengthInMinutes", + "title", + "slug", + "description", + "locations", + "bookingFields", + "disableGuests", + "slotInterval", + "minimumBookingNotice", + "beforeEventBuffer", + "afterEventBuffer", + "scheduleId", + "bookingLimitsCount", + "onlyShowFirstAvailableSlot", + "bookingLimitsDuration", + "bookingWindow", + "offsetStart", + "customName", + "schedulingType", + "hosts", + "assignAllTeamMembers" + ] + }, + "CreateTeamEventTypeOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "oneOf": [ + { + "$ref": "#/components/schemas/TeamEventTypeOutput_2024_06_14" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/TeamEventTypeOutput_2024_06_14" + } + } + ] + } + }, + "required": ["status", "data"] + }, + "Recurrence_2024_06_14": { + "type": "object", + "properties": { + "interval": { + "type": "number", + "example": 10, + "description": "Repeats every {count} week | month | year" + }, + "occurrences": { + "type": "number", + "example": 10, + "description": "Repeats for a maximum of {count} events" + }, + "frequency": { + "enum": ["yearly", "monthly", "weekly"], + "type": "string" + }, + "disabled": { + "type": "boolean", + "default": false + } + }, + "required": ["interval", "occurrences", "frequency"] + }, + "TeamEventTypeResponseHost": { + "type": "object", + "properties": { + "userId": { + "type": "number", + "description": "Which user is the host of this event" + }, + "mandatory": { + "type": "boolean", + "default": false, + "description": "Only relevant for round robin event types. If true then the user must attend round robin event always." + }, + "priority": { + "type": "string", + "default": "medium", + "enum": ["lowest", "low", "medium", "high", "highest"] + }, + "name": { + "type": "string", + "example": "John Doe" + } + }, + "required": ["userId", "name"] + }, + "TeamEventTypeOutput_2024_06_14": { + "type": "object", + "properties": { + "id": { + "type": "number", + "example": 1 + }, + "lengthInMinutes": { + "type": "number", + "minimum": 1, + "example": 60 + }, + "title": { + "type": "string", + "example": "Learn the secrets of masterchief!" + }, + "slug": { + "type": "string", + "example": "learn-the-secrets-of-masterchief" + }, + "description": { + "type": "string", + "example": "Discover the culinary wonders of Argentina by making the best flan ever!" + }, + "locations": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AddressLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/LinkLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/IntegrationLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/PhoneLocation_2024_06_14" + } + ] + } + }, + "bookingFields": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/NameDefaultFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/EmailDefaultFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/LocationDefaultFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/RescheduleReasonDefaultFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/TitleDefaultFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/NotesDefaultFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/GuestsDefaultFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/PhoneFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/AddressFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/TextFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/NumberFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/TextAreaFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/SelectFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/MultiSelectFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/MultiEmailFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/CheckboxGroupFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/RadioGroupFieldOutput_2024_06_14" + }, + { + "$ref": "#/components/schemas/BooleanFieldOutput_2024_06_14" + } + ] + } + }, + "disableGuests": { + "type": "boolean" + }, + "slotInterval": { + "type": "number", + "nullable": true, + "example": 60 + }, + "minimumBookingNotice": { + "type": "number", + "minimum": 0, + "example": 0 + }, + "beforeEventBuffer": { + "type": "number", + "example": 0 + }, + "afterEventBuffer": { + "type": "number", + "example": 0 + }, + "recurrence": { + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/Recurrence_2024_06_14" + } + ] + }, + "metadata": { + "type": "object" + }, + "price": { + "type": "number" + }, + "currency": { + "type": "string" + }, + "lockTimeZoneToggleOnBookingPage": { + "type": "boolean" + }, + "seatsPerTimeSlot": { + "type": "number", + "nullable": true + }, + "forwardParamsSuccessRedirect": { + "type": "boolean", + "nullable": true + }, + "successRedirectUrl": { + "type": "string", + "nullable": true + }, + "isInstantEvent": { + "type": "boolean" + }, + "seatsShowAvailabilityCount": { + "type": "boolean", + "nullable": true + }, + "scheduleId": { + "type": "number", + "nullable": true + }, + "bookingLimitsCount": { + "type": "object" + }, + "onlyShowFirstAvailableSlot": { + "type": "boolean" + }, + "bookingLimitsDuration": { + "type": "object" + }, + "bookingWindow": { + "type": "array", + "description": "Limit how far in the future this event can be booked", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BusinessDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/CalendarDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/RangeWindow_2024_06_14" + } + ] + } + }, + "bookerLayouts": { + "$ref": "#/components/schemas/BookerLayouts_2024_06_14" + }, + "confirmationPolicy": { + "type": "object" + }, + "requiresBookerEmailVerification": { + "type": "boolean" + }, + "hideCalendarNotes": { + "type": "boolean" + }, + "color": { + "$ref": "#/components/schemas/EventTypeColor_2024_06_14" + }, + "seats": { + "$ref": "#/components/schemas/Seats_2024_06_14" + }, + "offsetStart": { + "type": "number", + "minimum": 1 + }, + "customName": { + "type": "string" + }, + "destinationCalendar": { + "$ref": "#/components/schemas/DestinationCalendar_2024_06_14" + }, + "useDestinationCalendarEmail": { + "type": "boolean" + }, + "hideCalendarEventDetails": { + "type": "boolean" + }, + "teamId": { + "type": "number", + "nullable": true + }, + "ownerId": { + "type": "number", + "nullable": true + }, + "parentEventTypeId": { + "type": "number", + "nullable": true, + "description": "For managed event types, parent event type is the event type that this event type is based on" + }, + "hosts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TeamEventTypeResponseHost" + } + }, + "assignAllTeamMembers": { + "type": "boolean" + }, + "schedulingType": { + "type": "string", + "nullable": true, + "enum": ["ROUND_ROBIN", "COLLECTIVE", "MANAGED"] + } + }, + "required": [ + "id", + "lengthInMinutes", + "title", + "slug", + "description", + "locations", + "bookingFields", + "disableGuests", + "recurrence", + "metadata", + "price", + "currency", + "lockTimeZoneToggleOnBookingPage", + "forwardParamsSuccessRedirect", + "successRedirectUrl", + "isInstantEvent", + "scheduleId", + "hosts", + "schedulingType" + ] + }, + "GetTeamEventTypeOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/TeamEventTypeOutput_2024_06_14" + } + }, + "required": ["status", "data"] + }, + "CreatePhoneCallInput": { + "type": "object", + "properties": { + "yourPhoneNumber": { + "type": "string", + "pattern": "/^\\+[1-9]\\d{1,14}$/", + "description": "Your phone number" + }, + "numberToCall": { + "type": "string", + "pattern": "/^\\+[1-9]\\d{1,14}$/", + "description": "Number to call" + }, + "calApiKey": { + "type": "string", + "description": "CAL API Key" + }, + "enabled": { + "type": "object", + "default": true, + "description": "Enabled status" + }, + "templateType": { + "default": "CUSTOM_TEMPLATE", + "enum": ["CHECK_IN_APPOINTMENT", "CUSTOM_TEMPLATE"], + "type": "string", + "description": "Template type" + }, + "schedulerName": { + "type": "string", + "description": "Scheduler name" + }, + "guestName": { + "type": "string", + "description": "Guest name" + }, + "guestEmail": { + "type": "string", + "description": "Guest email" + }, + "guestCompany": { + "type": "string", + "description": "Guest company" + }, + "beginMessage": { + "type": "string", + "description": "Begin message" + }, + "generalPrompt": { + "type": "string", + "description": "General prompt" + } + }, + "required": ["yourPhoneNumber", "numberToCall", "calApiKey", "enabled", "templateType"] + }, + "Data": { + "type": "object", + "properties": { + "callId": { + "type": "string" + }, + "agentId": { + "type": "string" + } + }, + "required": ["callId", "agentId"] + }, + "CreatePhoneCallOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/Data" + } + }, + "required": ["status", "data"] + }, + "GetTeamEventTypesOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TeamEventTypeOutput_2024_06_14" + } + } + }, + "required": ["status", "data"] + }, + "UpdateTeamEventTypeInput_2024_06_14": { + "type": "object", + "properties": { + "lengthInMinutes": { + "type": "number", + "example": 60 + }, + "title": { + "type": "string", + "example": "Learn the secrets of masterchief!" + }, + "slug": { + "type": "string", + "example": "learn-the-secrets-of-masterchief" + }, + "description": { + "type": "string", + "example": "Discover the culinary wonders of the Argentina by making the best flan ever!" + }, + "locations": { + "type": "array", + "description": "Locations where the event will take place. If not provided, cal video link will be used as the location.", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AddressLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/LinkLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/IntegrationLocation_2024_06_14" + }, + { + "$ref": "#/components/schemas/PhoneLocation_2024_06_14" + } + ] + } + }, + "bookingFields": { + "type": "array", + "description": "Custom fields that can be added to the booking form when the event is booked by someone. By default booking form has name and email field.", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/PhoneFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/AddressFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/TextFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/NumberFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/TextAreaFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/SelectFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/MultiSelectFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/MultiEmailFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/CheckboxGroupFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/RadioGroupFieldInput_2024_06_14" + }, + { + "$ref": "#/components/schemas/BooleanFieldInput_2024_06_14" + } + ] + } + }, + "disableGuests": { + "type": "boolean", + "description": "If true, person booking this event't cant add guests via their emails." + }, + "slotInterval": { + "type": "number", + "description": "Number representing length of each slot when event is booked. By default it equal length of the event type.\n If event length is 60 minutes then we would have slots 9AM, 10AM, 11AM etc. but if it was changed to 30 minutes then\n we would have slots 9AM, 9:30AM, 10AM, 10:30AM etc. as the available times to book the 60 minute event." + }, + "minimumBookingNotice": { + "type": "number", + "description": "Minimum number of minutes before the event that a booking can be made." + }, + "beforeEventBuffer": { + "type": "number", + "description": "Time spaces that can be pre-pended before an event to give more time before it." + }, + "afterEventBuffer": { + "type": "number", + "description": "Time spaces that can be appended after an event to give more time after it." + }, + "scheduleId": { + "type": "number", + "description": "If you want that this event has different schedule than user's default one you can specify it here." + }, + "bookingLimitsCount": { + "type": "object", + "description": "Limit how many times this event can be booked" + }, + "onlyShowFirstAvailableSlot": { + "type": "boolean", + "description": "This will limit your availability for this event type to one slot per day, scheduled at the earliest available time." + }, + "bookingLimitsDuration": { + "type": "object", + "description": "Limit total amount of time that this event can be booked" + }, + "bookingWindow": { + "type": "array", + "description": "Limit how far in the future this event can be booked", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BusinessDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/CalendarDaysWindow_2024_06_14" + }, + { + "$ref": "#/components/schemas/RangeWindow_2024_06_14" + } + ] + } + }, + "offsetStart": { + "type": "number", + "description": "Offset timeslots shown to bookers by a specified number of minutes" + }, + "customName": { + "type": "string", + "description": "Customizable event name with valid variables: \n {Event type title}, {Organiser}, {Scheduler}, {Location}, {Organiser first name}, \n {Scheduler first name}, {Scheduler last name}, {Event duration}, {LOCATION}, \n {HOST/ATTENDEE}, {HOST}, {ATTENDEE}, {USER}", + "example": "{Event type title} between {Organiser} and {Scheduler}" + }, + "hosts": { + "type": "array", + "items": { + "type": "string" + } + }, + "assignAllTeamMembers": { + "type": "boolean", + "description": "If true, all current and future team members will be assigned to this event type" + } + }, + "required": [ + "lengthInMinutes", + "title", + "slug", + "description", + "locations", + "bookingFields", + "disableGuests", + "slotInterval", + "minimumBookingNotice", + "beforeEventBuffer", + "afterEventBuffer", + "scheduleId", + "bookingLimitsCount", + "onlyShowFirstAvailableSlot", + "bookingLimitsDuration", + "bookingWindow", + "offsetStart", + "customName", + "hosts", + "assignAllTeamMembers" + ] + }, + "UpdateTeamEventTypeOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "oneOf": [ + { + "$ref": "#/components/schemas/TeamEventTypeOutput_2024_06_14" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/TeamEventTypeOutput_2024_06_14" + } + } + ] + } + }, + "required": ["status", "data"] + }, + "DeleteTeamEventTypeOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "object" + } + }, + "required": ["status", "data"] + }, + "OrgTeamMembershipOutputDto": { + "type": "object", + "properties": { + "role": { + "type": "string", + "enum": ["MEMBER", "OWNER", "ADMIN"] + }, + "id": { + "type": "number" + }, + "userId": { + "type": "number" + }, + "teamId": { + "type": "number" + }, + "accepted": { + "type": "boolean" + }, + "disableImpersonation": { + "type": "boolean" + } + }, + "required": ["role", "id", "userId", "teamId", "accepted"] + }, + "OrgTeamMembershipsOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OrgTeamMembershipOutputDto" + } + } + }, + "required": ["status", "data"] + }, + "OrgTeamMembershipOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/OrgTeamMembershipOutputDto" + } + }, + "required": ["status", "data"] + }, + "UpdateOrgTeamMembershipDto": { + "type": "object", + "properties": { + "role": { + "type": "string", + "default": "MEMBER", + "enum": ["MEMBER", "OWNER", "ADMIN"] + }, + "accepted": { + "type": "boolean", + "default": false + }, + "disableImpersonation": { + "type": "boolean", + "default": false + } + } + }, + "CreateOrgTeamMembershipDto": { + "type": "object", + "properties": { + "role": { + "type": "string", + "default": "MEMBER", + "enum": ["MEMBER", "OWNER", "ADMIN"] + }, + "userId": { + "type": "number" + }, + "accepted": { + "type": "boolean", + "default": false + }, + "disableImpersonation": { + "type": "boolean", + "default": false + } + }, + "required": ["role", "userId"] + }, + "Attribute": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The ID of the attribute", + "example": "attr_123" + }, + "teamId": { + "type": "number", + "description": "The team ID associated with the attribute", + "example": 1 + }, + "type": { + "type": "string", + "description": "The type of the attribute", + "enum": ["TEXT", "NUMBER", "SINGLE_SELECT", "MULTI_SELECT"] + }, + "name": { + "type": "string", + "description": "The name of the attribute", + "example": "Attribute Name" + }, + "slug": { + "type": "string", + "description": "The slug of the attribute", + "example": "attribute-name" + }, + "enabled": { + "type": "boolean", + "description": "Whether the attribute is enabled and displayed on their profile", + "example": true + }, + "usersCanEditRelation": { + "type": "boolean", + "description": "Whether users can edit the relation", + "example": true + } + }, + "required": ["id", "teamId", "type", "name", "slug", "enabled"] + }, + "GetOrganizationAttributesOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Attribute" + } + } + }, + "required": ["status", "data"] + }, + "GetSingleAttributeOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "nullable": true, + "allOf": [ + { + "$ref": "#/components/schemas/Attribute" + } + ] + } + }, + "required": ["status", "data"] + }, + "CreateOrganizationAttributeOptionInput": { + "type": "object", + "properties": { + "value": { + "type": "string" + }, + "slug": { + "type": "string" + } + }, + "required": ["value", "slug"] + }, + "CreateOrganizationAttributeInput": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "slug": { + "type": "string" + }, + "type": { + "type": "object" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CreateOrganizationAttributeOptionInput" + } + }, + "enabled": { + "type": "boolean" + } + }, + "required": ["name", "slug", "type", "options"] + }, + "CreateOrganizationAttributesOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/Attribute" + } + }, + "required": ["status", "data"] + }, + "UpdateOrganizationAttributeInput": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "slug": { + "type": "string" + }, + "type": { + "type": "object" + }, + "enabled": { + "type": "boolean" + } + } + }, + "UpdateOrganizationAttributesOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/Attribute" + } + }, + "required": ["status", "data"] + }, + "DeleteOrganizationAttributesOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/Attribute" + } + }, + "required": ["status", "data"] + }, + "OptionOutput": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The ID of the option", + "example": "attr_option_id" + }, + "attributeId": { + "type": "string", + "description": "The ID of the attribute", + "example": "attr_id" + }, + "value": { + "type": "string", + "description": "The value of the option", + "example": "option_value" + }, + "slug": { + "type": "string", + "description": "The slug of the option", + "example": "option-slug" + } + }, + "required": ["id", "attributeId", "value", "slug"] + }, + "CreateAttributeOptionOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/OptionOutput" + } + }, + "required": ["status", "data"] + }, + "DeleteAttributeOptionOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/OptionOutput" + } + }, + "required": ["status", "data"] + }, + "UpdateOrganizationAttributeOptionInput": { + "type": "object", + "properties": { + "value": { + "type": "string" + }, + "slug": { + "type": "string" + } + } + }, + "UpdateAttributeOptionOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/OptionOutput" + } + }, + "required": ["status", "data"] + }, + "GetAllAttributeOptionOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OptionOutput" + } + } + }, + "required": ["status", "data"] + }, + "AssignOrganizationAttributeOptionToUserInput": { + "type": "object", + "properties": { + "value": { + "type": "string" + }, + "attributeOptionId": { + "type": "string" + }, + "attributeId": { + "type": "string" + } + }, + "required": ["attributeId"] + }, + "AssignOptionUserOutputData": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The ID of the option assigned to the user" + }, + "memberId": { + "type": "number", + "description": "The ID form the org membership for the user" + }, + "attributeOptionId": { + "type": "string", + "description": "The value of the option" + } + }, + "required": ["id", "memberId", "attributeOptionId"] + }, + "AssignOptionUserOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/AssignOptionUserOutputData" + } + }, + "required": ["status", "data"] + }, + "UnassignOptionUserOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/AssignOptionUserOutputData" + } + }, + "required": ["status", "data"] + }, + "GetOptionUserOutputData": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The ID of the option assigned to the user" + }, + "attributeId": { + "type": "string", + "description": "The ID of the attribute" + }, + "value": { + "type": "string", + "description": "The value of the option" + }, + "slug": { + "type": "string", + "description": "The slug of the option" + } + }, + "required": ["id", "attributeId", "value", "slug"] + }, + "GetOptionUserOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GetOptionUserOutputData" + } + } + }, + "required": ["status", "data"] + }, + "TeamWebhookOutputDto": { + "type": "object", + "properties": { + "payloadTemplate": { + "type": "string", + "description": "The template of the payload that will be sent to the subscriberUrl, check cal.com/docs/core-features/webhooks for more information", + "example": "{\"content\":\"A new event has been scheduled\",\"type\":\"{{type}}\",\"name\":\"{{title}}\",\"organizer\":\"{{organizer.name}}\",\"booker\":\"{{attendees.0.name}}\"}" + }, + "teamId": { + "type": "number" + }, + "id": { + "type": "number" + }, + "triggers": { + "type": "array", + "items": { + "type": "object" + } + }, + "subscriberUrl": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "secret": { + "type": "string" + } + }, + "required": ["payloadTemplate", "teamId", "id", "triggers", "subscriberUrl", "active"] + }, + "TeamWebhooksOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TeamWebhookOutputDto" + } + } + }, + "required": ["status", "data"] + }, + "CreateWebhookInputDto": { + "type": "object", + "properties": { + "payloadTemplate": { + "type": "string", + "description": "The template of the payload that will be sent to the subscriberUrl, check cal.com/docs/core-features/webhooks for more information", + "example": "{\"content\":\"A new event has been scheduled\",\"type\":\"{{type}}\",\"name\":\"{{title}}\",\"organizer\":\"{{organizer.name}}\",\"booker\":\"{{attendees.0.name}}\"}" + }, + "triggers": { + "type": "string", + "example": [ + "BOOKING_CREATED", + "BOOKING_RESCHEDULED", + "BOOKING_CANCELLED", + "BOOKING_CONFIRMED", + "BOOKING_REJECTED", + "BOOKING_COMPLETED", + "BOOKING_NO_SHOW", + "BOOKING_REOPENED" + ], + "enum": [ + "BOOKING_CREATED", + "BOOKING_PAYMENT_INITIATED", + "BOOKING_PAID", + "BOOKING_RESCHEDULED", + "BOOKING_REQUESTED", + "BOOKING_CANCELLED", + "BOOKING_REJECTED", + "BOOKING_NO_SHOW_UPDATED", + "FORM_SUBMITTED", + "MEETING_ENDED", + "MEETING_STARTED", + "RECORDING_READY", + "INSTANT_MEETING", + "RECORDING_TRANSCRIPTION_GENERATED", + "OOO_CREATED" + ] + }, + "active": { + "type": "boolean" + }, + "subscriberUrl": { + "type": "string" + }, + "secret": { + "type": "string" + } + }, + "required": ["triggers", "active", "subscriberUrl"] + }, + "TeamWebhookOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/TeamWebhookOutputDto" + } + }, + "required": ["status", "data"] + }, + "UpdateWebhookInputDto": { + "type": "object", + "properties": { + "payloadTemplate": { + "type": "string", + "description": "The template of the payload that will be sent to the subscriberUrl, check cal.com/docs/core-features/webhooks for more information", + "example": "{\"content\":\"A new event has been scheduled\",\"type\":\"{{type}}\",\"name\":\"{{title}}\",\"organizer\":\"{{organizer.name}}\",\"booker\":\"{{attendees.0.name}}\"}" + }, + "triggers": { + "type": "string", + "example": [ + "BOOKING_CREATED", + "BOOKING_RESCHEDULED", + "BOOKING_CANCELLED", + "BOOKING_CONFIRMED", + "BOOKING_REJECTED", + "BOOKING_COMPLETED", + "BOOKING_NO_SHOW", + "BOOKING_REOPENED" + ], + "enum": [ + "BOOKING_CREATED", + "BOOKING_PAYMENT_INITIATED", + "BOOKING_PAID", + "BOOKING_RESCHEDULED", + "BOOKING_REQUESTED", + "BOOKING_CANCELLED", + "BOOKING_REJECTED", + "BOOKING_NO_SHOW_UPDATED", + "FORM_SUBMITTED", + "MEETING_ENDED", + "MEETING_STARTED", + "RECORDING_READY", + "INSTANT_MEETING", + "RECORDING_TRANSCRIPTION_GENERATED", + "OOO_CREATED" + ] + }, + "active": { + "type": "boolean" + }, + "subscriberUrl": { + "type": "string" + }, + "secret": { + "type": "string" + } + } + }, + "StripConnectOutputDto": { + "type": "object", + "properties": { + "authUrl": { + "type": "string" + } + }, + "required": ["authUrl"] + }, + "StripConnectOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/StripConnectOutputDto" + } + }, + "required": ["status", "data"] + }, + "StripCredentialsSaveOutputResponseDto": { + "type": "object", + "properties": { + "url": { + "type": "string" + } + }, + "required": ["url"] + }, + "StripCredentialsCheckOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success" + } + }, + "required": ["status"] + }, + "GetDefaultScheduleOutput_2024_06_11": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/ScheduleOutput_2024_06_11" + } + }, + "required": ["status", "data"] + }, + "AuthUrlData": { + "type": "object", + "properties": { + "authUrl": { + "type": "string" + } + }, + "required": ["authUrl"] + }, + "GcalAuthUrlOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/AuthUrlData" + } + }, + "required": ["status", "data"] + }, + "GcalSaveRedirectOutput": { + "type": "object", + "properties": { + "url": { + "type": "string" + } + }, + "required": ["url"] + }, + "GcalCheckOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + } + }, + "required": ["status"] + }, + "ProviderVerifyClientData": { + "type": "object", + "properties": { + "clientId": { + "type": "string" + }, + "organizationId": { + "type": "number" + }, + "name": { + "type": "string" + } + }, + "required": ["clientId", "organizationId", "name"] + }, + "ProviderVerifyClientOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/ProviderVerifyClientData" + } + }, + "required": ["status", "data"] + }, + "ProviderVerifyAccessTokenOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + } + }, + "required": ["status"] + }, + "MeOrgOutput": { + "type": "object", + "properties": { + "isPlatform": { + "type": "boolean" + }, + "id": { + "type": "number" + } + }, + "required": ["isPlatform", "id"] + }, + "MeOutput": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "username": { + "type": "string" + }, + "email": { + "type": "string" + }, + "timeFormat": { + "type": "number" + }, + "defaultScheduleId": { + "type": "number", + "nullable": true + }, + "weekStart": { + "type": "string" + }, + "timeZone": { + "type": "string" + }, + "organizationId": { + "type": "number", + "nullable": true + }, + "organization": { + "$ref": "#/components/schemas/MeOrgOutput" + } + }, + "required": [ + "id", + "username", + "email", + "timeFormat", + "defaultScheduleId", + "weekStart", + "timeZone", + "organizationId" + ] + }, + "GetMeOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/MeOutput" + } + }, + "required": ["status", "data"] + }, + "UpdateMeOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/MeOutput" + } + }, + "required": ["status", "data"] + }, + "CreateIcsFeedInputDto": { + "type": "object", + "properties": { + "urls": { + "type": "array", + "example": ["https://cal.com/ics/feed.ics", "http://cal.com/ics/feed.ics"], + "description": "An array of ICS URLs", + "items": { + "type": "string", + "example": "https://cal.com/ics/feed.ics" + } + }, + "readOnly": { + "type": "boolean", + "default": true, + "example": false, + "description": "Whether to allowing writing to the calendar or not" + } + }, + "required": ["urls"] + }, + "CreateIcsFeedOutput": { + "type": "object", + "properties": { + "id": { + "type": "number", + "example": 1234567890, + "description": "The id of the calendar credential" + }, + "type": { + "type": "string", + "example": "ics-feed_calendar", + "description": "The type of the calendar" + }, + "userId": { + "type": "integer", + "nullable": true, + "example": 1234567890, + "description": "The user id of the user that created the calendar" + }, + "teamId": { + "type": "integer", + "nullable": true, + "example": 1234567890, + "description": "The team id of the user that created the calendar" + }, + "appId": { + "type": "string", + "nullable": true, + "example": "ics-feed", + "description": "The slug of the calendar" + }, + "invalid": { + "type": "boolean", + "nullable": true, + "example": false, + "description": "Whether the calendar credentials are valid or not" + } + }, + "required": ["id", "type", "userId", "teamId", "appId", "invalid"] + }, + "CreateIcsFeedOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/CreateIcsFeedOutput" + } + }, + "required": ["status", "data"] + }, + "BusyTimesOutput": { + "type": "object", + "properties": { + "start": { + "format": "date-time", + "type": "string" + }, + "end": { + "format": "date-time", + "type": "string" + }, + "source": { + "type": "string", + "nullable": true + } + }, + "required": ["start", "end"] + }, + "GetBusyTimesOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BusyTimesOutput" + } + } + }, + "required": ["status", "data"] + }, + "Integration": { + "type": "object", + "properties": { + "appData": { + "type": "object", + "nullable": true + }, + "dirName": { + "type": "string" + }, + "__template": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "installed": { + "type": "boolean" + }, + "type": { + "type": "string" + }, + "title": { + "type": "string" + }, + "variant": { + "type": "string" + }, + "category": { + "type": "string" + }, + "categories": { + "type": "array", + "items": { + "type": "string" + } + }, + "logo": { + "type": "string" + }, + "publisher": { + "type": "string" + }, + "slug": { + "type": "string" + }, + "url": { + "type": "string" + }, + "email": { + "type": "string" + }, + "locationOption": { + "type": "object", + "nullable": true + } + }, + "required": [ + "name", + "description", + "type", + "variant", + "categories", + "logo", + "publisher", + "slug", + "url", + "email", + "locationOption" + ] + }, + "Primary": { + "type": "object", + "properties": { + "externalId": { + "type": "string" + }, + "integration": { + "type": "string" + }, + "name": { + "type": "string" + }, + "primary": { + "type": "boolean", + "nullable": true + }, + "readOnly": { + "type": "boolean" + }, + "email": { + "type": "string" + }, + "isSelected": { + "type": "boolean" + }, + "credentialId": { + "type": "number" + } + }, + "required": ["externalId", "primary", "readOnly", "isSelected", "credentialId"] + }, + "Calendar": { + "type": "object", + "properties": { + "externalId": { + "type": "string" + }, + "integration": { + "type": "string" + }, + "name": { + "type": "string" + }, + "primary": { + "type": "boolean", + "nullable": true + }, + "readOnly": { + "type": "boolean" + }, + "email": { + "type": "string" + }, + "isSelected": { + "type": "boolean" + }, + "credentialId": { + "type": "number" + } + }, + "required": ["externalId", "readOnly", "isSelected", "credentialId"] + }, + "ConnectedCalendar": { + "type": "object", + "properties": { + "integration": { + "$ref": "#/components/schemas/Integration" + }, + "credentialId": { + "type": "number" + }, + "primary": { + "$ref": "#/components/schemas/Primary" + }, + "calendars": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Calendar" + } + } + }, + "required": ["integration", "credentialId"] + }, + "DestinationCalendar": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "integration": { + "type": "string" + }, + "externalId": { + "type": "string" + }, + "primaryEmail": { + "type": "string", + "nullable": true + }, + "userId": { + "type": "number", + "nullable": true + }, + "eventTypeId": { + "type": "number", + "nullable": true + }, + "credentialId": { + "type": "number", + "nullable": true + }, + "name": { + "type": "string", + "nullable": true + }, + "primary": { + "type": "boolean" + }, + "readOnly": { + "type": "boolean" + }, + "email": { + "type": "string" + }, + "integrationTitle": { + "type": "string" + } + }, + "required": [ + "id", + "integration", + "externalId", + "primaryEmail", + "userId", + "eventTypeId", + "credentialId" + ] + }, + "ConnectedCalendarsData": { + "type": "object", + "properties": { + "connectedCalendars": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ConnectedCalendar" + } + }, + "destinationCalendar": { + "$ref": "#/components/schemas/DestinationCalendar" + } + }, + "required": ["connectedCalendars", "destinationCalendar"] + }, + "ConnectedCalendarsOutput": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/ConnectedCalendarsData" + } + }, + "required": ["status", "data"] + }, + "DeleteCalendarCredentialsInputBodyDto": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "example": 10, + "description": "Credential ID of the calendar to delete, as returned by the /calendars endpoint" + } + }, + "required": ["id"] + }, + "DeletedCalendarCredentialsOutputDto": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "type": { + "type": "string" + }, + "userId": { + "type": "number", + "nullable": true + }, + "teamId": { + "type": "number", + "nullable": true + }, + "appId": { + "type": "string", + "nullable": true + }, + "invalid": { + "type": "boolean", + "nullable": true + } + }, + "required": ["id", "type", "userId", "teamId", "appId", "invalid"] + }, + "DeletedCalendarCredentialsOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/DeletedCalendarCredentialsOutputDto" + } + }, + "required": ["status", "data"] + }, + "Attendee": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the attendee.", + "example": "John Doe" + }, + "email": { + "type": "string", + "description": "The email of the attendee.", + "example": "john.doe@example.com" + }, + "timeZone": { + "type": "string", + "description": "The time zone of the attendee.", + "example": "America/New_York" + }, + "language": { + "type": "string", + "enum": [ + "ar", + "ca", + "de", + "es", + "eu", + "he", + "id", + "ja", + "lv", + "pl", + "ro", + "sr", + "th", + "vi", + "az", + "cs", + "el", + "es-419", + "fi", + "hr", + "it", + "km", + "nl", + "pt", + "ru", + "sv", + "tr", + "zh-CN", + "bg", + "da", + "en", + "et", + "fr", + "hu", + "iw", + "ko", + "no", + "pt-BR", + "sk", + "ta", + "uk", + "zh-TW" + ], + "description": "The preferred language of the attendee. Used for booking confirmation.", + "example": "it", + "default": "en" + } + }, + "required": ["name", "email", "timeZone"] + }, + "CreateBookingInput_2024_08_13": { + "type": "object", + "properties": { + "start": { + "type": "string", + "description": "The start time of the booking in ISO 8601 format in UTC timezone.", + "example": "2024-08-13T09:00:00Z" + }, + "eventTypeId": { + "type": "number", + "description": "The ID of the event type that is booked.", + "example": 123 + }, + "attendee": { + "description": "The attendee's details.", + "allOf": [ + { + "$ref": "#/components/schemas/Attendee" + } + ] + }, + "guests": { + "description": "An optional list of guest emails attending the event.", + "example": ["guest1@example.com", "guest2@example.com"], + "type": "array", + "items": { + "type": "string" + } + }, + "meetingUrl": { + "type": "string", + "description": "Meeting URL just for this booking. Displayed in email and calendar event. If not provided then cal video link will be generated.", + "example": "https://example.com/meeting" + }, + "bookingFieldsResponses": { + "type": "object", + "description": "Booking field responses.", + "example": { + "customField": "customValue" + } + } + }, + "required": ["start", "eventTypeId", "attendee"] + }, + "CreateInstantBookingInput_2024_08_13": { + "type": "object", + "properties": { + "start": { + "type": "string", + "description": "The start time of the booking in ISO 8601 format in UTC timezone.", + "example": "2024-08-13T09:00:00Z" + }, + "eventTypeId": { + "type": "number", + "description": "The ID of the event type that is booked.", + "example": 123 + }, + "attendee": { + "description": "The attendee's details.", + "allOf": [ + { + "$ref": "#/components/schemas/Attendee" + } + ] + }, + "guests": { + "description": "An optional list of guest emails attending the event.", + "example": ["guest1@example.com", "guest2@example.com"], + "type": "array", + "items": { + "type": "string" + } + }, + "meetingUrl": { + "type": "string", + "description": "Meeting URL just for this booking. Displayed in email and calendar event. If not provided then cal video link will be generated.", + "example": "https://example.com/meeting" + }, + "bookingFieldsResponses": { + "type": "object", + "description": "Booking field responses.", + "example": { + "customField": "customValue" + } + }, + "instant": { + "type": "boolean", + "description": "Flag indicating if the booking is an instant booking. Only available for team events.", + "example": true + } + }, + "required": ["start", "eventTypeId", "attendee", "instant"] + }, + "CreateRecurringBookingInput_2024_08_13": { + "type": "object", + "properties": { + "start": { + "type": "string", + "description": "The start time of the booking in ISO 8601 format in UTC timezone.", + "example": "2024-08-13T09:00:00Z" + }, + "eventTypeId": { + "type": "number", + "description": "The ID of the event type that is booked.", + "example": 123 + }, + "attendee": { + "description": "The attendee's details.", + "allOf": [ + { + "$ref": "#/components/schemas/Attendee" + } + ] + }, + "guests": { + "description": "An optional list of guest emails attending the event.", + "example": ["guest1@example.com", "guest2@example.com"], + "type": "array", + "items": { + "type": "string" + } + }, + "meetingUrl": { + "type": "string", + "description": "Meeting URL just for this booking. Displayed in email and calendar event. If not provided then cal video link will be generated.", + "example": "https://example.com/meeting" + }, + "bookingFieldsResponses": { + "type": "object", + "description": "Booking field responses.", + "example": { + "customField": "customValue" + } + } + }, + "required": ["start", "eventTypeId", "attendee"] + }, + "Host": { + "type": "object", + "properties": { + "id": { + "type": "number", + "example": 1 + }, + "name": { + "type": "string", + "example": "Jane Doe" + }, + "timeZone": { + "type": "string", + "example": "America/Los_Angeles" + } + }, + "required": ["id", "name", "timeZone"] + }, + "BookingOutput_2024_08_13": { + "type": "object", + "properties": { + "id": { + "type": "number", + "example": 123 + }, + "uid": { + "type": "string", + "example": "booking_uid_123" + }, + "hosts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Host" + } + }, + "status": { + "type": "string", + "enum": ["cancelled", "accepted", "rejected", "pending", "rescheduled"], + "example": "accepted" + }, + "cancellationReason": { + "type": "string", + "example": "User requested cancellation" + }, + "reschedulingReason": { + "type": "string", + "example": "User rescheduled the event" + }, + "rescheduledFromUid": { + "type": "string", + "example": "previous_uid_123" + }, + "start": { + "type": "string", + "example": "2024-08-13T15:30:00Z" + }, + "end": { + "type": "string", + "example": "2024-08-13T16:30:00Z" + }, + "duration": { + "type": "number", + "example": 60 + }, + "eventTypeId": { + "type": "number", + "example": 45 + }, + "attendees": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Attendee" + } + }, + "guests": { + "example": ["guest1@example.com", "guest2@example.com"], + "type": "array", + "items": { + "type": "string" + } + }, + "meetingUrl": { + "type": "string", + "example": "https://example.com/meeting" + }, + "absentHost": { + "type": "boolean", + "example": true + } + }, + "required": [ + "id", + "uid", + "hosts", + "status", + "start", + "end", + "duration", + "eventTypeId", + "attendees", + "absentHost" + ] + }, + "RecurringBookingOutput_2024_08_13": { + "type": "object", + "properties": { + "id": { + "type": "number", + "example": 456 + }, + "uid": { + "type": "string", + "example": "recurring_uid_123" + }, + "hosts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Host" + } + }, + "status": { + "type": "string", + "enum": ["cancelled", "accepted", "rejected", "pending"], + "example": "pending" + }, + "cancellationReason": { + "type": "string", + "example": "Event was cancelled" + }, + "reschedulingReason": { + "type": "string", + "example": "Event was rescheduled" + }, + "rescheduledFromUid": { + "type": "string", + "example": "previous_recurring_uid_123" + }, + "start": { + "type": "string", + "example": "2024-08-13T15:30:00Z" + }, + "end": { + "type": "string", + "example": "2024-08-13T16:30:00Z" + }, + "duration": { + "type": "number", + "example": 30 + }, + "eventTypeId": { + "type": "number", + "example": 50 + }, + "recurringBookingUid": { + "type": "string", + "example": "recurring_uid_987" + }, + "attendees": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Attendee" + } + }, + "guests": { + "example": ["guest3@example.com", "guest4@example.com"], + "type": "array", + "items": { + "type": "string" + } + }, + "meetingUrl": { + "type": "string", + "example": "https://example.com/recurring-meeting" + }, + "absentHost": { + "type": "boolean", + "example": false + } + }, + "required": [ + "id", + "uid", + "hosts", + "status", + "start", + "end", + "duration", + "eventTypeId", + "recurringBookingUid", + "attendees", + "absentHost" + ] + }, + "CreateBookingOutput_2024_08_13": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "oneOf": [ + { + "$ref": "#/components/schemas/BookingOutput_2024_08_13" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/RecurringBookingOutput_2024_08_13" + } + } + ], + "description": "Booking data, which can be either a BookingOutput object or an array of RecurringBookingOutput objects" + } + }, + "required": ["status", "data"] + }, + "GetBookingOutput_2024_08_13": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "oneOf": [ + { + "$ref": "#/components/schemas/BookingOutput_2024_08_13" + }, + { + "$ref": "#/components/schemas/RecurringBookingOutput_2024_08_13" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/RecurringBookingOutput_2024_08_13" + } + } + ], + "description": "Booking data, which can be either a BookingOutput object, a RecurringBookingOutput object, or an array of RecurringBookingOutput objects" + } + }, + "required": ["status", "data"] + }, + "GetBookingsOutput_2024_08_13": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BookingOutput_2024_08_13" + }, + { + "$ref": "#/components/schemas/RecurringBookingOutput_2024_08_13" + } + ] + }, + "description": "Array of booking data, which can contain either BookingOutput objects or RecurringBookingOutput objects" + } + }, + "required": ["status", "data"] + }, + "RescheduleBookingInput_2024_08_13": { + "type": "object", + "properties": { + "start": { + "type": "string", + "description": "Start time in ISO 8601 format for the new booking", + "example": "2024-08-13T10:00:00Z" + }, + "reschedulingReason": { + "type": "string", + "example": "User requested reschedule", + "description": "Reason for rescheduling the booking" + } + }, + "required": ["start"] + }, + "RescheduleBookingOutput_2024_08_13": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "oneOf": [ + { + "$ref": "#/components/schemas/BookingOutput_2024_08_13" + }, + { + "$ref": "#/components/schemas/RecurringBookingOutput_2024_08_13" + } + ], + "description": "Booking data, which can be either a BookingOutput object or a RecurringBookingOutput object" + } + }, + "required": ["status", "data"] + }, + "CancelBookingInput_2024_08_13": { + "type": "object", + "properties": { + "cancellationReason": { + "type": "string", + "example": "User requested cancellation" + } + }, + "required": ["cancellationReason"] + }, + "CancelBookingOutput_2024_08_13": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "oneOf": [ + { + "$ref": "#/components/schemas/BookingOutput_2024_08_13" + }, + { + "$ref": "#/components/schemas/RecurringBookingOutput_2024_08_13" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/RecurringBookingOutput_2024_08_13" + } + } + ], + "description": "Booking data, which can be either a BookingOutput object, a RecurringBookingOutput object, or an array of RecurringBookingOutput objects" + } + }, + "required": ["status", "data"] + }, + "MarkAbsentBookingInput_2024_08_13": { + "type": "object", + "properties": { + "host": { + "type": "boolean", + "example": false, + "description": "Whether the host was absent" + }, + "attendees": { + "description": "Toggle whether an attendee was absent or not.", + "example": [ + { + "absent": true, + "email": "someone@gmail.com" + } + ], + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": ["attendees"] + }, + "MarkAbsentBookingOutput_2024_08_13": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "oneOf": [ + { + "$ref": "#/components/schemas/BookingOutput_2024_08_13" + }, + { + "$ref": "#/components/schemas/RecurringBookingOutput_2024_08_13" + } + ], + "description": "Booking data, which can be either a BookingOutput object or a RecurringBookingOutput object" + } + }, + "required": ["status", "data"] + }, + "ReserveSlotInput": { + "type": "object", + "properties": {} + }, + "UserWebhookOutputDto": { + "type": "object", + "properties": { + "payloadTemplate": { + "type": "string", + "description": "The template of the payload that will be sent to the subscriberUrl, check cal.com/docs/core-features/webhooks for more information", + "example": "{\"content\":\"A new event has been scheduled\",\"type\":\"{{type}}\",\"name\":\"{{title}}\",\"organizer\":\"{{organizer.name}}\",\"booker\":\"{{attendees.0.name}}\"}" + }, + "userId": { + "type": "number" + }, + "id": { + "type": "number" + }, + "triggers": { + "type": "array", + "items": { + "type": "object" + } + }, + "subscriberUrl": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "secret": { + "type": "string" + } + }, + "required": ["payloadTemplate", "userId", "id", "triggers", "subscriberUrl", "active"] + }, + "UserWebhookOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/UserWebhookOutputDto" + } + }, + "required": ["status", "data"] + }, + "UserWebhooksOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserWebhookOutputDto" + } + } + }, + "required": ["status", "data"] + }, + "EventTypeWebhookOutputDto": { + "type": "object", + "properties": { + "payloadTemplate": { + "type": "string", + "description": "The template of the payload that will be sent to the subscriberUrl, check cal.com/docs/core-features/webhooks for more information", + "example": "{\"content\":\"A new event has been scheduled\",\"type\":\"{{type}}\",\"name\":\"{{title}}\",\"organizer\":\"{{organizer.name}}\",\"booker\":\"{{attendees.0.name}}\"}" + }, + "eventTypeId": { + "type": "number" + }, + "id": { + "type": "number" + }, + "triggers": { + "type": "array", + "items": { + "type": "object" + } + }, + "subscriberUrl": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "secret": { + "type": "string" + } + }, + "required": ["payloadTemplate", "eventTypeId", "id", "triggers", "subscriberUrl", "active"] + }, + "EventTypeWebhookOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/EventTypeWebhookOutputDto" + } + }, + "required": ["status", "data"] + }, + "EventTypeWebhooksOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EventTypeWebhookOutputDto" + } + } + }, + "required": ["status", "data"] + }, + "DeleteManyWebhooksOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "string" + } + }, + "required": ["status", "data"] + }, + "OAuthClientWebhookOutputDto": { + "type": "object", + "properties": { + "payloadTemplate": { + "type": "string", + "description": "The template of the payload that will be sent to the subscriberUrl, check cal.com/docs/core-features/webhooks for more information", + "example": "{\"content\":\"A new event has been scheduled\",\"type\":\"{{type}}\",\"name\":\"{{title}}\",\"organizer\":\"{{organizer.name}}\",\"booker\":\"{{attendees.0.name}}\"}" + }, + "oAuthClientId": { + "type": "string" + }, + "id": { + "type": "number" + }, + "triggers": { + "type": "array", + "items": { + "type": "object" + } + }, + "subscriberUrl": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "secret": { + "type": "string" + } + }, + "required": ["payloadTemplate", "oAuthClientId", "id", "triggers", "subscriberUrl", "active"] + }, + "OAuthClientWebhookOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/OAuthClientWebhookOutputDto" + } + }, + "required": ["status", "data"] + }, + "OAuthClientWebhooksOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OAuthClientWebhookOutputDto" + } + } + }, + "required": ["status", "data"] + }, + "DestinationCalendarsInputBodyDto": { + "type": "object", + "properties": { + "integration": { + "type": "string", + "example": "apple_calendar", + "description": "The calendar service you want to integrate, as returned by the /calendars endpoint", + "enum": ["apple_calendar", "google_calendar", "office365_calendar"] + }, + "externalId": { + "type": "string", + "example": "https://caldav.icloud.com/26962146906/calendars/1644422A-1945-4438-BBC0-4F0Q23A57R7S/", + "description": "Unique identifier used to represent the specfic calendar, as returned by the /calendars endpoint" + } + }, + "required": ["integration", "externalId"] + }, + "DestinationCalendarsOutputDto": { + "type": "object", + "properties": { + "userId": { + "type": "number" + }, + "integration": { + "type": "string" + }, + "externalId": { + "type": "string" + }, + "credentialId": { + "type": "number", + "nullable": true + } + }, + "required": ["userId", "integration", "externalId", "credentialId"] + }, + "DestinationCalendarsOutputResponseDto": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "success", + "enum": ["success", "error"] + }, + "data": { + "$ref": "#/components/schemas/DestinationCalendarsOutputDto" + } + }, + "required": ["status", "data"] + } + } + } +} diff --git a/docs/api-reference/v2/v1-v2-differences.mdx b/docs/api-reference/v2/v1-v2-differences.mdx new file mode 100644 index 0000000000..07bc0b6025 --- /dev/null +++ b/docs/api-reference/v2/v1-v2-differences.mdx @@ -0,0 +1,21 @@ +--- +title: "Differences between v1 and v2" +--- + +## API Versions +We offer two versions of our API: the legacy version (v1) and the latest v2 version. While both versions are currently available, we highly recommend using the v2 API in all your integrations and applications. + +### Why Use v2? + +The v2 API includes numerous enhancements and new features that are not available in v1. It has been designed to be more efficient, secure, and easier to use. v2 reflects our commitment to providing the best possible developer experience and ensuring that your applications can take advantage of the latest advancements in our platform. + +### Key Differences + +- **Performance Improvements**: v2 has been optimized for better performance and scalability. +- **User friendly response objects**: In v2 we have focused heavily on improving the response object for a better User Experience. +- **Enhanced Security**: v2 includes improved security measures to protect your data. +- **Platform product**: Our new Platform product was built entirely on v2. + +We are committed to supporting our community during this transition. If you have any questions or need assistance with migrating to the v2 API, please contact our support team. + +Thank you for your understanding and cooperation. diff --git a/docs/essentials/code.mdx b/docs/essentials/code.mdx new file mode 100644 index 0000000000..d2a462a7a2 --- /dev/null +++ b/docs/essentials/code.mdx @@ -0,0 +1,37 @@ +--- +title: 'Code Blocks' +description: 'Display inline code and code blocks' +icon: 'code' +--- + +## Basic + +### Inline Code + +To denote a `word` or `phrase` as code, enclose it in backticks (`). + +``` +To denote a `word` or `phrase` as code, enclose it in backticks (`). +``` + +### Code Block + +Use [fenced code blocks](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks) by enclosing code in three backticks and follow the leading ticks with the programming language of your snippet to get syntax highlighting. Optionally, you can also write the name of your code after the programming language. + +```java HelloWorld.java +class HelloWorld { + public static void main(String[] args) { + System.out.println("Hello, World!"); + } +} +``` + +````md +```java HelloWorld.java +class HelloWorld { + public static void main(String[] args) { + System.out.println("Hello, World!"); + } +} +``` +```` diff --git a/docs/essentials/images.mdx b/docs/essentials/images.mdx new file mode 100644 index 0000000000..60ad42d38b --- /dev/null +++ b/docs/essentials/images.mdx @@ -0,0 +1,59 @@ +--- +title: 'Images and Embeds' +description: 'Add image, video, and other HTML elements' +icon: 'image' +--- + + + +## Image + +### Using Markdown + +The [markdown syntax](https://www.markdownguide.org/basic-syntax/#images) lets you add images using the following code + +```md +![title](/path/image.jpg) +``` + +Note that the image file size must be less than 5MB. Otherwise, we recommend hosting on a service like [Cloudinary](https://cloudinary.com/) or [S3](https://aws.amazon.com/s3/). You can then use that URL and embed. + +### Using Embeds + +To get more customizability with images, you can also use [embeds](/writing-content/embed) to add images + +```html + +``` + +## Embeds and HTML elements + + + +
+ + + +Mintlify supports [HTML tags in Markdown](https://www.markdownguide.org/basic-syntax/#html). This is helpful if you prefer HTML tags to Markdown syntax, and lets you create documentation with infinite flexibility. + + + +### iFrames + +Loads another HTML page within the document. Most commonly used for embedding videos. + +```html + +``` diff --git a/docs/essentials/markdown.mdx b/docs/essentials/markdown.mdx new file mode 100644 index 0000000000..c8ad9c1f3d --- /dev/null +++ b/docs/essentials/markdown.mdx @@ -0,0 +1,88 @@ +--- +title: 'Markdown Syntax' +description: 'Text, title, and styling in standard markdown' +icon: 'text-size' +--- + +## Titles + +Best used for section headers. + +```md +## Titles +``` + +### Subtitles + +Best use to subsection headers. + +```md +### Subtitles +``` + + + +Each **title** and **subtitle** creates an anchor and also shows up on the table of contents on the right. + + + +## Text Formatting + +We support most markdown formatting. Simply add `**`, `_`, or `~` around text to format it. + +| Style | How to write it | Result | +| ------------- | ----------------- | --------------- | +| Bold | `**bold**` | **bold** | +| Italic | `_italic_` | _italic_ | +| Strikethrough | `~strikethrough~` | ~strikethrough~ | + +You can combine these. For example, write `**_bold and italic_**` to get **_bold and italic_** text. + +You need to use HTML to write superscript and subscript text. That is, add `` or `` around your text. + +| Text Size | How to write it | Result | +| ----------- | ------------------------ | ---------------------- | +| Superscript | `superscript` | superscript | +| Subscript | `subscript` | subscript | + +## Linking to Pages + +You can add a link by wrapping text in `[]()`. You would write `[link to google](https://google.com)` to [link to google](https://google.com). + +Links to pages in your docs need to be root-relative. Basically, you should include the entire folder path. For example, `[link to text](/writing-content/text)` links to the page "Text" in our components section. + +Relative links like `[link to text](../text)` will open slower because we cannot optimize them as easily. + +## Blockquotes + +### Singleline + +To create a blockquote, add a `>` in front of a paragraph. + +> Dorothy followed her through many of the beautiful rooms in her castle. + +```md +> Dorothy followed her through many of the beautiful rooms in her castle. +``` + +### Multiline + +> Dorothy followed her through many of the beautiful rooms in her castle. +> +> The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood. + +```md +> Dorothy followed her through many of the beautiful rooms in her castle. +> +> The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood. +``` + +### LaTeX + +Mintlify supports [LaTeX](https://www.latex-project.org) through the Latex component. + +8 x (vk x H1 - H2) = (0,1) + +```md +8 x (vk x H1 - H2) = (0,1) +``` diff --git a/docs/essentials/navigation.mdx b/docs/essentials/navigation.mdx new file mode 100644 index 0000000000..ca44bb6452 --- /dev/null +++ b/docs/essentials/navigation.mdx @@ -0,0 +1,66 @@ +--- +title: 'Navigation' +description: 'The navigation field in mint.json defines the pages that go in the navigation menu' +icon: 'map' +--- + +The navigation menu is the list of links on every website. + +You will likely update `mint.json` every time you add a new page. Pages do not show up automatically. + +## Navigation syntax + +Our navigation syntax is recursive which means you can make nested navigation groups. You don't need to include `.mdx` in page names. + + + +```json Regular Navigation +"navigation": [ + { + "group": "Getting Started", + "pages": ["quickstart"] + } +] +``` + +```json Nested Navigation +"navigation": [ + { + "group": "Getting Started", + "pages": [ + "quickstart", + { + "group": "Nested Reference Pages", + "pages": ["nested-reference-page"] + } + ] + } +] +``` + + + +## Folders + +Simply put your MDX files in folders and update the paths in `mint.json`. + +For example, to have a page at `https://yoursite.com/your-folder/your-page` you would make a folder called `your-folder` containing an MDX file called `your-page.mdx`. + + + +You cannot use `api` for the name of a folder unless you nest it inside another folder. Mintlify uses Next.js which reserves the top-level `api` folder for internal server calls. A folder name such as `api-reference` would be accepted. + + + +```json Navigation With Folder +"navigation": [ + { + "group": "Group Name", + "pages": ["your-folder/your-page"] + } +] +``` + +## Hidden Pages + +MDX files not included in `mint.json` will not show up in the sidebar but are accessible through the search bar and by linking directly to them. diff --git a/docs/essentials/reusable-snippets.mdx b/docs/essentials/reusable-snippets.mdx new file mode 100644 index 0000000000..a0a55297ab --- /dev/null +++ b/docs/essentials/reusable-snippets.mdx @@ -0,0 +1,110 @@ +--- +title: Reusable Snippets +description: Reusable, custom snippets to keep content in sync +icon: 'recycle' +--- + +import SnippetIntro from '/snippets/snippet-intro.mdx'; + + + +## Creating a custom snippet + +**Pre-condition**: You must create your snippet file in the `snippets` directory. + + + Any page in the `snippets` directory will be treated as a snippet and will not + be rendered into a standalone page. If you want to create a standalone page + from the snippet, import the snippet into another file and call it as a + component. + + +### Default export + +1. Add content to your snippet file that you want to re-use across multiple + locations. Optionally, you can add variables that can be filled in via props + when you import the snippet. + +```mdx snippets/my-snippet.mdx +Hello world! This is my content I want to reuse across pages. My keyword of the +day is {word}. +``` + + + The content that you want to reuse must be inside the `snippets` directory in + order for the import to work. + + +2. Import the snippet into your destination file. + +```mdx destination-file.mdx +--- +title: My title +description: My Description +--- + +import MySnippet from '/snippets/path/to/my-snippet.mdx'; + +## Header + +Lorem impsum dolor sit amet. + + +``` + +### Reusable variables + +1. Export a variable from your snippet file: + +```mdx snippets/path/to/custom-variables.mdx +export const myName = 'my name'; + +export const myObject = { fruit: 'strawberries' }; +``` + +2. Import the snippet from your destination file and use the variable: + +```mdx destination-file.mdx +--- +title: My title +description: My Description +--- + +import { myName, myObject } from '/snippets/path/to/custom-variables.mdx'; + +Hello, my name is {myName} and I like {myObject.fruit}. +``` + +### Reusable components + +1. Inside your snippet file, create a component that takes in props by exporting + your component in the form of an arrow function. + +```mdx snippets/custom-component.mdx +export const MyComponent = ({ title }) => ( +
+

{title}

+

... snippet content ...

+
+); +``` + + + MDX does not compile inside the body of an arrow function. Stick to HTML + syntax when you can or use a default export if you need to use MDX. + + +2. Import the snippet into your destination file and pass in the props + +```mdx destination-file.mdx +--- +title: My title +description: My Description +--- + +import { MyComponent } from '/snippets/custom-component.mdx'; + +Lorem ipsum dolor sit amet. + + +``` diff --git a/docs/essentials/settings.mdx b/docs/essentials/settings.mdx new file mode 100644 index 0000000000..d9dd2d7e1d --- /dev/null +++ b/docs/essentials/settings.mdx @@ -0,0 +1,318 @@ +--- +title: 'Global Settings' +description: 'Mintlify gives you complete control over the look and feel of your documentation using the mint.json file' +icon: 'gear' +--- + +Every Mintlify site needs a `mint.json` file with the core configuration settings. Learn more about the [properties](#properties) below. + +## Properties + + +Name of your project. Used for the global title. + +Example: `mintlify` + + + + + An array of groups with all the pages within that group + + + The name of the group. + + Example: `Settings` + + + + The relative paths to the markdown files that will serve as pages. + + Example: `["customization", "page"]` + + + + + + + + Path to logo image or object with path to "light" and "dark" mode logo images + + + Path to the logo in light mode + + + Path to the logo in dark mode + + + Where clicking on the logo links you to + + + + + + Path to the favicon image + + + + Hex color codes for your global theme + + + The primary color. Used for most often for highlighted content, section + headers, accents, in light mode + + + The primary color for dark mode. Used for most often for highlighted + content, section headers, accents, in dark mode + + + The primary color for important buttons + + + The color of the background in both light and dark mode + + + The hex color code of the background in light mode + + + The hex color code of the background in dark mode + + + + + + + + Array of `name`s and `url`s of links you want to include in the topbar + + + The name of the button. + + Example: `Contact us` + + + The url once you click on the button. Example: `https://mintlify.com/contact` + + + + + + + + + Link shows a button. GitHub shows the repo information at the url provided including the number of GitHub stars. + + + If `link`: What the button links to. + + If `github`: Link to the repository to load GitHub information from. + + + Text inside the button. Only required if `type` is a `link`. + + + + + + + Array of version names. Only use this if you want to show different versions + of docs with a dropdown in the navigation bar. + + + + An array of the anchors, includes the `icon`, `color`, and `url`. + + + The [Font Awesome](https://fontawesome.com/search?s=brands%2Cduotone) icon used to feature the anchor. + + Example: `comments` + + + The name of the anchor label. + + Example: `Community` + + + The start of the URL that marks what pages go in the anchor. Generally, this is the name of the folder you put your pages in. + + + The hex color of the anchor icon background. Can also be a gradient if you pass an object with the properties `from` and `to` that are each a hex color. + + + Used if you want to hide an anchor until the correct docs version is selected. + + + Pass `true` if you want to hide the anchor until you directly link someone to docs inside it. + + + One of: "brands", "duotone", "light", "sharp-solid", "solid", or "thin" + + + + + + + Override the default configurations for the top-most anchor. + + + The name of the top-most anchor + + + Font Awesome icon. + + + One of: "brands", "duotone", "light", "sharp-solid", "solid", or "thin" + + + + + + An array of navigational tabs. + + + The name of the tab label. + + + The start of the URL that marks what pages go in the tab. Generally, this + is the name of the folder you put your pages in. + + + + + + Configuration for API settings. Learn more about API pages at [API Components](/api-playground/demo). + + + The base url for all API endpoints. If `baseUrl` is an array, it will enable for multiple base url + options that the user can toggle. + + + + + + The authentication strategy used for all API endpoints. + + + The name of the authentication parameter used in the API playground. + + If method is `basic`, the format should be `[usernameName]:[passwordName]` + + + The default value that's designed to be a prefix for the authentication input field. + + E.g. If an `inputPrefix` of `AuthKey` would inherit the default input result of the authentication field as `AuthKey`. + + + + + + Configurations for the API playground + + + + Whether the playground is showing, hidden, or only displaying the endpoint with no added user interactivity `simple` + + Learn more at the [playground guides](/api-playground/demo) + + + + + + Enabling this flag ensures that key ordering in OpenAPI pages matches the key ordering defined in the OpenAPI file. + + This behavior will soon be enabled by default, at which point this field will be deprecated. + + + + + + + A string or an array of strings of URL(s) or relative path(s) pointing to your + OpenAPI file. + + Examples: + + ```json Absolute + "openapi": "https://example.com/openapi.json" + ``` + ```json Relative + "openapi": "/openapi.json" + ``` + ```json Multiple + "openapi": ["https://example.com/openapi1.json", "/openapi2.json", "/openapi3.json"] + ``` + + + + + + An object of social media accounts where the key:property pair represents the social media platform and the account url. + + Example: + ```json + { + "x": "https://x.com/mintlify", + "website": "https://mintlify.com" + } + ``` + + + One of the following values `website`, `facebook`, `x`, `discord`, `slack`, `github`, `linkedin`, `instagram`, `hacker-news` + + Example: `x` + + + The URL to the social platform. + + Example: `https://x.com/mintlify` + + + + + + Configurations to enable feedback buttons + + + + Enables a button to allow users to suggest edits via pull requests + + + Enables a button to allow users to raise an issue about the documentation + + + + + + Customize the dark mode toggle. + + + Set if you always want to show light or dark mode for new users. When not + set, we default to the same mode as the user's operating system. + + + Set to true to hide the dark/light mode toggle. You can combine `isHidden` with `default` to force your docs to only use light or dark mode. For example: + + + ```json Only Dark Mode + "modeToggle": { + "default": "dark", + "isHidden": true + } + ``` + + ```json Only Light Mode + "modeToggle": { + "default": "light", + "isHidden": true + } + ``` + + + + + + + + + A background image to be displayed behind every page. See example with + [Infisical](https://infisical.com/docs) and [FRPC](https://frpc.io). + diff --git a/docs/favicon-32x32.png b/docs/favicon-32x32.png new file mode 100644 index 0000000000..5846956222 Binary files /dev/null and b/docs/favicon-32x32.png differ diff --git a/docs/favicon.svg b/docs/favicon.svg new file mode 100644 index 0000000000..6a3233265c --- /dev/null +++ b/docs/favicon.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/images/1667924409-dynamic-workflows_puiikg.svg b/docs/images/1667924409-dynamic-workflows_puiikg.svg new file mode 100644 index 0000000000..f97a5c9250 --- /dev/null +++ b/docs/images/1667924409-dynamic-workflows_puiikg.svg @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/images/Cal.com_pfasr5.svg b/docs/images/Cal.com_pfasr5.svg new file mode 100644 index 0000000000..d7151426b4 --- /dev/null +++ b/docs/images/Cal.com_pfasr5.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/docs/images/Platform_banner.png b/docs/images/Platform_banner.png new file mode 100644 index 0000000000..bf1c959612 Binary files /dev/null and b/docs/images/Platform_banner.png differ diff --git a/docs/images/Recording_2022-12-16_at_18.37.54_ldf2el.gif b/docs/images/Recording_2022-12-16_at_18.37.54_ldf2el.gif new file mode 100644 index 0000000000..9399337f72 Binary files /dev/null and b/docs/images/Recording_2022-12-16_at_18.37.54_ldf2el.gif differ diff --git a/docs/images/apple_calendar_atom.png b/docs/images/apple_calendar_atom.png new file mode 100644 index 0000000000..7677ff2992 Binary files /dev/null and b/docs/images/apple_calendar_atom.png differ diff --git a/docs/images/apple_calendar_modal.png b/docs/images/apple_calendar_modal.png new file mode 100644 index 0000000000..ea011006fc Binary files /dev/null and b/docs/images/apple_calendar_modal.png differ diff --git a/docs/images/availabilities.png b/docs/images/availabilities.png new file mode 100644 index 0000000000..4de3ecc2cc Binary files /dev/null and b/docs/images/availabilities.png differ diff --git a/docs/images/availability_settings.png b/docs/images/availability_settings.png new file mode 100644 index 0000000000..b692c6ad0f Binary files /dev/null and b/docs/images/availability_settings.png differ diff --git a/docs/images/availability_settings_atom.png b/docs/images/availability_settings_atom.png new file mode 100644 index 0000000000..daaa621573 Binary files /dev/null and b/docs/images/availability_settings_atom.png differ diff --git a/docs/images/book-with-cal-dark_osayta.svg b/docs/images/book-with-cal-dark_osayta.svg new file mode 100644 index 0000000000..de292ac12c --- /dev/null +++ b/docs/images/book-with-cal-dark_osayta.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/images/book-with-cal-light_kqtoky.svg b/docs/images/book-with-cal-light_kqtoky.svg new file mode 100644 index 0000000000..768a23ecd4 --- /dev/null +++ b/docs/images/book-with-cal-light_kqtoky.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/images/booker.png b/docs/images/booker.png new file mode 100644 index 0000000000..f6a705facc Binary files /dev/null and b/docs/images/booker.png differ diff --git a/docs/images/booker_atom.png b/docs/images/booker_atom.png new file mode 100644 index 0000000000..614ead3aeb Binary files /dev/null and b/docs/images/booker_atom.png differ diff --git a/docs/images/booking-page.png b/docs/images/booking-page.png new file mode 100644 index 0000000000..c3bb1aead6 Binary files /dev/null and b/docs/images/booking-page.png differ diff --git a/docs/images/calendar_settings_atom.png b/docs/images/calendar_settings_atom.png new file mode 100644 index 0000000000..6f7d44caf0 Binary files /dev/null and b/docs/images/calendar_settings_atom.png differ diff --git a/docs/images/checks-passed.png b/docs/images/checks-passed.png new file mode 100644 index 0000000000..3303c77364 Binary files /dev/null and b/docs/images/checks-passed.png differ diff --git a/docs/images/date_overrides.png b/docs/images/date_overrides.png new file mode 100644 index 0000000000..fb08460524 Binary files /dev/null and b/docs/images/date_overrides.png differ diff --git a/docs/images/date_overrides_added.png b/docs/images/date_overrides_added.png new file mode 100644 index 0000000000..f14dbf2dfc Binary files /dev/null and b/docs/images/date_overrides_added.png differ diff --git a/docs/images/date_overrides_modal.png b/docs/images/date_overrides_modal.png new file mode 100644 index 0000000000..02854ffbf8 Binary files /dev/null and b/docs/images/date_overrides_modal.png differ diff --git a/docs/images/destination_calendar_settings.png b/docs/images/destination_calendar_settings.png new file mode 100644 index 0000000000..eee62f0dc3 Binary files /dev/null and b/docs/images/destination_calendar_settings.png differ diff --git a/docs/images/disable-default-email-1.png b/docs/images/disable-default-email-1.png new file mode 100644 index 0000000000..9a1273b90f Binary files /dev/null and b/docs/images/disable-default-email-1.png differ diff --git a/docs/images/disable-default-email-2.png b/docs/images/disable-default-email-2.png new file mode 100644 index 0000000000..4bd093a825 Binary files /dev/null and b/docs/images/disable-default-email-2.png differ diff --git a/docs/images/disable-default-email-3.png b/docs/images/disable-default-email-3.png new file mode 100644 index 0000000000..fc2f5cffe2 Binary files /dev/null and b/docs/images/disable-default-email-3.png differ diff --git a/docs/images/gcal_atom.png b/docs/images/gcal_atom.png new file mode 100644 index 0000000000..20e04f74fa Binary files /dev/null and b/docs/images/gcal_atom.png differ diff --git a/docs/images/gcal_connect_atom.png b/docs/images/gcal_connect_atom.png new file mode 100644 index 0000000000..5ee9755bfb Binary files /dev/null and b/docs/images/gcal_connect_atom.png differ diff --git a/docs/images/gcal_connect_atom_classname.png b/docs/images/gcal_connect_atom_classname.png new file mode 100644 index 0000000000..f675dbc3f2 Binary files /dev/null and b/docs/images/gcal_connect_atom_classname.png differ diff --git a/docs/images/get_schedule.png b/docs/images/get_schedule.png new file mode 100644 index 0000000000..65de501d3d Binary files /dev/null and b/docs/images/get_schedule.png differ diff --git a/docs/images/hero-dark.svg b/docs/images/hero-dark.svg new file mode 100644 index 0000000000..c6a30e88ba --- /dev/null +++ b/docs/images/hero-dark.svg @@ -0,0 +1,161 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/images/hero-light.svg b/docs/images/hero-light.svg new file mode 100644 index 0000000000..297d68fb9b --- /dev/null +++ b/docs/images/hero-light.svg @@ -0,0 +1,155 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/images/i1144x588-DMzoXoeMhoFx_luyjfk.png b/docs/images/i1144x588-DMzoXoeMhoFx_luyjfk.png new file mode 100644 index 0000000000..8d48b06506 Binary files /dev/null and b/docs/images/i1144x588-DMzoXoeMhoFx_luyjfk.png differ diff --git a/docs/images/i1144x588-pmMgK85oqUKp_o1e6l4.png b/docs/images/i1144x588-pmMgK85oqUKp_o1e6l4.png new file mode 100644 index 0000000000..f9ab73b442 Binary files /dev/null and b/docs/images/i1144x588-pmMgK85oqUKp_o1e6l4.png differ diff --git a/docs/images/i1280x250-dXnl-QuzSMbl_xydd9y.png b/docs/images/i1280x250-dXnl-QuzSMbl_xydd9y.png new file mode 100644 index 0000000000..1c0290dfec Binary files /dev/null and b/docs/images/i1280x250-dXnl-QuzSMbl_xydd9y.png differ diff --git a/docs/images/i1436x808-0nKukNzRRdrO_pyvmqa.png b/docs/images/i1436x808-0nKukNzRRdrO_pyvmqa.png new file mode 100644 index 0000000000..7f9e2b335f Binary files /dev/null and b/docs/images/i1436x808-0nKukNzRRdrO_pyvmqa.png differ diff --git a/docs/images/i1440x865-EzE4OB5J-IE0_aqui8e.png b/docs/images/i1440x865-EzE4OB5J-IE0_aqui8e.png new file mode 100644 index 0000000000..7206005bdf Binary files /dev/null and b/docs/images/i1440x865-EzE4OB5J-IE0_aqui8e.png differ diff --git a/docs/images/i1440x865-O6cdyRL2PjhC_ekdzts.png b/docs/images/i1440x865-O6cdyRL2PjhC_ekdzts.png new file mode 100644 index 0000000000..ff96b0b87f Binary files /dev/null and b/docs/images/i1440x865-O6cdyRL2PjhC_ekdzts.png differ diff --git a/docs/images/i1440x865-OGEnJZJWYYaT_vlbcoc.png b/docs/images/i1440x865-OGEnJZJWYYaT_vlbcoc.png new file mode 100644 index 0000000000..7e0c28d062 Binary files /dev/null and b/docs/images/i1440x865-OGEnJZJWYYaT_vlbcoc.png differ diff --git a/docs/images/i1440x865-uHGxkJQLhcQJ_gesom1.png b/docs/images/i1440x865-uHGxkJQLhcQJ_gesom1.png new file mode 100644 index 0000000000..5237082d3d Binary files /dev/null and b/docs/images/i1440x865-uHGxkJQLhcQJ_gesom1.png differ diff --git a/docs/images/i1440x865-wCPoQ4wsQacm_mp8gzw.png b/docs/images/i1440x865-wCPoQ4wsQacm_mp8gzw.png new file mode 100644 index 0000000000..90cb015efd Binary files /dev/null and b/docs/images/i1440x865-wCPoQ4wsQacm_mp8gzw.png differ diff --git a/docs/images/i1440x910-pNoAmSPnktzZ_ecaypm.png b/docs/images/i1440x910-pNoAmSPnktzZ_ecaypm.png new file mode 100644 index 0000000000..c62f57bbf5 Binary files /dev/null and b/docs/images/i1440x910-pNoAmSPnktzZ_ecaypm.png differ diff --git a/docs/images/i1599x807-x2DRUUT-DkbF_yljih9.png b/docs/images/i1599x807-x2DRUUT-DkbF_yljih9.png new file mode 100644 index 0000000000..52996633e3 Binary files /dev/null and b/docs/images/i1599x807-x2DRUUT-DkbF_yljih9.png differ diff --git a/docs/images/i1599x929-tUttNKwBum0Z_p1vwkt.png b/docs/images/i1599x929-tUttNKwBum0Z_p1vwkt.png new file mode 100644 index 0000000000..9cdc4fc3b3 Binary files /dev/null and b/docs/images/i1599x929-tUttNKwBum0Z_p1vwkt.png differ diff --git a/docs/images/i1600x1076-4DSndgM6Yyvv_gxmy7w.png b/docs/images/i1600x1076-4DSndgM6Yyvv_gxmy7w.png new file mode 100644 index 0000000000..292d80d843 Binary files /dev/null and b/docs/images/i1600x1076-4DSndgM6Yyvv_gxmy7w.png differ diff --git a/docs/images/i1600x1161-lj8HI2WajBon_ppgcoi.png b/docs/images/i1600x1161-lj8HI2WajBon_ppgcoi.png new file mode 100644 index 0000000000..b09374a646 Binary files /dev/null and b/docs/images/i1600x1161-lj8HI2WajBon_ppgcoi.png differ diff --git a/docs/images/i1600x120-WfEdMhsOOLSg_sitk6a.png b/docs/images/i1600x120-WfEdMhsOOLSg_sitk6a.png new file mode 100644 index 0000000000..8009bff930 Binary files /dev/null and b/docs/images/i1600x120-WfEdMhsOOLSg_sitk6a.png differ diff --git a/docs/images/i1600x1253-8BQ3KGqrqGTp_xrhqzd.png b/docs/images/i1600x1253-8BQ3KGqrqGTp_xrhqzd.png new file mode 100644 index 0000000000..0b2dc1d4ec Binary files /dev/null and b/docs/images/i1600x1253-8BQ3KGqrqGTp_xrhqzd.png differ diff --git a/docs/images/i1600x1287-XKGU-PMvAkrB_zq004d.png b/docs/images/i1600x1287-XKGU-PMvAkrB_zq004d.png new file mode 100644 index 0000000000..39ba06565e Binary files /dev/null and b/docs/images/i1600x1287-XKGU-PMvAkrB_zq004d.png differ diff --git a/docs/images/i1600x141-u3PhP4xiRb84_qgagos.png b/docs/images/i1600x141-u3PhP4xiRb84_qgagos.png new file mode 100644 index 0000000000..47c913735e Binary files /dev/null and b/docs/images/i1600x141-u3PhP4xiRb84_qgagos.png differ diff --git a/docs/images/i1600x380-Exh1QWe7r2We_olub0g.png b/docs/images/i1600x380-Exh1QWe7r2We_olub0g.png new file mode 100644 index 0000000000..137ad87d87 Binary files /dev/null and b/docs/images/i1600x380-Exh1QWe7r2We_olub0g.png differ diff --git a/docs/images/i1600x600-Bt00AJE4uNcL_hiqcp9.png b/docs/images/i1600x600-Bt00AJE4uNcL_hiqcp9.png new file mode 100644 index 0000000000..748ba09334 Binary files /dev/null and b/docs/images/i1600x600-Bt00AJE4uNcL_hiqcp9.png differ diff --git a/docs/images/i1600x600-Z8AAymlAKVce_i4nxdb.png b/docs/images/i1600x600-Z8AAymlAKVce_i4nxdb.png new file mode 100644 index 0000000000..adbfe1526d Binary files /dev/null and b/docs/images/i1600x600-Z8AAymlAKVce_i4nxdb.png differ diff --git a/docs/images/i1600x784-4szl8RRLxFIG_rvkfwz.png b/docs/images/i1600x784-4szl8RRLxFIG_rvkfwz.png new file mode 100644 index 0000000000..63db40cfc2 Binary files /dev/null and b/docs/images/i1600x784-4szl8RRLxFIG_rvkfwz.png differ diff --git a/docs/images/i1600x784-tETfwb4pQED0_hddfvi.png b/docs/images/i1600x784-tETfwb4pQED0_hddfvi.png new file mode 100644 index 0000000000..d457be6987 Binary files /dev/null and b/docs/images/i1600x784-tETfwb4pQED0_hddfvi.png differ diff --git a/docs/images/i1600x813-fFKsveiL2GuM_wk8cv1.png b/docs/images/i1600x813-fFKsveiL2GuM_wk8cv1.png new file mode 100644 index 0000000000..a2b4daadbd Binary files /dev/null and b/docs/images/i1600x813-fFKsveiL2GuM_wk8cv1.png differ diff --git a/docs/images/i1600x899--qO8QnRKDrjU_kyp2hw.png b/docs/images/i1600x899--qO8QnRKDrjU_kyp2hw.png new file mode 100644 index 0000000000..f3493b7740 Binary files /dev/null and b/docs/images/i1600x899--qO8QnRKDrjU_kyp2hw.png differ diff --git a/docs/images/i1600x899-0PXSUpvs2z-W_wox48k.png b/docs/images/i1600x899-0PXSUpvs2z-W_wox48k.png new file mode 100644 index 0000000000..da3c2bc7de Binary files /dev/null and b/docs/images/i1600x899-0PXSUpvs2z-W_wox48k.png differ diff --git a/docs/images/i1600x899-2GVNR4Q0fjRI_smxuoj.png b/docs/images/i1600x899-2GVNR4Q0fjRI_smxuoj.png new file mode 100644 index 0000000000..5a34e46454 Binary files /dev/null and b/docs/images/i1600x899-2GVNR4Q0fjRI_smxuoj.png differ diff --git a/docs/images/i1600x899-55XOS7BonfK3_bh1e5t.png b/docs/images/i1600x899-55XOS7BonfK3_bh1e5t.png new file mode 100644 index 0000000000..6b57c187da Binary files /dev/null and b/docs/images/i1600x899-55XOS7BonfK3_bh1e5t.png differ diff --git a/docs/images/i1600x899-AlmOt5E4diMC_nkjeb4.png b/docs/images/i1600x899-AlmOt5E4diMC_nkjeb4.png new file mode 100644 index 0000000000..8f9bd5530d Binary files /dev/null and b/docs/images/i1600x899-AlmOt5E4diMC_nkjeb4.png differ diff --git a/docs/images/i1600x899-C7et3rTz2nGC_zkie4g.png b/docs/images/i1600x899-C7et3rTz2nGC_zkie4g.png new file mode 100644 index 0000000000..7c499aeeb6 Binary files /dev/null and b/docs/images/i1600x899-C7et3rTz2nGC_zkie4g.png differ diff --git a/docs/images/i1600x899-DllqhV6w_3Vj_oxtjov.png b/docs/images/i1600x899-DllqhV6w_3Vj_oxtjov.png new file mode 100644 index 0000000000..10cf202cf7 Binary files /dev/null and b/docs/images/i1600x899-DllqhV6w_3Vj_oxtjov.png differ diff --git a/docs/images/i1600x899-HIol7m7sT4zB_lqidld.png b/docs/images/i1600x899-HIol7m7sT4zB_lqidld.png new file mode 100644 index 0000000000..2759d6d116 Binary files /dev/null and b/docs/images/i1600x899-HIol7m7sT4zB_lqidld.png differ diff --git a/docs/images/i1600x899-KJO6snZjx1mL_pdfq1l.png b/docs/images/i1600x899-KJO6snZjx1mL_pdfq1l.png new file mode 100644 index 0000000000..4d6e20f2b5 Binary files /dev/null and b/docs/images/i1600x899-KJO6snZjx1mL_pdfq1l.png differ diff --git a/docs/images/i1600x899-NNeD2mH2_Zb6_mxmah8.png b/docs/images/i1600x899-NNeD2mH2_Zb6_mxmah8.png new file mode 100644 index 0000000000..a55f393c74 Binary files /dev/null and b/docs/images/i1600x899-NNeD2mH2_Zb6_mxmah8.png differ diff --git a/docs/images/i1600x899-RzQm726OebFh_pej5va.png b/docs/images/i1600x899-RzQm726OebFh_pej5va.png new file mode 100644 index 0000000000..e4e133a420 Binary files /dev/null and b/docs/images/i1600x899-RzQm726OebFh_pej5va.png differ diff --git a/docs/images/i1600x899-Ty_oorQmXnjJ_cm5ysq.png b/docs/images/i1600x899-Ty_oorQmXnjJ_cm5ysq.png new file mode 100644 index 0000000000..f512db173b Binary files /dev/null and b/docs/images/i1600x899-Ty_oorQmXnjJ_cm5ysq.png differ diff --git a/docs/images/i1600x899-UbaoT5R8c9Dq_st91js.png b/docs/images/i1600x899-UbaoT5R8c9Dq_st91js.png new file mode 100644 index 0000000000..964fe0fc84 Binary files /dev/null and b/docs/images/i1600x899-UbaoT5R8c9Dq_st91js.png differ diff --git a/docs/images/i1600x899-e_I3OOSl6l2B_zphipk.png b/docs/images/i1600x899-e_I3OOSl6l2B_zphipk.png new file mode 100644 index 0000000000..ee9965aeb5 Binary files /dev/null and b/docs/images/i1600x899-e_I3OOSl6l2B_zphipk.png differ diff --git a/docs/images/i1600x899-ft-Tc1-rtnzD_nijrmb.png b/docs/images/i1600x899-ft-Tc1-rtnzD_nijrmb.png new file mode 100644 index 0000000000..77d54f255d Binary files /dev/null and b/docs/images/i1600x899-ft-Tc1-rtnzD_nijrmb.png differ diff --git a/docs/images/i1600x899-hfWqQvPszL3z_klomel.png b/docs/images/i1600x899-hfWqQvPszL3z_klomel.png new file mode 100644 index 0000000000..e625f15b25 Binary files /dev/null and b/docs/images/i1600x899-hfWqQvPszL3z_klomel.png differ diff --git a/docs/images/i1600x899-j1Js2xXV665U_gkxhvi.png b/docs/images/i1600x899-j1Js2xXV665U_gkxhvi.png new file mode 100644 index 0000000000..6ad809ebc7 Binary files /dev/null and b/docs/images/i1600x899-j1Js2xXV665U_gkxhvi.png differ diff --git a/docs/images/i1600x899-jFm4d0m-YSZS_gxjbj9.png b/docs/images/i1600x899-jFm4d0m-YSZS_gxjbj9.png new file mode 100644 index 0000000000..c347fc1af0 Binary files /dev/null and b/docs/images/i1600x899-jFm4d0m-YSZS_gxjbj9.png differ diff --git a/docs/images/i1600x899-lK5qA-PWor5w_nda2mw.png b/docs/images/i1600x899-lK5qA-PWor5w_nda2mw.png new file mode 100644 index 0000000000..987768bd0c Binary files /dev/null and b/docs/images/i1600x899-lK5qA-PWor5w_nda2mw.png differ diff --git a/docs/images/i1600x899-mIkRTG3JZGA-_t2q4de.png b/docs/images/i1600x899-mIkRTG3JZGA-_t2q4de.png new file mode 100644 index 0000000000..6694f24e6a Binary files /dev/null and b/docs/images/i1600x899-mIkRTG3JZGA-_t2q4de.png differ diff --git a/docs/images/i1600x899-oXaqBFnOdR-p_kvdzt6.png b/docs/images/i1600x899-oXaqBFnOdR-p_kvdzt6.png new file mode 100644 index 0000000000..1181112572 Binary files /dev/null and b/docs/images/i1600x899-oXaqBFnOdR-p_kvdzt6.png differ diff --git a/docs/images/i1600x899-sGCDXGlvVYT4_uwhpa8.png b/docs/images/i1600x899-sGCDXGlvVYT4_uwhpa8.png new file mode 100644 index 0000000000..25f0a55d2e Binary files /dev/null and b/docs/images/i1600x899-sGCDXGlvVYT4_uwhpa8.png differ diff --git a/docs/images/i1600x899-tqxx1R_u8ZX8_pmcadu.png b/docs/images/i1600x899-tqxx1R_u8ZX8_pmcadu.png new file mode 100644 index 0000000000..1e4bef0ef4 Binary files /dev/null and b/docs/images/i1600x899-tqxx1R_u8ZX8_pmcadu.png differ diff --git a/docs/images/i1600x899-wVkiblWj8CDH_iwhwrd.png b/docs/images/i1600x899-wVkiblWj8CDH_iwhwrd.png new file mode 100644 index 0000000000..885e43ea2d Binary files /dev/null and b/docs/images/i1600x899-wVkiblWj8CDH_iwhwrd.png differ diff --git a/docs/images/i1600x899-yn-lgJSvElO2_hxc61t.png b/docs/images/i1600x899-yn-lgJSvElO2_hxc61t.png new file mode 100644 index 0000000000..d034538ee4 Binary files /dev/null and b/docs/images/i1600x899-yn-lgJSvElO2_hxc61t.png differ diff --git a/docs/images/i1600x900--1flu1Jm22OG_agrtll.png b/docs/images/i1600x900--1flu1Jm22OG_agrtll.png new file mode 100644 index 0000000000..ddca3585be Binary files /dev/null and b/docs/images/i1600x900--1flu1Jm22OG_agrtll.png differ diff --git a/docs/images/i1600x900--3fBUUG0u9EU_rnylaj.png b/docs/images/i1600x900--3fBUUG0u9EU_rnylaj.png new file mode 100644 index 0000000000..b2f823634e Binary files /dev/null and b/docs/images/i1600x900--3fBUUG0u9EU_rnylaj.png differ diff --git a/docs/images/i1600x900--EhZhhVDENeT_d5hqpa.png b/docs/images/i1600x900--EhZhhVDENeT_d5hqpa.png new file mode 100644 index 0000000000..9d2722fca6 Binary files /dev/null and b/docs/images/i1600x900--EhZhhVDENeT_d5hqpa.png differ diff --git a/docs/images/i1600x900--rsrw7G9JKrW_d8fm8m.png b/docs/images/i1600x900--rsrw7G9JKrW_d8fm8m.png new file mode 100644 index 0000000000..2f3e9a7ce2 Binary files /dev/null and b/docs/images/i1600x900--rsrw7G9JKrW_d8fm8m.png differ diff --git a/docs/images/i1600x900-0UQQmiszv6Ol_pz3ogv.png b/docs/images/i1600x900-0UQQmiszv6Ol_pz3ogv.png new file mode 100644 index 0000000000..ec5960590c Binary files /dev/null and b/docs/images/i1600x900-0UQQmiszv6Ol_pz3ogv.png differ diff --git a/docs/images/i1600x900-0xbwqaAe_V2R_pumupp.png b/docs/images/i1600x900-0xbwqaAe_V2R_pumupp.png new file mode 100644 index 0000000000..c0e436a760 Binary files /dev/null and b/docs/images/i1600x900-0xbwqaAe_V2R_pumupp.png differ diff --git a/docs/images/i1600x900-18YHphbgt72V_sgiczh.png b/docs/images/i1600x900-18YHphbgt72V_sgiczh.png new file mode 100644 index 0000000000..ac4b399b43 Binary files /dev/null and b/docs/images/i1600x900-18YHphbgt72V_sgiczh.png differ diff --git a/docs/images/i1600x900-2ycOJD9-F10d_qualm1.png b/docs/images/i1600x900-2ycOJD9-F10d_qualm1.png new file mode 100644 index 0000000000..5a156bdaf9 Binary files /dev/null and b/docs/images/i1600x900-2ycOJD9-F10d_qualm1.png differ diff --git a/docs/images/i1600x900-47y0alnT10YZ_fzzmcz.png b/docs/images/i1600x900-47y0alnT10YZ_fzzmcz.png new file mode 100644 index 0000000000..883850cb7b Binary files /dev/null and b/docs/images/i1600x900-47y0alnT10YZ_fzzmcz.png differ diff --git a/docs/images/i1600x900-4QPYQbLxNfhM_h61gn0.png b/docs/images/i1600x900-4QPYQbLxNfhM_h61gn0.png new file mode 100644 index 0000000000..e32e1d1a16 Binary files /dev/null and b/docs/images/i1600x900-4QPYQbLxNfhM_h61gn0.png differ diff --git a/docs/images/i1600x900-4WD80WUzPKcm_gxphaa.png b/docs/images/i1600x900-4WD80WUzPKcm_gxphaa.png new file mode 100644 index 0000000000..5e9c8bf94b Binary files /dev/null and b/docs/images/i1600x900-4WD80WUzPKcm_gxphaa.png differ diff --git a/docs/images/i1600x900-4xL_INEpD40Q_vfxmvv.png b/docs/images/i1600x900-4xL_INEpD40Q_vfxmvv.png new file mode 100644 index 0000000000..bfe5eb1c66 Binary files /dev/null and b/docs/images/i1600x900-4xL_INEpD40Q_vfxmvv.png differ diff --git a/docs/images/i1600x900-5uEMac44YaIi_fqr7ov.png b/docs/images/i1600x900-5uEMac44YaIi_fqr7ov.png new file mode 100644 index 0000000000..3ddbe12562 Binary files /dev/null and b/docs/images/i1600x900-5uEMac44YaIi_fqr7ov.png differ diff --git a/docs/images/i1600x900-6CcRzVIWmCTJ_dnnrqu.png b/docs/images/i1600x900-6CcRzVIWmCTJ_dnnrqu.png new file mode 100644 index 0000000000..8207d9e038 Binary files /dev/null and b/docs/images/i1600x900-6CcRzVIWmCTJ_dnnrqu.png differ diff --git a/docs/images/i1600x900-7Tu-5CT7VJ-n_dqkwhl.png b/docs/images/i1600x900-7Tu-5CT7VJ-n_dqkwhl.png new file mode 100644 index 0000000000..10e0694672 Binary files /dev/null and b/docs/images/i1600x900-7Tu-5CT7VJ-n_dqkwhl.png differ diff --git a/docs/images/i1600x900-8KLW-ewrcf-6_qkibok.png b/docs/images/i1600x900-8KLW-ewrcf-6_qkibok.png new file mode 100644 index 0000000000..336a4a8db3 Binary files /dev/null and b/docs/images/i1600x900-8KLW-ewrcf-6_qkibok.png differ diff --git a/docs/images/i1600x900-8ufcUyCOVwV6_hdudno.png b/docs/images/i1600x900-8ufcUyCOVwV6_hdudno.png new file mode 100644 index 0000000000..84e552b8d3 Binary files /dev/null and b/docs/images/i1600x900-8ufcUyCOVwV6_hdudno.png differ diff --git a/docs/images/i1600x900-APQPQxcN1aZt_m0casf.png b/docs/images/i1600x900-APQPQxcN1aZt_m0casf.png new file mode 100644 index 0000000000..dfe4486b34 Binary files /dev/null and b/docs/images/i1600x900-APQPQxcN1aZt_m0casf.png differ diff --git a/docs/images/i1600x900-BEH3mBiQAI9x_uh9ogi.png b/docs/images/i1600x900-BEH3mBiQAI9x_uh9ogi.png new file mode 100644 index 0000000000..d2939816b8 Binary files /dev/null and b/docs/images/i1600x900-BEH3mBiQAI9x_uh9ogi.png differ diff --git a/docs/images/i1600x900-BHVM1jwFyc0Q_bd5zvm.png b/docs/images/i1600x900-BHVM1jwFyc0Q_bd5zvm.png new file mode 100644 index 0000000000..c91af1bd0c Binary files /dev/null and b/docs/images/i1600x900-BHVM1jwFyc0Q_bd5zvm.png differ diff --git a/docs/images/i1600x900-BLQh5zDyQGTt_uebqir.png b/docs/images/i1600x900-BLQh5zDyQGTt_uebqir.png new file mode 100644 index 0000000000..57e7d1cc8d Binary files /dev/null and b/docs/images/i1600x900-BLQh5zDyQGTt_uebqir.png differ diff --git a/docs/images/i1600x900-BgMltGEPb6Na_ovq8ua.png b/docs/images/i1600x900-BgMltGEPb6Na_ovq8ua.png new file mode 100644 index 0000000000..ecf3168695 Binary files /dev/null and b/docs/images/i1600x900-BgMltGEPb6Na_ovq8ua.png differ diff --git a/docs/images/i1600x900-CYkkzVSEXUuc_epdmrm.png b/docs/images/i1600x900-CYkkzVSEXUuc_epdmrm.png new file mode 100644 index 0000000000..d23951bd17 Binary files /dev/null and b/docs/images/i1600x900-CYkkzVSEXUuc_epdmrm.png differ diff --git a/docs/images/i1600x900-C_UH53xMxD-i_qiunh8.png b/docs/images/i1600x900-C_UH53xMxD-i_qiunh8.png new file mode 100644 index 0000000000..4525070426 Binary files /dev/null and b/docs/images/i1600x900-C_UH53xMxD-i_qiunh8.png differ diff --git a/docs/images/i1600x900-E4RcIPb1_bYp_hcpsya.png b/docs/images/i1600x900-E4RcIPb1_bYp_hcpsya.png new file mode 100644 index 0000000000..fce16c7484 Binary files /dev/null and b/docs/images/i1600x900-E4RcIPb1_bYp_hcpsya.png differ diff --git a/docs/images/i1600x900-FLwHauFSTfJy_hoqypx.png b/docs/images/i1600x900-FLwHauFSTfJy_hoqypx.png new file mode 100644 index 0000000000..eebb5dd2db Binary files /dev/null and b/docs/images/i1600x900-FLwHauFSTfJy_hoqypx.png differ diff --git a/docs/images/i1600x900-GN1NLgrcf5r4_tmhni3.png b/docs/images/i1600x900-GN1NLgrcf5r4_tmhni3.png new file mode 100644 index 0000000000..2872f802e1 Binary files /dev/null and b/docs/images/i1600x900-GN1NLgrcf5r4_tmhni3.png differ diff --git a/docs/images/i1600x900-GsO3fgUZ0Qbl_aguqa8.png b/docs/images/i1600x900-GsO3fgUZ0Qbl_aguqa8.png new file mode 100644 index 0000000000..451c125ed5 Binary files /dev/null and b/docs/images/i1600x900-GsO3fgUZ0Qbl_aguqa8.png differ diff --git a/docs/images/i1600x900-I68apHEG1aUi_r85ufb.png b/docs/images/i1600x900-I68apHEG1aUi_r85ufb.png new file mode 100644 index 0000000000..f2d079b636 Binary files /dev/null and b/docs/images/i1600x900-I68apHEG1aUi_r85ufb.png differ diff --git a/docs/images/i1600x900-IQ6S7Rq9d94T_d5vl8m.png b/docs/images/i1600x900-IQ6S7Rq9d94T_d5vl8m.png new file mode 100644 index 0000000000..aa768f41b0 Binary files /dev/null and b/docs/images/i1600x900-IQ6S7Rq9d94T_d5vl8m.png differ diff --git a/docs/images/i1600x900-IfRWYg8XuCMI_tkwyft.png b/docs/images/i1600x900-IfRWYg8XuCMI_tkwyft.png new file mode 100644 index 0000000000..cb7578f517 Binary files /dev/null and b/docs/images/i1600x900-IfRWYg8XuCMI_tkwyft.png differ diff --git a/docs/images/i1600x900-J5qFBokTBwco_fmjcru.png b/docs/images/i1600x900-J5qFBokTBwco_fmjcru.png new file mode 100644 index 0000000000..aa739c4d50 Binary files /dev/null and b/docs/images/i1600x900-J5qFBokTBwco_fmjcru.png differ diff --git a/docs/images/i1600x900-J9PsGW5M9u6y_ovzalk.png b/docs/images/i1600x900-J9PsGW5M9u6y_ovzalk.png new file mode 100644 index 0000000000..efc20a8da6 Binary files /dev/null and b/docs/images/i1600x900-J9PsGW5M9u6y_ovzalk.png differ diff --git a/docs/images/i1600x900-Jlnk4oK6linw_jectdb.png b/docs/images/i1600x900-Jlnk4oK6linw_jectdb.png new file mode 100644 index 0000000000..c7a965fc5b Binary files /dev/null and b/docs/images/i1600x900-Jlnk4oK6linw_jectdb.png differ diff --git a/docs/images/i1600x900-LOniVJNguQth_oibmdv.png b/docs/images/i1600x900-LOniVJNguQth_oibmdv.png new file mode 100644 index 0000000000..f42e91e20b Binary files /dev/null and b/docs/images/i1600x900-LOniVJNguQth_oibmdv.png differ diff --git a/docs/images/i1600x900-PNSh9u2m_QV2_v80gvk.png b/docs/images/i1600x900-PNSh9u2m_QV2_v80gvk.png new file mode 100644 index 0000000000..70e16e5bd1 Binary files /dev/null and b/docs/images/i1600x900-PNSh9u2m_QV2_v80gvk.png differ diff --git a/docs/images/i1600x900-QbUHBH6KLhJ0_njjln8.png b/docs/images/i1600x900-QbUHBH6KLhJ0_njjln8.png new file mode 100644 index 0000000000..05b7319c81 Binary files /dev/null and b/docs/images/i1600x900-QbUHBH6KLhJ0_njjln8.png differ diff --git a/docs/images/i1600x900-RDSMehJ8vTwZ_zcals5.png b/docs/images/i1600x900-RDSMehJ8vTwZ_zcals5.png new file mode 100644 index 0000000000..b3fcbcdd3e Binary files /dev/null and b/docs/images/i1600x900-RDSMehJ8vTwZ_zcals5.png differ diff --git a/docs/images/i1600x900-RzNl_eQIOUZ7_qmawjw.png b/docs/images/i1600x900-RzNl_eQIOUZ7_qmawjw.png new file mode 100644 index 0000000000..b140b69cd5 Binary files /dev/null and b/docs/images/i1600x900-RzNl_eQIOUZ7_qmawjw.png differ diff --git a/docs/images/i1600x900-SlwW0Q2EHsOA_zu35mw.png b/docs/images/i1600x900-SlwW0Q2EHsOA_zu35mw.png new file mode 100644 index 0000000000..d64791cb0c Binary files /dev/null and b/docs/images/i1600x900-SlwW0Q2EHsOA_zu35mw.png differ diff --git a/docs/images/i1600x900-TOyuB4IVrvj9_ciusy5.png b/docs/images/i1600x900-TOyuB4IVrvj9_ciusy5.png new file mode 100644 index 0000000000..14a2cf4b8b Binary files /dev/null and b/docs/images/i1600x900-TOyuB4IVrvj9_ciusy5.png differ diff --git a/docs/images/i1600x900-TVdNc-x2ILeF_j1yhir.png b/docs/images/i1600x900-TVdNc-x2ILeF_j1yhir.png new file mode 100644 index 0000000000..d769640709 Binary files /dev/null and b/docs/images/i1600x900-TVdNc-x2ILeF_j1yhir.png differ diff --git a/docs/images/i1600x900-TqgDJpBoiR-C_onrwit.png b/docs/images/i1600x900-TqgDJpBoiR-C_onrwit.png new file mode 100644 index 0000000000..80206db687 Binary files /dev/null and b/docs/images/i1600x900-TqgDJpBoiR-C_onrwit.png differ diff --git a/docs/images/i1600x900-UcoZykKljPsG_pftvub.png b/docs/images/i1600x900-UcoZykKljPsG_pftvub.png new file mode 100644 index 0000000000..10db06f1c4 Binary files /dev/null and b/docs/images/i1600x900-UcoZykKljPsG_pftvub.png differ diff --git a/docs/images/i1600x900-V3uoAv_cFR4n_tmadtm.png b/docs/images/i1600x900-V3uoAv_cFR4n_tmadtm.png new file mode 100644 index 0000000000..c75933f62d Binary files /dev/null and b/docs/images/i1600x900-V3uoAv_cFR4n_tmadtm.png differ diff --git a/docs/images/i1600x900-WAFfPUiF_FSM_rsqssy.png b/docs/images/i1600x900-WAFfPUiF_FSM_rsqssy.png new file mode 100644 index 0000000000..72042f54bc Binary files /dev/null and b/docs/images/i1600x900-WAFfPUiF_FSM_rsqssy.png differ diff --git a/docs/images/i1600x900-WWEmqSwAOD4e_zntxhy.png b/docs/images/i1600x900-WWEmqSwAOD4e_zntxhy.png new file mode 100644 index 0000000000..1eb8b178d8 Binary files /dev/null and b/docs/images/i1600x900-WWEmqSwAOD4e_zntxhy.png differ diff --git a/docs/images/i1600x900-WumEaU2paE4q_k8709s.png b/docs/images/i1600x900-WumEaU2paE4q_k8709s.png new file mode 100644 index 0000000000..678507a4b4 Binary files /dev/null and b/docs/images/i1600x900-WumEaU2paE4q_k8709s.png differ diff --git a/docs/images/i1600x900-YhAs1gRVQJwU_wf80pn.png b/docs/images/i1600x900-YhAs1gRVQJwU_wf80pn.png new file mode 100644 index 0000000000..dad5ebea0f Binary files /dev/null and b/docs/images/i1600x900-YhAs1gRVQJwU_wf80pn.png differ diff --git a/docs/images/i1600x900-_HaS0Jg5aZvj_dgdyhl.png b/docs/images/i1600x900-_HaS0Jg5aZvj_dgdyhl.png new file mode 100644 index 0000000000..a67656d9d9 Binary files /dev/null and b/docs/images/i1600x900-_HaS0Jg5aZvj_dgdyhl.png differ diff --git a/docs/images/i1600x900-_e9Av_BR4yzA_qecpmk.png b/docs/images/i1600x900-_e9Av_BR4yzA_qecpmk.png new file mode 100644 index 0000000000..ac3cbecf20 Binary files /dev/null and b/docs/images/i1600x900-_e9Av_BR4yzA_qecpmk.png differ diff --git a/docs/images/i1600x900-akHcmOHfAXkX_g7isuj.png b/docs/images/i1600x900-akHcmOHfAXkX_g7isuj.png new file mode 100644 index 0000000000..153bf62943 Binary files /dev/null and b/docs/images/i1600x900-akHcmOHfAXkX_g7isuj.png differ diff --git a/docs/images/i1600x900-b5emq7AZJs03_cnctxl.png b/docs/images/i1600x900-b5emq7AZJs03_cnctxl.png new file mode 100644 index 0000000000..9445b05f48 Binary files /dev/null and b/docs/images/i1600x900-b5emq7AZJs03_cnctxl.png differ diff --git a/docs/images/i1600x900-borJe29sxBQD_acs2bv.png b/docs/images/i1600x900-borJe29sxBQD_acs2bv.png new file mode 100644 index 0000000000..7d9b563729 Binary files /dev/null and b/docs/images/i1600x900-borJe29sxBQD_acs2bv.png differ diff --git a/docs/images/i1600x900-c6HXJn-S_2Gc_oqfadd.png b/docs/images/i1600x900-c6HXJn-S_2Gc_oqfadd.png new file mode 100644 index 0000000000..88d268b73e Binary files /dev/null and b/docs/images/i1600x900-c6HXJn-S_2Gc_oqfadd.png differ diff --git a/docs/images/i1600x900-e7gzhDg2A7wR_hxib3m.png b/docs/images/i1600x900-e7gzhDg2A7wR_hxib3m.png new file mode 100644 index 0000000000..1e3bb985be Binary files /dev/null and b/docs/images/i1600x900-e7gzhDg2A7wR_hxib3m.png differ diff --git a/docs/images/i1600x900-ezpeqXGnhBPd_b8s0ou.png b/docs/images/i1600x900-ezpeqXGnhBPd_b8s0ou.png new file mode 100644 index 0000000000..1d74754444 Binary files /dev/null and b/docs/images/i1600x900-ezpeqXGnhBPd_b8s0ou.png differ diff --git a/docs/images/i1600x900-h7erbVhGt9X5_uth9oa.png b/docs/images/i1600x900-h7erbVhGt9X5_uth9oa.png new file mode 100644 index 0000000000..5caa624697 Binary files /dev/null and b/docs/images/i1600x900-h7erbVhGt9X5_uth9oa.png differ diff --git a/docs/images/i1600x900-hFpSqIX3Hvsw_gsg746.png b/docs/images/i1600x900-hFpSqIX3Hvsw_gsg746.png new file mode 100644 index 0000000000..258a3e6df4 Binary files /dev/null and b/docs/images/i1600x900-hFpSqIX3Hvsw_gsg746.png differ diff --git a/docs/images/i1600x900-hVOD3f4YnzbC_bnf3hi.png b/docs/images/i1600x900-hVOD3f4YnzbC_bnf3hi.png new file mode 100644 index 0000000000..76f9d881e8 Binary files /dev/null and b/docs/images/i1600x900-hVOD3f4YnzbC_bnf3hi.png differ diff --git a/docs/images/i1600x900-ibCXjqOd05ZH_qycqgt.png b/docs/images/i1600x900-ibCXjqOd05ZH_qycqgt.png new file mode 100644 index 0000000000..5017b0192d Binary files /dev/null and b/docs/images/i1600x900-ibCXjqOd05ZH_qycqgt.png differ diff --git a/docs/images/i1600x900-iihnWwzsuARg_llvldw.png b/docs/images/i1600x900-iihnWwzsuARg_llvldw.png new file mode 100644 index 0000000000..e7ebf5cb4d Binary files /dev/null and b/docs/images/i1600x900-iihnWwzsuARg_llvldw.png differ diff --git a/docs/images/i1600x900-jJW-bepHRrIu_ghr5au.png b/docs/images/i1600x900-jJW-bepHRrIu_ghr5au.png new file mode 100644 index 0000000000..c48692c779 Binary files /dev/null and b/docs/images/i1600x900-jJW-bepHRrIu_ghr5au.png differ diff --git a/docs/images/i1600x900-jTlC4G2v-FyV_ujxqws.png b/docs/images/i1600x900-jTlC4G2v-FyV_ujxqws.png new file mode 100644 index 0000000000..d96d209c21 Binary files /dev/null and b/docs/images/i1600x900-jTlC4G2v-FyV_ujxqws.png differ diff --git a/docs/images/i1600x900-jVFhWIwoSrqR_pcsvgw.png b/docs/images/i1600x900-jVFhWIwoSrqR_pcsvgw.png new file mode 100644 index 0000000000..ae626b0a6b Binary files /dev/null and b/docs/images/i1600x900-jVFhWIwoSrqR_pcsvgw.png differ diff --git a/docs/images/i1600x900-je1Ro4IEzLFM_gm67e9.png b/docs/images/i1600x900-je1Ro4IEzLFM_gm67e9.png new file mode 100644 index 0000000000..00821882eb Binary files /dev/null and b/docs/images/i1600x900-je1Ro4IEzLFM_gm67e9.png differ diff --git a/docs/images/i1600x900-k5I7jhKC_ej8_pmjpxc.png b/docs/images/i1600x900-k5I7jhKC_ej8_pmjpxc.png new file mode 100644 index 0000000000..a075a6c1d5 Binary files /dev/null and b/docs/images/i1600x900-k5I7jhKC_ej8_pmjpxc.png differ diff --git a/docs/images/i1600x900-ls8hPziT2EoL_k02oac.png b/docs/images/i1600x900-ls8hPziT2EoL_k02oac.png new file mode 100644 index 0000000000..f3ac87d28b Binary files /dev/null and b/docs/images/i1600x900-ls8hPziT2EoL_k02oac.png differ diff --git a/docs/images/i1600x900-lyOWGLVGiBPA_iia5p8.png b/docs/images/i1600x900-lyOWGLVGiBPA_iia5p8.png new file mode 100644 index 0000000000..503ca239ca Binary files /dev/null and b/docs/images/i1600x900-lyOWGLVGiBPA_iia5p8.png differ diff --git a/docs/images/i1600x900-mdLN0kkooRVB_juid5h.png b/docs/images/i1600x900-mdLN0kkooRVB_juid5h.png new file mode 100644 index 0000000000..32aed75182 Binary files /dev/null and b/docs/images/i1600x900-mdLN0kkooRVB_juid5h.png differ diff --git a/docs/images/i1600x900-nPCQKbW_wsVq_abagc2.png b/docs/images/i1600x900-nPCQKbW_wsVq_abagc2.png new file mode 100644 index 0000000000..c66bc069c5 Binary files /dev/null and b/docs/images/i1600x900-nPCQKbW_wsVq_abagc2.png differ diff --git a/docs/images/i1600x900-oVjaQ0tU3AnO_wrzp85.png b/docs/images/i1600x900-oVjaQ0tU3AnO_wrzp85.png new file mode 100644 index 0000000000..e05506d1ca Binary files /dev/null and b/docs/images/i1600x900-oVjaQ0tU3AnO_wrzp85.png differ diff --git a/docs/images/i1600x900-pDo66wyQ4Zxc_zmljxo.png b/docs/images/i1600x900-pDo66wyQ4Zxc_zmljxo.png new file mode 100644 index 0000000000..c09588c5de Binary files /dev/null and b/docs/images/i1600x900-pDo66wyQ4Zxc_zmljxo.png differ diff --git a/docs/images/i1600x900-pVQwZTGaR5hD_gydirn.png b/docs/images/i1600x900-pVQwZTGaR5hD_gydirn.png new file mode 100644 index 0000000000..8cbf550e70 Binary files /dev/null and b/docs/images/i1600x900-pVQwZTGaR5hD_gydirn.png differ diff --git a/docs/images/i1600x900-qJHsVoNdhG4E_cbx1zr.png b/docs/images/i1600x900-qJHsVoNdhG4E_cbx1zr.png new file mode 100644 index 0000000000..607b299de9 Binary files /dev/null and b/docs/images/i1600x900-qJHsVoNdhG4E_cbx1zr.png differ diff --git a/docs/images/i1600x900-sPtSh0GS1Fh8_uxplud.png b/docs/images/i1600x900-sPtSh0GS1Fh8_uxplud.png new file mode 100644 index 0000000000..9d0a6d57c1 Binary files /dev/null and b/docs/images/i1600x900-sPtSh0GS1Fh8_uxplud.png differ diff --git a/docs/images/i1600x900-sw0cvLcwYOXe_uwukmo.png b/docs/images/i1600x900-sw0cvLcwYOXe_uwukmo.png new file mode 100644 index 0000000000..e0369e2fcc Binary files /dev/null and b/docs/images/i1600x900-sw0cvLcwYOXe_uwukmo.png differ diff --git a/docs/images/i1600x900-t8KSO9n6gszI_awkmub.png b/docs/images/i1600x900-t8KSO9n6gszI_awkmub.png new file mode 100644 index 0000000000..eebb5dd2db Binary files /dev/null and b/docs/images/i1600x900-t8KSO9n6gszI_awkmub.png differ diff --git a/docs/images/i1600x900-uzADteTYBNdE_dtrrdz.png b/docs/images/i1600x900-uzADteTYBNdE_dtrrdz.png new file mode 100644 index 0000000000..5340222632 Binary files /dev/null and b/docs/images/i1600x900-uzADteTYBNdE_dtrrdz.png differ diff --git a/docs/images/i1600x900-vYzr65Ib7Uv9_jjyzah.png b/docs/images/i1600x900-vYzr65Ib7Uv9_jjyzah.png new file mode 100644 index 0000000000..6ce2d36dda Binary files /dev/null and b/docs/images/i1600x900-vYzr65Ib7Uv9_jjyzah.png differ diff --git a/docs/images/i1600x900-wrIlZkLdZ6kL_wf7mxn.png b/docs/images/i1600x900-wrIlZkLdZ6kL_wf7mxn.png new file mode 100644 index 0000000000..86b89a8207 Binary files /dev/null and b/docs/images/i1600x900-wrIlZkLdZ6kL_wf7mxn.png differ diff --git a/docs/images/i1600x900-z2MekYaA6oWf_nzivcl.png b/docs/images/i1600x900-z2MekYaA6oWf_nzivcl.png new file mode 100644 index 0000000000..65c57cf505 Binary files /dev/null and b/docs/images/i1600x900-z2MekYaA6oWf_nzivcl.png differ diff --git a/docs/images/i613x610-AY-VfSOKXkSF_nbmcsu.png b/docs/images/i613x610-AY-VfSOKXkSF_nbmcsu.png new file mode 100644 index 0000000000..e99294db09 Binary files /dev/null and b/docs/images/i613x610-AY-VfSOKXkSF_nbmcsu.png differ diff --git a/docs/images/i631x742-lNQTiHBjCByM_atlmdf.png b/docs/images/i631x742-lNQTiHBjCByM_atlmdf.png new file mode 100644 index 0000000000..d009bab267 Binary files /dev/null and b/docs/images/i631x742-lNQTiHBjCByM_atlmdf.png differ diff --git a/docs/images/i634x321-1Yns9vlEhaTg_uwwwlk.png b/docs/images/i634x321-1Yns9vlEhaTg_uwwwlk.png new file mode 100644 index 0000000000..692f5fa251 Binary files /dev/null and b/docs/images/i634x321-1Yns9vlEhaTg_uwwwlk.png differ diff --git a/docs/images/i805x289-9ZjOQDA70FMu_zjot71.png b/docs/images/i805x289-9ZjOQDA70FMu_zjot71.png new file mode 100644 index 0000000000..65df87fc4d Binary files /dev/null and b/docs/images/i805x289-9ZjOQDA70FMu_zjot71.png differ diff --git a/docs/images/i817x190--uQ-QNjQv7N-_dhazio.png b/docs/images/i817x190--uQ-QNjQv7N-_dhazio.png new file mode 100644 index 0000000000..1432b7a4e3 Binary files /dev/null and b/docs/images/i817x190--uQ-QNjQv7N-_dhazio.png differ diff --git a/docs/images/i958x1232-mgsIib6PZJLt_zobva8.png b/docs/images/i958x1232-mgsIib6PZJLt_zobva8.png new file mode 100644 index 0000000000..9fd624d6af Binary files /dev/null and b/docs/images/i958x1232-mgsIib6PZJLt_zobva8.png differ diff --git a/docs/images/i973x933-2xQuLlTcg2xz_cvs7li.png b/docs/images/i973x933-2xQuLlTcg2xz_cvs7li.png new file mode 100644 index 0000000000..fe522cc2e4 Binary files /dev/null and b/docs/images/i973x933-2xQuLlTcg2xz_cvs7li.png differ diff --git a/docs/images/me_data.png b/docs/images/me_data.png new file mode 100644 index 0000000000..4c9660c057 Binary files /dev/null and b/docs/images/me_data.png differ diff --git a/docs/images/oauth-zapier.png b/docs/images/oauth-zapier.png new file mode 100644 index 0000000000..046957358e Binary files /dev/null and b/docs/images/oauth-zapier.png differ diff --git a/docs/images/outlook_calendar.png b/docs/images/outlook_calendar.png new file mode 100644 index 0000000000..4bd7cd25bf Binary files /dev/null and b/docs/images/outlook_calendar.png differ diff --git a/docs/images/scim/app-settings-enable-scim.webp b/docs/images/scim/app-settings-enable-scim.webp new file mode 100644 index 0000000000..7ce58417b2 Binary files /dev/null and b/docs/images/scim/app-settings-enable-scim.webp differ diff --git a/docs/images/scim/dsync-configure-info.webp b/docs/images/scim/dsync-configure-info.webp new file mode 100644 index 0000000000..f9a663e3c0 Binary files /dev/null and b/docs/images/scim/dsync-configure-info.webp differ diff --git a/docs/images/scim/dsync-configure-provider.webp b/docs/images/scim/dsync-configure-provider.webp new file mode 100644 index 0000000000..924a18fb0a Binary files /dev/null and b/docs/images/scim/dsync-configure-provider.webp differ diff --git a/docs/images/scim/dsync-configure.webp b/docs/images/scim/dsync-configure.webp new file mode 100644 index 0000000000..5ec5613fd0 Binary files /dev/null and b/docs/images/scim/dsync-configure.webp differ diff --git a/docs/images/scim/group-team-mapping.webp b/docs/images/scim/group-team-mapping.webp new file mode 100644 index 0000000000..03fc3d91a6 Binary files /dev/null and b/docs/images/scim/group-team-mapping.webp differ diff --git a/docs/images/scim/okta-dsync-options.webp b/docs/images/scim/okta-dsync-options.webp new file mode 100644 index 0000000000..5cd7c01e11 Binary files /dev/null and b/docs/images/scim/okta-dsync-options.webp differ diff --git a/docs/images/scim/okta-property-settings.webp b/docs/images/scim/okta-property-settings.webp new file mode 100644 index 0000000000..5813cc5204 Binary files /dev/null and b/docs/images/scim/okta-property-settings.webp differ diff --git a/docs/images/selected_calendar_settings.png b/docs/images/selected_calendar_settings.png new file mode 100644 index 0000000000..d47e26f135 Binary files /dev/null and b/docs/images/selected_calendar_settings.png differ diff --git a/docs/images/useMe.png b/docs/images/useMe.png new file mode 100644 index 0000000000..a532297e78 Binary files /dev/null and b/docs/images/useMe.png differ diff --git a/docs/introduction.mdx b/docs/introduction.mdx new file mode 100644 index 0000000000..f3ba80e90f --- /dev/null +++ b/docs/introduction.mdx @@ -0,0 +1,89 @@ +--- +title: Documentation +description: Welcome to the official Cal.com docs. To help get you started, we've put together a few resources to help you learn about how to use Cal.com. We have also provided advanced documentation covering how to build on top of Cal.com both in the codebase, by API and more. These guides will go into depth on how you can best integrate and extend Cal.com for your needs. +hugeTitle: true +fullWidth: true +omitFeedback: true +--- + +import { Button } from "@components/uicomp/button" +import { PlainCard } from "@components/common-alt/plaincard" +import { Discord } from "@components/icons-alt/discord" +import { GitHub } from "@components/icons-alt/github" +import { Twitter } from "@components/icons-alt/twitter" +import config from "@project-config" + +
+
+ ## Quick start + + Feeling like an eager beaver? Jump in to the quick start docs and get making your first request: + +
+ +
+
+
+ +
+
+ + +## Core Features + +If you would like to get right into exploring our core features which are available to you for free, you can head straight to our Core Features section: + +
+ +
+ +## Enterprise Features + +Cal.com offers a variety of premium features which can be accessed through aquiring the enterprise license. To get an idea of what you get in return for the enterprise license, you can head to our Enterprise Features section: + +
+ +
+ + +## Cal.com API + +The Cal.com API is a REST-styled API that gives full control over the entire Cal.com platform by providing all the resources available to our customers, exposed as simple HTTP endpoints. +The Cal.com API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. + + +### Want to deep dive? + +Dive a little deeper and start exploring our API reference to get an idea of everything that's possible with the API: + + + + +## Join the community + +
+ + + +
diff --git a/docs/logo/dark.svg b/docs/logo/dark.svg new file mode 100644 index 0000000000..a6283786c7 --- /dev/null +++ b/docs/logo/dark.svg @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/logo/light.svg b/docs/logo/light.svg new file mode 100644 index 0000000000..582b3b95f5 --- /dev/null +++ b/docs/logo/light.svg @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/mint.json b/docs/mint.json new file mode 100644 index 0000000000..bb2146cc0d --- /dev/null +++ b/docs/mint.json @@ -0,0 +1,66 @@ +{ + "$schema": "https://mintlify.com/schema.json", + "name": "Cal.com Docs", + "logo": { + "dark": "https://cal.com/logo-white.svg", + "light": "https://cal.com/logo.svg" + }, + "api": { + "baseUrl": "https://api.cal.com", + "auth": { + "method": "bearer" + } + }, + "favicon": "/favicon-32x32.png", + "colors": { + "primary": "#111827", + "light": "#d6d6d6", + "dark": "#111827", + "anchors": { + "from": "#111827", + "to": "#d6d6d6" + } + }, + "topbarLinks": [ + { + "name": "Support", + "url": "mailto:support@cal.com" + } + ], + "topbarCtaButton": { + "name": "Dashboard", + "url": "https://app.cal.com" + }, + "tabs": [ + { + "name": "API v2 Reference", + "openapi": "/api-reference/v2/openapi.json", + "url": "api-reference/v2" + }, + { + "name": "API v1 Reference", + "openapi": "/api-reference/v1/openapi-v1.json", + "url": "api-reference/v1" + } + ], + "navigation": [ + { + "group": "Getting started", + "pages": ["api-reference/v2/introduction", "api-reference/v2/v1-v2-differences"] + }, + { + "group": "Getting started", + "pages": [ + "api-reference/v1/introduction", + "api-reference/v1/authentication", + "api-reference/v1/errors", + "api-reference/v1/rate-limit" + ] + } + ], + "footerSocials": { + "x": "https://x.com/calcom", + "github": "https://github.com/calcom", + "linkedin": "https://www.linkedin.com/company/cal-com" + } +} diff --git a/docs/platform/booking-redirects.mdx b/docs/platform/booking-redirects.mdx new file mode 100644 index 0000000000..e64cb7eb8f --- /dev/null +++ b/docs/platform/booking-redirects.mdx @@ -0,0 +1,103 @@ +--- +title: Booking redirects +description: Find out how to manage the booking flow. +--- + +When creating an OAuth client you can specify: +1. booking URL to manage where people land after booking after one of your users. +2. reschedule URL to your page for rescheduling a booking. +3. cancel URL to your page for cancelling a booking. + +This guide will explain each of the URLs and how to create page for each of them using atoms and our hooks. + +## Booking URL + +After a person books one of your users, that person should see the successful booking. + + + +Page in the booking URL will take URL parameter provided by us and then hook to fetch the booking and then display it. Here is an example: + +1. Pass `my-app.com/bookings` as the redirectURI. +2. In your app, create `my-app.com/bookings/[bookingUid]` page where bookingUid will become path parameter. +3. When a booking occurs, booker will be re-directed to the redirectURI with booking UID as the bookingUid parameter aka my-app.com/bookings/[bookingUid]. +4. In the my-app.com/bookings/[bookingUid] route create a page that imports `useGetBooking` hook, then extract bookingUid from URL parameter, and uses the hook to display booking information: + +```js +import { useGetBooking } from "@calcom/atoms"; + +export default function Bookings(props: { calUsername: string; calEmail: string }) { + const router = useRouter(); + + const { isLoading, data: booking, refetch } = useGetBooking((router.query.bookingUid as string) ?? ""); + + return ( +

{booking.title}

+ ) +``` + +An example implementation can be found [here](https://github.com/calcom/cal.com/blob/main/packages/platform/examples/base/src/pages/%5BbookingUid%5D.tsx). + +## Reschedule URL + +1. Pass `my-app.com/bookings/reschedule` as the redirectURI. +2. When “Reschedule” is clicked, user will be re-directed to the redirectURI with rescheduled and eventTypeSlug query parameters `my-app.com/reschedule?rescheduleUid=buiaE8jHmNAxLrqitahCeL&eventTypeSlug=thirty-minutes` +3. In the my-app.com/reschedule route create a page that extracts `rescheduleUid` and `eventTypeSlug` from the query parameters and passes the to the `Booker` atom: + +```js +const rescheduleUid = (router.query.rescheduleUid as string) ?? ""; +const eventTypeSlugQueryParam = (router.query.eventTypeSlug as string) ?? ""; + + +``` + +You only need rescheduleUid, eventSlug and username. + +An example implementation can be found [here](https://github.com/calcom/cal.com/blob/main/packages/platform/examples/base/src/pages/booking.tsx). + +## Cancel URL + +1. Pass `my-app.com/bookings/cancel` as the cancelURI. +2. In your app, create `my-app.com/bookings/cancel/[bookingUid]` page where bookingUid will become path parameter. +3. In the page of my-app.com/cancel/[bookingUid] import useCancelBooking from atoms and get access to the cancel mutation +import { useCancelBooking } from "@calcom/atoms"; + +```js +const { mutate: cancelBooking } = useCancelBooking({ + onSuccess: () => { + refetch(); + }, +}); +``` + +4. Create a cancel button that invokes mutation returned by the “useCancelBooking”. You have to pass id of the booking which you can get by fetching booking using "useGetBooking" hook by uid from the query params. Provide a suitable “cancellationReason”. + +```js +import { useGetBooking, useCancelBooking } from "@calcom/atoms"; + +... +const { isLoading, data: booking, refetch } = useGetBooking((router.query.bookingUid as string) ?? ""); +const { mutate: cancelBooking } = useCancelBooking({ + onSuccess: () => { + refetch(); + }, + }); +... + + +``` + +An example implementation can be found [here](https://github.com/calcom/cal.com/blob/main/packages/platform/examples/base/src/pages/booking.tsx). diff --git a/docs/platform/faq.mdx b/docs/platform/faq.mdx new file mode 100644 index 0000000000..3e75e1225a --- /dev/null +++ b/docs/platform/faq.mdx @@ -0,0 +1,34 @@ +--- +title: FAQ +description: Answers to the most common questions about the Platform API and atoms. +--- +### 1. What is an OAuth client? +- A platform OAuth client enables you communicate with our API and manage your users. +- It contains properties such as name, redirect uris and permissions required by your users. + +### 2. What is a managed user? +- A managed user is just a representation of your user within our database containing basic information like e-mail. +- It can be used to manage the setup of integrations such as Google Calendar, your users bookings. availability, etc. +- You should store information about the managed users in your database and use the access token to make API calls on their behalf. + +### 3. Are a cal.com user and a managed user related? +- No, a cal.com user and a managed user are not related in any way. We can consider them as two separate entities. +- A "managed user" is completely independent of user accounts on cal.com and you don't need to register users on the cal.com web application. + +### 4. What is an access token? +- At the time of creating a managed user you'll be provided with an access token and a refresh token. +- Each managed user is linked with an access token which helps us in identifying which users scheduling we need to handle. +- The access token only lasts for 60 minutes after which you can query the refresh point with your refresh token which will give you a new access token. +- Inside of atoms we handle access token refreshing part ourselves, outside of that you may need to handle the refreshing part yourselves. +- Refresh tokens should never be exposed to the frontend, keep them secure and only use them on the backend. + +### 5. What is an atom? +- An atom is a customizable UI component that handles scheduling on behalf of your user. +- Everything from the front-end to API calls is being handled by the atom, all you need to is import the atom and drop it in your code. + +### 6. What are the minimun setup requirments for using atoms? +- You need to have a project that uses React version 18 and above. +- At the moment atoms are only supported in React, so there's no way to use them in vanilla js or any other popular framework. + +### 7. Can recurring events be rescheduled? +- No, at the moment you are only allowed to cancel a recurring event. diff --git a/docs/platform/introduction.mdx b/docs/platform/introduction.mdx new file mode 100644 index 0000000000..f529790c9b --- /dev/null +++ b/docs/platform/introduction.mdx @@ -0,0 +1,287 @@ +--- +title: Welcome to Platform! +description: The one stop destination to build your next scheduling business. +--- + + + +Platform is the best choice for starting a scheduling business. You can white-label the design or change every line of code to make it work for you. It consists of our newly created set of APIs and plug and play UI components called atoms. + + + Get started + + +## Atoms + +Atoms are customizable UI components handling scheduling on behalf of your users. Everything from the frontend to the backend is being handled by the atom, all you need to is import the atom and drop it in your code and you're good to go. + +## How to use atoms + +Here's some examples around how you can use atoms in your project. + +### 1. Google Calendar connect atom + +The below code snippet renders the Google calendar connect button which syncs a user's google calendar. + +```js +import { Connect } from "@calcom/atoms"; + +export default function Connect() { + return ( +
+ +
+ ) +} +``` + +If you need to customize the appearance of any atom, you can pass in custom css styles via a className prop. + +```js +import { Connect } from "@calcom/atoms"; + +export default function Connect() { + return ( +
+ +
+ ) +} +``` + +This is how the google calendar connect button looks: + + + +### 2. Outlook Calendar connect atom + +The below code snippet renders the Outlook calendar connect button which syncs a user's outlook calendar. + +```js +import { Connect } from "@calcom/atoms"; + +export default function ConnectCalendar() { + return ( +
+ +
+ ) +} +``` + +If you need to customize the appearance of the atom, you can pass in custom css styles via the className prop. Additionally, if you want to pass in a custom redirect url that can be done via the redir prop. + +```js +import { Connect } from "@calcom/atoms"; + +export default function ConnectCalendar() { + return ( +
+ +
+ ) +} +``` + +This is how the outlook calendar connect button looks: + + + +### 3. Apple Calendar connect atom + +The below code snippet renders the Apple calendar connect button which syncs a user's apple calendar. + +```js +import { Connect } from "@calcom/atoms"; + +export default function ConnectCalendar() { + return ( +
+ +
+ ) +} +``` + +If you need to customize the appearance of the atom, you can pass in custom css styles via the className prop. + +```js +import { Connect } from "@calcom/atoms"; + +export default function ConnectCalendar() { + return ( +
+ +
+ ) +} +``` + +This is how the apple calendar connect button looks: + + + +The apple calendar atom works a bit differently than outlook and google calendar. We don't get redirected to an OAuth consent page, instead a modal appears which prompts us to create an app specific password to use with Cal.com: + + + +If you try to put your Apple Id password in the above password field, it will throw an error. It only accepts an app specific password generated from https://appleid.apple.com/account/manage. + +### 4. Availability settings atom + +The below code snippet renders the availability settings atom through which a user can set their available time slots. + +```js +import { AvailabilitySettings } from "@calcom/atoms"; + +export default function Availability() { + return ( + <> + { + console.log("Updated schedule successfully"); + }} + onDeleteSuccess={() => { + console.log("Deleted schedule successfully"); + }} + /> + <> + ) +} +``` + +This is how the availability settings atom looks: + + + +If a user wishes to add further adjustments to their availability for special occasions or events, they can use the date overrides feature. Date overrides enables users to pick any date that they're currently available and set specific hours for availability on that day or mark themselves entirely unavailable. Once that day is passed, the date override is automatically deleted. + +The below code snippet renders date overrides into the availability settings atom + +```js +import { AvailabilitySettings } from "@calcom/atoms"; + +export default function Availability() { + return ( + <> + { + console.log("Updated schedule successfully"); + }} + onDeleteSuccess={() => { + console.log("Deleted schedule successfully"); + }} + /> + <> + ) +} +``` + +This is how the availability settings atom looks with date overrides: + + + +When a user tries to add date overrides for their availability, a modal appears which prompts the user to select the date and availability they want to override. + + + +After successfully adding a date override, this is how the availability settings atom looks: + + + +### 5. Booker atom + +The below code snippet renders the booker atom through which a user can be booked for any event that they have set. + +```js +import { Booker } from "@calcom/atoms"; + +export default function Booker( props : BookerProps ) { + return ( + <> + { + console.log("booking created successfully"); + }} + /> + <> + ) +} +``` + +This is how the booker atom looks: + + + +### 6. Calendar settings atom + +The below code snippet renders the calendar settings atom through which you can configure how your event types interact with your calendars. The atom gives you the ability to select where to add events when you're booked. Additionally, you can also select which calendars you want to check for conflicts to prevent double bookings. + +```js +import { CalendarSettings } from "@calcom/atoms"; + +export default function CalendarSettingsComponent( props : CalendarSettingsComponentProps ) { + return ( + <> + + <> + ) +} +``` + +This is how the calendar settings atom looks: + + + +Additionally, if you wish to select either the Destination Calendar or the Selected Calendar, we also provide atoms specifically designed for this purpose. + +**1. Destination calendar settings atom** + +The below code snippet renders the destination calendar settings atom. Through this atom you can select which calendar you want to add events to when you're booked. + +```js +import { DestinationCalendarSettings } from "@calcom/atoms"; + +export default function DestinationCalendars( props : DestinationCalendarsProps ) { + return ( + <> + Loading...} /> + <> + ) +} +``` +This is how the destination calendar settings atom looks: + + + +**2. Selected calendar settings atom** + +The below code snippet renders the selected calendar settings atom. Through this atom you can select which calendars you want to check for conflicts to prevent double bookings. + +```js +import { SelectedCalendarSettings } from "@calcom/atoms"; + +export default function SelectedCalendars( props : SelectedCalendarsProps ) { + return ( + <> + + <> + ) +} +``` +This is how the selected calendar settings atom looks: + + + +## Platform APIs + +We've also created a set of new and scalable APIs for our Platform customers called v2 which we plan to make the successor for our v1 APIs. Internally all the atoms use the new Platform APIs to handle scheduling. + +Once you set up an OAuth client and create a managed user for that particular OAuth client you're ready to use the Platform API. Below are some examples around how you can use the Platform APIs in your project. + +Go [here](/api-reference/v2) to see all the available endpoints. diff --git a/docs/platform/quickstart.mdx b/docs/platform/quickstart.mdx new file mode 100644 index 0000000000..704a05c187 --- /dev/null +++ b/docs/platform/quickstart.mdx @@ -0,0 +1,325 @@ +--- +title: Quickstart +description: Find out how to use Cal "atoms" to integrate scheduling into your product. +--- + +## 1. Unlocking access to atoms +1. Sign up for a Platform account [here](https://app.cal.com/signup?redirect=https://app.cal.com/settings/platform/new) + +## 2. Setting up an OAuth client + +Once your account is created, the next step is to create an OAuth client. This allows you to connect your users to Cal and handle their scheduling with atoms. + +1. After logging in using provided credentials, open OAuth clients settings page [https://app.cal.com/settings/platform/oauth-clients/create](https://app.cal.com/settings/platform/oauth-clients/create) +2. Add an OAuth client. + 1. Name: anything is fine. You can use your company name or your website. + 2. Redirect URIs: Used to validate internal requests origin and allow redirections on your platform when needed. You can enable any URI of your company’s domain (e.g. cal.com in our case). + 3. Booking, reschedule and cancel URLs: URLs of pages where users land after a successful booking or if they want to reschedule or cancel a booking. We will pass information in the URL when redirecting to your pages and you will use our hooks and components to implement the pages. See [this guide](/platform/booking-redirects). + 4. Permissions - most likely you need all enabled: + 1. Event type: event type is a user event that others can book. For example, Alice is a language teacher and she has an event type “30 minutes Italian lesson” that others can then book. + 2. Booking: When Bob books the Italian lesson, a booking is created and shows up on the calendar that Alice connected using atoms. + 3. Schedule: used to represent when a user is available. From what to what time and when can an event type be booked. For example, Alice only can be booked for the Italian lessons on Mondays and Tuesdays from 9AM to 4PM. + 4. Profile: When you proceed to the chapter 2, you will create your users on our end, so that we can manage their scheduling. Profile permissions allow to either read or update users you create on our end. + 5. Apps: used to connect Google Calendar, Zoom, Microsoft Teams, etc. to atoms. + +## 3. Creating managed users connected to the OAuth client + +In order for atoms to handle scheduling on behalf of your users, you have to create what we call a “managed user” for each of your users. + +#### What is a “Managed user”? +It is a representation of your user within our database containing basic information like email and is used to manage the setup of Google Calendar. +After creating a “managed user” you will receive the user ID, an access and a refresh token that are used by atoms to handle scheduling and can be used to modify the “managed user” information, so make sure to store the tokens and the [cal.com](http://cal.com) user ID in your database. Also, you will have to connect each user on your end with the access and refresh tokens by adding new properties on your User model in database that store the tokens, for example. + +#### What is it not? +It's important to clarify that a "managed user" is completely independent of a regular user account on cal.com, meaning you don't need your users to register on cal.com web application. + +### Create managed users via our API + +We now need the OAuth client’s “client ID” and “client secret” that you can find in [https://app.cal.com/settings/organizations/platform/oauth-clients](https://app.cal.com/settings/organizations/platform/oauth-clients). + +You have to make a POST request to [https://api.cal.com/v2/oauth-clients/YOUR_CLIENT_ID/users](https://api.cal.com/v2/oauth-clients/:clientId/users): + +1. Replace “YOUR_CLIENT_ID” in the URL with your “client ID”. +2. Add "x-cal-secret-key” header with the value of your “client secret”. +3. Add the request body containing an object to create the “managed user” with the following properties: + 1. email: required, your user's email. + 2. name: optional, full name of your user. + 3. timeFormat: optional, value can be either 12 or 24 with 12 representing 12 hour time using AM and PM and 24 representing 24 hour time without AM and PM. + 4. weekStart: optional, value can be “Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”, “Saturday”, “Sunday”. If none passed, "Sunday” is used as the default. Countries in North and South America start their week on Sunday while countries in Europe and Oceania on Monday. + 5. timeZone: optional, in the format of “IANA timezone” e.g. “Europe/Rome”. If none passed, "Europe/London” is used as the default. + +#### Example request + +URL: https://api.cal.com/v2/oauth-clients/7Dcxu2fclb10001kha9x1dreyl4/users + +Headers: ```{ "x-cal-secret-key”: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpX}``` + +Body: + +```js +{ + "email": "bob@example.com", + "timeZone": "America/New_York" +} +``` + + +#### Example response + +```js +{ + "status": "success", + "data": { + "user": { + "id": 179, + "email": "bob@example.com", + "username": "bob" + }, + "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiYWNjZXNzX3Rva2VuIiwiY2xpZW50SWQiOiJjbHUxZmNtYjEwMDAxa2hyN3g3ZHJleWw0Iiwib3duZXJJZCI6MTc5LCJpYXQiOjE3MTE0NDI3OTR9.EsC3JRPHQnigcp_HSijKCIp8EgcWs2kj4AFxYXYc9sM", + "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoicmVmcmVzaF90b2tlbiIsImNsaWVudElkIjoiY2x1MWZjbWIxMDAwMWtocjd4N2RyZXlsNCIsIm93bmVySWQiOjE3OSwiaWF0IjoxNzExNDQyNzk0fQ.GjklEucgey8yWMoGz7ABntbxYdiqqQFPooQjqGd3B5I" + } +} +``` + +First, make sure to store the user ID, access and refresh tokens in your database and connect them to each user. For example, you can add “calAtomsAccessToken” and “calAtomsRefreshToken” properties to your user database model. + +You will be able to provide an access token to our atoms so that they can handle scheduling on behalf of the user associated with the token. Access tokens expires, so you will have to refresh them using the refresh token. + +Second, if `timeZone` is passed in the request, the user's default schedule from 9AM to 5PM will be created in the specified timezone. Then, using the `AvailabilitySettings` atom, user can customize their availability. However, +if the `timeZone` is not passed, then user has no default schedule and user can't be booked and user can't set availability using the `AvailabilitySettings` atom. You will have to set it up manually via the `/schedules` endpoints. +We recommend setting the `timeZone` for ease of use. + +## 4. Backend: setting up a refresh token endpoint + +You have to setup an endpoint on your server to which atoms can send an expired access token and receive new one in return. This exchange will be automatically handled by atoms when you provide this endpoint URL when setting up frontend in the next step. + +> Q: Why do we need a separate endpoint just for this? +A: Your OAuth client secret and users refresh tokens should never be exposed on the frontend. The OAuth client secret will reside as an environment variable in your backend and the users' refresh tokens are stored in your database, which are used by the SDK to refresh the access token. +> + +You can check an example refresh token endpoint in our atoms examples app: [https://github.com/calcom/atoms-examples/blob/main/cal-sync/src/pages/api/refresh.ts](https://github.com/calcom/atoms-examples/blob/main/cal-sync/src/pages/api/refresh.ts) + +Shortly: + +1. Setup environment variables or pass values directly. Here are ones from the examples app above: + 1. NEXT_PUBLIC_CALCOM_API_URL: [https://api.cal.com/v2](https://api.cal.com/v2) + 2. NEXT_PUBLIC_X_CAL_ID: your OAuth client ID + 3. X_CAL_SECRET_KEY - your OAuth client secret +2. Your endpoint will receive a request from atoms. +3. Make it a GET endpoint to which “Authorization: Bearer accessToken” header can be sent to. +4. Assuming you have stored the access and refresh tokens in your database and connected them to a specific user, fetch the user based on the received access token. +5. Provide the OAuth client ID, client secret and refresh token and make a request to our “oauth/:clientId/refresh” endpoint. +6. Store access and refresh tokens returned by the SDK in your database. +7. Return access token to the request. It should be in the format of: + ```js + { accessToken: "fresh access token" } + ``` + +The atoms will now use the new access token to handle scheduling on behalf of your user. + +## 5. Frontend: setting up atoms + +Atoms are customizable UI components handling scheduling on behalf of your users. + +### 5.1 Install the atoms package + +npm: + +```jsx +npm install @calcom/atoms +``` + +yarn: + +```jsx +yarn add @calcom/atoms +``` + +pnpm: + +```jsx +pnpm add @calcom/atoms +``` + +### 5.2 Setup environment variables + +CAL_OAUTH_CLIENT_ID: OAuth client ID + +CAL_API_URL: [https://api.cal.com/v2](https://api.cal.com/v2) + +REFRESH_URL: URL of the endpoint you implemented in step 3, for example, your.api.com/api/refresh + +### 5.3 Setup root of your app + +Next.js: open _app.js or or _app.tsx. + +React: open App.js or App.ts. + +First, import global css styles used by atoms. + +```js +import "@calcom/atoms/globals.min.css"; + +function MyApp({ Component, pageProps }) { + return ( + + ); +} + +export default MyApp; +``` + +Second, import CalProvider that provides necessary information to atoms and wrap your components with it. + +```js +import "@calcom/atoms/globals.min.css"; +import { CalProvider } from '@calcom/atoms'; + +function MyApp({ Component, pageProps }) { + return ( + + + + ); +} + +export default MyApp; +``` + +Third, CalProvider needs to get access token of the user for which atoms will handle scheduling, so you need to fetch user and provide its access token to the CalProvider. + +```js +import "@calcom/atoms/globals.min.css"; +import { CalProvider } from '@calcom/atoms'; + +function MyApp({ Component, pageProps }) { + const [accessToken, setAccessToken] = useState(""); + + useEffect(() => { + fetch(`/api/users/${pageProps.userId}`, { + }).then(async (res) => { + const data = await res.json(); + setAccessToken(data.accessToken); + }); + }, []); + + return ( + + + + ); +} + +export default MyApp; +``` + +## 6. Frontend: using atoms + +It’s very easy, just import the atom and drop it in code! For example, for users to connect their Google Calendar drop in "Connect.GoogleCalendar" component - it will handle everything. + +```js +import { Connect } from "@calcom/atoms"; + +... +export default function Connect() { + return ( +
+ +
+ ); +} +``` + +If you need to customize the appearance of any atom, you can pass in custom css styles via a className prop that every atom has: + +```js + +``` + +other more complex atoms will expose multiple classNames and props to react to events happening in the atoms + +```js + { + console.log("Updated successfully"); + }} + onUpdateError={() => { + console.log("update error"); + }} + onDeleteError={() => { + console.log("delete error"); + }} + onDeleteSuccess={() => { + console.log("Deleted successfully"); + }} +/>; +``` + +## 7. Front-end: passing additional props to CalProvider + +The CalProvider component offers several additional props to customize its behavior and appearance: +1. autoUpdateTimezone: By default, the atoms automatically update the user's timezone. You can disable this feature by setting autoUpdateTimezone to false. +2. onTimezoneChange: If you want to perform specific actions whenever the user's timezone changes, you can provide a callback function to the onTimezoneChange prop. +3. children: You can pass in custom child components to be rendered within the CalProvider. +4. version: Specify the API version that the atoms should use by setting the version prop. +5. language: Set the language for the atoms by providing a supported locale (es, fr, de, en, pt-BR) to the language prop. +6. labels: Override specific labels in the atoms by passing an object of custom labels to the labels prop. + +```js +import "@calcom/atoms/globals.min.css"; +import { CalProvider } from '@calcom/atoms'; + +function MyApp({ Component, pageProps }) { + const [accessToken, setAccessToken] = useState(""); + + useEffect(() => { + fetch(`/api/users/${pageProps.userId}`, { + }).then(async (res) => { + const data = await res.json(); + setAccessToken(data.accessToken); + }); + }, []); + + return ( + { + console.log("Timezone changed successfully") + }} + children={<>This is the child component} + > + + + ); +} + +export default MyApp; +``` diff --git a/docs/quickstart.mdx b/docs/quickstart.mdx new file mode 100644 index 0000000000..f435885008 --- /dev/null +++ b/docs/quickstart.mdx @@ -0,0 +1,27 @@ +--- +title: "Quick Start" +--- + + + +## Sign up for a free Cal.com account (recommended) + +The easiest way to get started with Cal.com is with our hosted plan. We offer a generous free tier where you get unlimited scheduling with no limits and all of our features built for individuals, with the option to upgrade to a teams plan for collaboration features. + +Sign up for a Cal.com account + + + + +## Self-host Cal.com on your infrastructure + +For full data ownership and control over your scheduling, you can self-host Cal.com on your own infrastructure. + +Self-hosting + + +## Quick start for contributors + +If you wish to contribute to Cal.com, please take a look at our guide to fast-track the onboarding process for new contributors. + +Quick start for contributors diff --git a/docs/snippets/snippet-intro.mdx b/docs/snippets/snippet-intro.mdx new file mode 100644 index 0000000000..c57e7c7564 --- /dev/null +++ b/docs/snippets/snippet-intro.mdx @@ -0,0 +1,4 @@ +One of the core principles of software development is DRY (Don't Repeat +Yourself). This is a principle that apply to documentation as +well. If you find yourself repeating the same content in multiple places, you +should consider creating a custom snippet to keep your content in sync.