cURL
curl --request GET \
--url https://api.novacal.io/v1/event-types/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.novacal.io/v1/event-types/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.novacal.io/v1/event-types/{id}', 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/event-types/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.novacal.io/v1/event-types/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.novacal.io/v1/event-types/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novacal.io/v1/event-types/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": 123,
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"type": "one_on_one",
"scope": "personal",
"is_active": true,
"duration": 720,
"max_group_size": 6,
"hidden_from_profile": true,
"color": "<string>",
"redirect_enabled": true,
"redirect_url": "<string>",
"time_slot_interval": 62,
"buffer_time_before_event": 60,
"buffer_time_after_event": 60,
"min_scheduling_notice": 21600,
"min_scheduling_notice_type": "minutes",
"allow_rescheduling": true,
"allow_cancellation": true,
"availability_id": 123,
"booking_frequency_limits": [
{
"period": "day",
"limit": 21600
}
],
"locations": [
{
"id": 123,
"type": "offline",
"details": "<string>"
}
],
"form_fields": [
{
"identifier": "<string>",
"label": "<string>",
"type": "<string>",
"placeholder": "<string>",
"is_required": true,
"options": [
"<string>"
]
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Event Types
Get Event Type
Retrieve one Novacal event type by ID, including its scheduling settings, booking limits, visibility, and active booking form fields.
GET
/
v1
/
event-types
/
{id}
cURL
curl --request GET \
--url https://api.novacal.io/v1/event-types/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.novacal.io/v1/event-types/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.novacal.io/v1/event-types/{id}', 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/event-types/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.novacal.io/v1/event-types/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.novacal.io/v1/event-types/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novacal.io/v1/event-types/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": 123,
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"type": "one_on_one",
"scope": "personal",
"is_active": true,
"duration": 720,
"max_group_size": 6,
"hidden_from_profile": true,
"color": "<string>",
"redirect_enabled": true,
"redirect_url": "<string>",
"time_slot_interval": 62,
"buffer_time_before_event": 60,
"buffer_time_after_event": 60,
"min_scheduling_notice": 21600,
"min_scheduling_notice_type": "minutes",
"allow_rescheduling": true,
"allow_cancellation": true,
"availability_id": 123,
"booking_frequency_limits": [
{
"period": "day",
"limit": 21600
}
],
"locations": [
{
"id": 123,
"type": "offline",
"details": "<string>"
}
],
"form_fields": [
{
"identifier": "<string>",
"label": "<string>",
"type": "<string>",
"placeholder": "<string>",
"is_required": true,
"options": [
"<string>"
]
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}What this endpoint is for
Use this endpoint to retrieve one specific event type when you already know its ID.Returned details
- Scheduling configuration and booking limits
- Visibility and booking behavior settings
- Active booking form fields associated with the event type
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of event type
Response
200 - application/json
Event type response