curl --request POST \
--url https://api.cal.com/v2/event-type-sequences/{uid}/bookings \
--header 'Content-Type: application/json' \
--data '
{
"start": "2033-09-05T09:00:00Z",
"attendee": {
"name": "Alice Candidate",
"email": "alice@example.com",
"timeZone": "Europe/Rome",
"language": "it",
"phoneNumber": "+393401234567"
},
"bookingFieldsResponses": {
"notice-period": "4 weeks"
},
"emailVerificationCode": "123456"
}
'import requests
url = "https://api.cal.com/v2/event-type-sequences/{uid}/bookings"
payload = {
"start": "2033-09-05T09:00:00Z",
"attendee": {
"name": "Alice Candidate",
"email": "alice@example.com",
"timeZone": "Europe/Rome",
"language": "it",
"phoneNumber": "+393401234567"
},
"bookingFieldsResponses": { "notice-period": "4 weeks" },
"emailVerificationCode": "123456"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
start: '2033-09-05T09:00:00Z',
attendee: {
name: 'Alice Candidate',
email: 'alice@example.com',
timeZone: 'Europe/Rome',
language: 'it',
phoneNumber: '+393401234567'
},
bookingFieldsResponses: {'notice-period': '4 weeks'},
emailVerificationCode: '123456'
})
};
fetch('https://api.cal.com/v2/event-type-sequences/{uid}/bookings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cal.com/v2/event-type-sequences/{uid}/bookings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'start' => '2033-09-05T09:00:00Z',
'attendee' => [
'name' => 'Alice Candidate',
'email' => 'alice@example.com',
'timeZone' => 'Europe/Rome',
'language' => 'it',
'phoneNumber' => '+393401234567'
],
'bookingFieldsResponses' => [
'notice-period' => '4 weeks'
],
'emailVerificationCode' => '123456'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cal.com/v2/event-type-sequences/{uid}/bookings"
payload := strings.NewReader("{\n \"start\": \"2033-09-05T09:00:00Z\",\n \"attendee\": {\n \"name\": \"Alice Candidate\",\n \"email\": \"alice@example.com\",\n \"timeZone\": \"Europe/Rome\",\n \"language\": \"it\",\n \"phoneNumber\": \"+393401234567\"\n },\n \"bookingFieldsResponses\": {\n \"notice-period\": \"4 weeks\"\n },\n \"emailVerificationCode\": \"123456\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cal.com/v2/event-type-sequences/{uid}/bookings")
.header("Content-Type", "application/json")
.body("{\n \"start\": \"2033-09-05T09:00:00Z\",\n \"attendee\": {\n \"name\": \"Alice Candidate\",\n \"email\": \"alice@example.com\",\n \"timeZone\": \"Europe/Rome\",\n \"language\": \"it\",\n \"phoneNumber\": \"+393401234567\"\n },\n \"bookingFieldsResponses\": {\n \"notice-period\": \"4 weeks\"\n },\n \"emailVerificationCode\": \"123456\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cal.com/v2/event-type-sequences/{uid}/bookings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"start\": \"2033-09-05T09:00:00Z\",\n \"attendee\": {\n \"name\": \"Alice Candidate\",\n \"email\": \"alice@example.com\",\n \"timeZone\": \"Europe/Rome\",\n \"language\": \"it\",\n \"phoneNumber\": \"+393401234567\"\n },\n \"bookingFieldsResponses\": {\n \"notice-period\": \"4 weeks\"\n },\n \"emailVerificationCode\": \"123456\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"uid": "3Fz8kQw1mNp5rT9vXc2bLd",
"start": "2033-09-05T09:00:00.000Z",
"end": "2033-09-05T11:15:00.000Z",
"segments": [
{
"position": 0,
"bookingUid": "8Kq2nP4cWzR1vY7tLm3sXe",
"title": "Technical interview between Dana Smith and Alice Candidate",
"status": "accepted",
"start": "2033-09-05T09:00:00.000Z",
"end": "2033-09-05T09:45:00.000Z",
"hosts": [
{
"name": "Dana Smith"
}
]
}
]
}
}Book a sequence
Books every segment of the sequence back to back from start, all or nothing: either each segment gets its own booking with hosts free for its window, or nothing is written. Each segment is booked as a booking of its own event type: it gets that event type’s questions, confirmation setting, emails, workflows and webhooks, and is held at the event type’s first location (or the assigned round-robin host’s own location). After the bookings commit, the sequence team’s SEQUENCE_BOOKING_CREATED webhook lists every segment, and each segment’s BOOKING_CREATED or BOOKING_REQUESTED carries sequenceBooking. A segment whose event type requires confirmation is pending until a host confirms it.
No authentication is required. Anonymous callers can make 5 requests a minute per IP address; authenticated callers are limited per credential as on other routes. A segment whose event type requires authentication can only be booked by its owner, a host, or an admin or owner of its team or organization.
Every refusal tied to one segment names its 0-based position in error.details.position, and never names a host.
curl --request POST \
--url https://api.cal.com/v2/event-type-sequences/{uid}/bookings \
--header 'Content-Type: application/json' \
--data '
{
"start": "2033-09-05T09:00:00Z",
"attendee": {
"name": "Alice Candidate",
"email": "alice@example.com",
"timeZone": "Europe/Rome",
"language": "it",
"phoneNumber": "+393401234567"
},
"bookingFieldsResponses": {
"notice-period": "4 weeks"
},
"emailVerificationCode": "123456"
}
'import requests
url = "https://api.cal.com/v2/event-type-sequences/{uid}/bookings"
payload = {
"start": "2033-09-05T09:00:00Z",
"attendee": {
"name": "Alice Candidate",
"email": "alice@example.com",
"timeZone": "Europe/Rome",
"language": "it",
"phoneNumber": "+393401234567"
},
"bookingFieldsResponses": { "notice-period": "4 weeks" },
"emailVerificationCode": "123456"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
start: '2033-09-05T09:00:00Z',
attendee: {
name: 'Alice Candidate',
email: 'alice@example.com',
timeZone: 'Europe/Rome',
language: 'it',
phoneNumber: '+393401234567'
},
bookingFieldsResponses: {'notice-period': '4 weeks'},
emailVerificationCode: '123456'
})
};
fetch('https://api.cal.com/v2/event-type-sequences/{uid}/bookings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cal.com/v2/event-type-sequences/{uid}/bookings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'start' => '2033-09-05T09:00:00Z',
'attendee' => [
'name' => 'Alice Candidate',
'email' => 'alice@example.com',
'timeZone' => 'Europe/Rome',
'language' => 'it',
'phoneNumber' => '+393401234567'
],
'bookingFieldsResponses' => [
'notice-period' => '4 weeks'
],
'emailVerificationCode' => '123456'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cal.com/v2/event-type-sequences/{uid}/bookings"
payload := strings.NewReader("{\n \"start\": \"2033-09-05T09:00:00Z\",\n \"attendee\": {\n \"name\": \"Alice Candidate\",\n \"email\": \"alice@example.com\",\n \"timeZone\": \"Europe/Rome\",\n \"language\": \"it\",\n \"phoneNumber\": \"+393401234567\"\n },\n \"bookingFieldsResponses\": {\n \"notice-period\": \"4 weeks\"\n },\n \"emailVerificationCode\": \"123456\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cal.com/v2/event-type-sequences/{uid}/bookings")
.header("Content-Type", "application/json")
.body("{\n \"start\": \"2033-09-05T09:00:00Z\",\n \"attendee\": {\n \"name\": \"Alice Candidate\",\n \"email\": \"alice@example.com\",\n \"timeZone\": \"Europe/Rome\",\n \"language\": \"it\",\n \"phoneNumber\": \"+393401234567\"\n },\n \"bookingFieldsResponses\": {\n \"notice-period\": \"4 weeks\"\n },\n \"emailVerificationCode\": \"123456\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cal.com/v2/event-type-sequences/{uid}/bookings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"start\": \"2033-09-05T09:00:00Z\",\n \"attendee\": {\n \"name\": \"Alice Candidate\",\n \"email\": \"alice@example.com\",\n \"timeZone\": \"Europe/Rome\",\n \"language\": \"it\",\n \"phoneNumber\": \"+393401234567\"\n },\n \"bookingFieldsResponses\": {\n \"notice-period\": \"4 weeks\"\n },\n \"emailVerificationCode\": \"123456\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"uid": "3Fz8kQw1mNp5rT9vXc2bLd",
"start": "2033-09-05T09:00:00.000Z",
"end": "2033-09-05T11:15:00.000Z",
"segments": [
{
"position": 0,
"bookingUid": "8Kq2nP4cWzR1vY7tLm3sXe",
"title": "Technical interview between Dana Smith and Alice Candidate",
"status": "accepted",
"start": "2033-09-05T09:00:00.000Z",
"end": "2033-09-05T09:45:00.000Z",
"hosts": [
{
"name": "Dana Smith"
}
]
}
]
}
}Headers
Makes a retry safe: a request repeating a key it already booked a loop with gets that loop back instead of booking another. The key is scoped to the OAuth client and user that send it, or to the attendee's email when the request is anonymous. A replay compares the sequence, start, attendee and bookingFieldsResponses (ignoring key order, surrounding spaces and email case), answers 201 with the loop's current state, each segment's status as it is now, and books nothing. The same key with a different body is a 422. A key whose request was refused (400, 401, 403, 409) booked nothing and can be sent again. A retry after the sequence was deleted is a 404. With a key, hosts lists the organizer and the co-hosts whose email is verified. The key is never stored or logged as sent.
1 - 255Body
When the first segment starts, as an RFC 3339 date-time with an offset (Z or ±HH:MM), as GET /v2/event-type-sequences/{uid}/slots returns it. A day that doesn't exist, such as February 31, is refused. The other segments follow back to back.
"2033-09-05T09:00:00Z"
Answers to the sequence's bookingFields, keyed by their slug. A null answer is read as an empty one, as on /v2/bookings. Each segment receives only the answers to its own event type's questions. Guests are added through a guests field when a segment asks for one; name and email come from attendee.
{ "notice-period": "4 weeks" }
Was this page helpful?