cURL
curl --request POST \
--url https://api.novacal.io/v1/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"event_type_id": 123,
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"timezone": "<string>",
"location": {
"id": 123
},
"form_field_answers": {}
}
'import requests
url = "https://api.novacal.io/v1/events"
payload = {
"event_type_id": 123,
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"timezone": "<string>",
"location": { "id": 123 },
"form_field_answers": {}
}
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({
event_type_id: 123,
start: '2023-11-07T05:31:56Z',
end: '2023-11-07T05:31:56Z',
timezone: '<string>',
location: {id: 123},
form_field_answers: {}
})
};
fetch('https://api.novacal.io/v1/events', 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.novacal.io/v1/events",
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([
'event_type_id' => 123,
'start' => '2023-11-07T05:31:56Z',
'end' => '2023-11-07T05:31:56Z',
'timezone' => '<string>',
'location' => [
'id' => 123
],
'form_field_answers' => [
]
]),
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.novacal.io/v1/events"
payload := strings.NewReader("{\n \"event_type_id\": 123,\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"location\": {\n \"id\": 123\n },\n \"form_field_answers\": {}\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.novacal.io/v1/events")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"event_type_id\": 123,\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"location\": {\n \"id\": 123\n },\n \"form_field_answers\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novacal.io/v1/events")
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 \"event_type_id\": 123,\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"location\": {\n \"id\": 123\n },\n \"form_field_answers\": {}\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_type_id": 42,
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"canceled_at": "2023-11-07T05:31:56Z",
"cancellation_reason": "<string>",
"location": "<string>",
"form_field_answers": {
"name": "John Doe",
"email": "john@example.com"
},
"status": "<string>",
"name": "<string>",
"organizer": {
"first_name": "<string>",
"last_name": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"username": "<string>",
"timezone": "<string>",
"time_format": 12,
"start_of_week": 0,
"avatar": "<string>"
},
"hosts": [
{
"first_name": "<string>",
"last_name": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"username": "<string>",
"timezone": "<string>",
"time_format": 12,
"start_of_week": 0,
"avatar": "<string>"
}
],
"booker": {
"name": "<string>",
"email": "jsmith@example.com",
"timezone": "<string>",
"time_format": 12
},
"guests": [
"jsmith@example.com"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Events
Book Event
Book a new Novacal event with the public API by sending the event type, selected time, attendee answers, timezone, and location data.
POST
/
v1
/
events
cURL
curl --request POST \
--url https://api.novacal.io/v1/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"event_type_id": 123,
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"timezone": "<string>",
"location": {
"id": 123
},
"form_field_answers": {}
}
'import requests
url = "https://api.novacal.io/v1/events"
payload = {
"event_type_id": 123,
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"timezone": "<string>",
"location": { "id": 123 },
"form_field_answers": {}
}
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({
event_type_id: 123,
start: '2023-11-07T05:31:56Z',
end: '2023-11-07T05:31:56Z',
timezone: '<string>',
location: {id: 123},
form_field_answers: {}
})
};
fetch('https://api.novacal.io/v1/events', 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.novacal.io/v1/events",
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([
'event_type_id' => 123,
'start' => '2023-11-07T05:31:56Z',
'end' => '2023-11-07T05:31:56Z',
'timezone' => '<string>',
'location' => [
'id' => 123
],
'form_field_answers' => [
]
]),
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.novacal.io/v1/events"
payload := strings.NewReader("{\n \"event_type_id\": 123,\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"location\": {\n \"id\": 123\n },\n \"form_field_answers\": {}\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.novacal.io/v1/events")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"event_type_id\": 123,\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"location\": {\n \"id\": 123\n },\n \"form_field_answers\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novacal.io/v1/events")
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 \"event_type_id\": 123,\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"location\": {\n \"id\": 123\n },\n \"form_field_answers\": {}\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_type_id": 42,
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"canceled_at": "2023-11-07T05:31:56Z",
"cancellation_reason": "<string>",
"location": "<string>",
"form_field_answers": {
"name": "John Doe",
"email": "john@example.com"
},
"status": "<string>",
"name": "<string>",
"organizer": {
"first_name": "<string>",
"last_name": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"username": "<string>",
"timezone": "<string>",
"time_format": 12,
"start_of_week": 0,
"avatar": "<string>"
},
"hosts": [
{
"first_name": "<string>",
"last_name": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"username": "<string>",
"timezone": "<string>",
"time_format": 12,
"start_of_week": 0,
"avatar": "<string>"
}
],
"booker": {
"name": "<string>",
"email": "jsmith@example.com",
"timezone": "<string>",
"time_format": 12
},
"guests": [
"jsmith@example.com"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}This endpoint requires a public API bearer token.
The authenticated API key identifies the caller integration. The event booker is still created from the submitted booking payload, for example
form_field_answers.name and form_field_answers.email.
When to use this endpoint
Use this endpoint when you want to create a new booking from your own product, widget, or backend workflow. Common use cases include:- Creating a booking after a customer selects a time in your app
- Passing attendee answers collected in a custom booking flow
- Saving the selected timezone and meeting location in the same request
Authentication notes
This route uses a public API bearer token. The token authenticates your integration, while the attendee details still come from the booking payload you submit.Authorizations
Body
application/json
Event booking payload