Lookup Cal.com Event Type
curl --request GET \
--url https://api.ravan.ai/api/v1/calcom/event-types/lookup/{platform_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ravan.ai/api/v1/calcom/event-types/lookup/{platform_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.ravan.ai/api/v1/calcom/event-types/lookup/{platform_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.ravan.ai/api/v1/calcom/event-types/lookup/{platform_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.ravan.ai/api/v1/calcom/event-types/lookup/{platform_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.ravan.ai/api/v1/calcom/event-types/lookup/{platform_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ravan.ai/api/v1/calcom/event-types/lookup/{platform_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": <boolean>,
"message": "Event type retrieved",
"data": {
"id": "<string>",
"slug": "<string>",
"title": "<string>",
"description": "<string>",
"duration_minutes": <integer>,
"price": <number>,
"currency": "<string>",
"is_active": <boolean>,
"calcom_account_id": "<string>",
"account_name": "<string>"
}
}
Cal.com Integration API
Lookup Cal.com Event Type
Looks up a single event type by its Cal.com numeric ID or slug across all connected accounts for the organization.
GET
/
api
/
v1
/
calcom
/
event-types
/
lookup
/
{platform_id}
Lookup Cal.com Event Type
curl --request GET \
--url https://api.ravan.ai/api/v1/calcom/event-types/lookup/{platform_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ravan.ai/api/v1/calcom/event-types/lookup/{platform_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.ravan.ai/api/v1/calcom/event-types/lookup/{platform_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.ravan.ai/api/v1/calcom/event-types/lookup/{platform_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.ravan.ai/api/v1/calcom/event-types/lookup/{platform_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.ravan.ai/api/v1/calcom/event-types/lookup/{platform_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ravan.ai/api/v1/calcom/event-types/lookup/{platform_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": <boolean>,
"message": "Event type retrieved",
"data": {
"id": "<string>",
"slug": "<string>",
"title": "<string>",
"description": "<string>",
"duration_minutes": <integer>,
"price": <number>,
"currency": "<string>",
"is_active": <boolean>,
"calcom_account_id": "<string>",
"account_name": "<string>"
}
}
Authorizations
string
required
Your JWT access token. Pass it as a Bearer token in the
Authorization header. Example: Authorization: Bearer <token>.Path Parameters
string
required
The Cal.com event type numeric ID, such as
123456, or slug, such as 30min-intro.Query Parameters
string
required
The organization ID whose connected Cal.com accounts should be searched.
Response
boolean
Whether the request succeeded.
string
Human-readable status message.
object
The matching Cal.com event type.
Show data
Show data
string
Event type ID from Cal.com.
string
Event type slug.
string
Event type title suffixed with the owning account name.
string
Event type description.
integer
Duration in minutes.
number
Event type price.
string
Currency code.
boolean
Whether the event type is active.
string
Owning Cal.com account ID.
string
Owning Cal.com account name.
{
"success": <boolean>,
"message": "Event type retrieved",
"data": {
"id": "<string>",
"slug": "<string>",
"title": "<string>",
"description": "<string>",
"duration_minutes": <integer>,
"price": <number>,
"currency": "<string>",
"is_active": <boolean>,
"calcom_account_id": "<string>",
"account_name": "<string>"
}
}
{
"success": false,
"message": "<string>",
"code": "INVALID_REQUEST"
}
{
"success": false,
"message": "<string>",
"code": "NOT_CONNECTED"
}
{
"success": false,
"message": "<string>",
"code": "NOT_FOUND"
}
{
"success": false,
"message": "<string>"
}
{
"success": false,
"message": "<string>",
"code": "INTERNAL_ERROR"
}
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Cal.com event type numeric ID or slug
Query Parameters
Organization ID
Response
Event type retrieved

