curl --request POST \
--url https://api.cal.id/booking/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"eventTypeId": 12,
"start": "2026-05-02T10:00:00.000Z",
"end": "2026-05-02T10:30:00.000Z",
"responses": {
"name": "Jane Doe",
"email": "jane@example.com",
"location": {
"value": "integrations:google:meet",
"optionValue": ""
}
}
}
'import requests
url = "https://api.cal.id/booking/"
payload = {
"eventTypeId": 12,
"start": "2026-05-02T10:00:00.000Z",
"end": "2026-05-02T10:30:00.000Z",
"responses": {
"name": "Jane Doe",
"email": "jane@example.com",
"location": {
"value": "integrations:google:meet",
"optionValue": ""
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
eventTypeId: 12,
start: '2026-05-02T10:00:00.000Z',
end: '2026-05-02T10:30:00.000Z',
responses: {
name: 'Jane Doe',
email: 'jane@example.com',
location: {value: 'integrations:google:meet', optionValue: ''}
}
})
};
fetch('https://api.cal.id/booking/', 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.id/booking/",
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([
'eventTypeId' => 12,
'start' => '2026-05-02T10:00:00.000Z',
'end' => '2026-05-02T10:30:00.000Z',
'responses' => [
'name' => 'Jane Doe',
'email' => 'jane@example.com',
'location' => [
'value' => 'integrations:google:meet',
'optionValue' => ''
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.id/booking/"
payload := strings.NewReader("{\n \"eventTypeId\": 12,\n \"start\": \"2026-05-02T10:00:00.000Z\",\n \"end\": \"2026-05-02T10:30:00.000Z\",\n \"responses\": {\n \"name\": \"Jane Doe\",\n \"email\": \"jane@example.com\",\n \"location\": {\n \"value\": \"integrations:google:meet\",\n \"optionValue\": \"\"\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.id/booking/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"eventTypeId\": 12,\n \"start\": \"2026-05-02T10:00:00.000Z\",\n \"end\": \"2026-05-02T10:30:00.000Z\",\n \"responses\": {\n \"name\": \"Jane Doe\",\n \"email\": \"jane@example.com\",\n \"location\": {\n \"value\": \"integrations:google:meet\",\n \"optionValue\": \"\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cal.id/booking/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"eventTypeId\": 12,\n \"start\": \"2026-05-02T10:00:00.000Z\",\n \"end\": \"2026-05-02T10:30:00.000Z\",\n \"responses\": {\n \"name\": \"Jane Doe\",\n \"email\": \"jane@example.com\",\n \"location\": {\n \"value\": \"integrations:google:meet\",\n \"optionValue\": \"\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": 123,
"uid": "<string>",
"userId": 123,
"startTime": "<string>",
"endTime": "<string>",
"paymentRequired": true,
"paymentUid": "<string>",
"paymentId": 123,
"isDryRun": true
},
"message": "<string>",
"meta": {
"pagination": {
"page": 123,
"limit": 123,
"total": 123,
"totalPages": 123
}
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Create a booking
Create a new booking
curl --request POST \
--url https://api.cal.id/booking/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"eventTypeId": 12,
"start": "2026-05-02T10:00:00.000Z",
"end": "2026-05-02T10:30:00.000Z",
"responses": {
"name": "Jane Doe",
"email": "jane@example.com",
"location": {
"value": "integrations:google:meet",
"optionValue": ""
}
}
}
'import requests
url = "https://api.cal.id/booking/"
payload = {
"eventTypeId": 12,
"start": "2026-05-02T10:00:00.000Z",
"end": "2026-05-02T10:30:00.000Z",
"responses": {
"name": "Jane Doe",
"email": "jane@example.com",
"location": {
"value": "integrations:google:meet",
"optionValue": ""
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
eventTypeId: 12,
start: '2026-05-02T10:00:00.000Z',
end: '2026-05-02T10:30:00.000Z',
responses: {
name: 'Jane Doe',
email: 'jane@example.com',
location: {value: 'integrations:google:meet', optionValue: ''}
}
})
};
fetch('https://api.cal.id/booking/', 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.id/booking/",
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([
'eventTypeId' => 12,
'start' => '2026-05-02T10:00:00.000Z',
'end' => '2026-05-02T10:30:00.000Z',
'responses' => [
'name' => 'Jane Doe',
'email' => 'jane@example.com',
'location' => [
'value' => 'integrations:google:meet',
'optionValue' => ''
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.id/booking/"
payload := strings.NewReader("{\n \"eventTypeId\": 12,\n \"start\": \"2026-05-02T10:00:00.000Z\",\n \"end\": \"2026-05-02T10:30:00.000Z\",\n \"responses\": {\n \"name\": \"Jane Doe\",\n \"email\": \"jane@example.com\",\n \"location\": {\n \"value\": \"integrations:google:meet\",\n \"optionValue\": \"\"\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.id/booking/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"eventTypeId\": 12,\n \"start\": \"2026-05-02T10:00:00.000Z\",\n \"end\": \"2026-05-02T10:30:00.000Z\",\n \"responses\": {\n \"name\": \"Jane Doe\",\n \"email\": \"jane@example.com\",\n \"location\": {\n \"value\": \"integrations:google:meet\",\n \"optionValue\": \"\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cal.id/booking/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"eventTypeId\": 12,\n \"start\": \"2026-05-02T10:00:00.000Z\",\n \"end\": \"2026-05-02T10:30:00.000Z\",\n \"responses\": {\n \"name\": \"Jane Doe\",\n \"email\": \"jane@example.com\",\n \"location\": {\n \"value\": \"integrations:google:meet\",\n \"optionValue\": \"\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": 123,
"uid": "<string>",
"userId": 123,
"startTime": "<string>",
"endTime": "<string>",
"paymentRequired": true,
"paymentUid": "<string>",
"paymentId": 123,
"isDryRun": true
},
"message": "<string>",
"meta": {
"pagination": {
"page": 123,
"limit": 123,
"total": 123,
"totalPages": 123
}
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"success": false,
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Authorizations
Use the Authorization header with Bearer scheme.
Examples:
- API Key: Authorization: Bearer calid_xxxxx
Body
Booking start time (ISO 8601, e.g., '2025-10-09T14:30:00+05:30')
"2026-05-02T10:00:00.000Z"
Booking end time (ISO 8601, e.g., '2025-10-09T15:00:00+05:30')
"2026-05-02T10:30:00.000Z"
Booking form responses containing attendee details
Show child attributes
Show child attributes
{
"name": "Jane Doe",
"email": "jane@example.com",
"location": {
"value": "integrations:google:meet",
"optionValue": ""
},
"guests": []
}
Unique identifier for the event type
x > 112
Event type slug selector. Accepted formats: <slug> for your own event type, <username>/<slug> (owner-prefixed user format), or team/<teamSlug>/<slug> for team event types.
1"john-doe/discovery-call-30"
IANA timezone identifier (e.g., 'Asia/Kolkata', 'America/New_York')
"Asia/Kolkata"
Language code for email communications (e.g., 'en', 'es', 'fr')
"en"
Additional metadata for the booking
Show child attributes
Show child attributes
{}
Related topics
Create a bookingMastering the Unified Calendar in Cal IDCreate a webhookCreate a teamCreate a scheduleWas this page helpful?