Get Event By ID
curl --request GET \
--url http://localhost:4000/v1/events/detail \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:4000/v1/events/detail"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4000/v1/events/detail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "4000",
CURLOPT_URL => "http://localhost:4000/v1/events/detail",
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 := "http://localhost:4000/v1/events/detail"
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("http://localhost:4000/v1/events/detail")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4000/v1/events/detail")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": 123,
"linkPrefix": "<string>",
"name": "<string>",
"eventType": "<string>",
"status": "<string>",
"accountId": 123,
"userId": 123,
"isDefaultNotification": true,
"optimizationPriorities": [
{
"id": 123,
"priority": 123,
"userId": 123,
"eventId": 123,
"user": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"profilePictureKey": "<string>",
"previewId": "<string>",
"signedUrl": "<string>",
"userAccounts": [
{
"inviteNotAccepted": true
}
],
"calendarConnected": true,
"zoomConnected": true,
"inviteNotAccepted": true,
"activeAvailability": {
"id": 123,
"availabilityDays": [
{
"id": 123,
"name": "<string>",
"timings": [
{
"startTime": "<string>",
"endTime": "<string>"
}
],
"active": true
}
],
"name": "<string>",
"timeZone": "<string>"
},
"availabilitySet": true
}
}
],
"inviteeQuestions": [
{
"id": 123,
"statement": "<string>",
"type": "<string>",
"required": true,
"options": {},
"displayIndex": 123,
"deletedAt": "<unknown>"
}
],
"workflowEvents": [
{
"workflow": {
"id": 123,
"eventCallStateId": 123,
"name": "<string>",
"immediate": true,
"minutes": 123,
"unit": "<string>",
"disabled": true
}
}
],
"EventRules": [
{
"rule": {
"id": 123,
"name": "<string>",
"type": "<string>",
"disabled": true,
"multiBookingConditions": [
{
"customFieldEvent": {
"customFieldId": 123
},
"customFieldEventId": 123,
"condition": "<string>",
"value": "<string>",
"operator": "<string>"
}
]
}
}
],
"EventLogicGroup": [
{
"minSlotsCheck": true,
"EventLogicUsers": [
{
"user": {
"id": 123,
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"profilePictureKey": "<string>",
"signedUrl": "<string>"
}
}
],
"EventLogics": [
{
"id": 123,
"eventId": 123,
"inviteeQuestionId": 123,
"customFieldId": 123,
"condition": "<string>",
"value": "<string>",
"operator": "<string>",
"customField": {},
"customFieldEvent": {}
}
]
}
],
"CustomFieldEventMap": [
{
"id": 123,
"statement": "<string>",
"required": true,
"displayIndex": 123,
"customField": {}
}
],
"DisqualificationLogicGroup": [
{
"redirectUrl": "<string>",
"EventConditionalLogics": [
{
"id": 123,
"eventId": 123,
"statement": "<string>",
"operator": "<string>",
"value": "<string>",
"condition": "<string>",
"disqualificationGroupId": 123
}
]
}
],
"eventImage": {
"id": 123,
"imageUrl": "<string>",
"imageKey": "<string>",
"signedUrl": "<string>"
},
"account": {
"emailValidationEnabled": true,
"phoneNumberValidationEnabled": true,
"usCreditCheckEnabled": true,
"signedUrl": "<string>"
},
"user": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"profilePictureKey": "<string>",
"previewId": "<string>",
"signedUrl": "<string>",
"userAccounts": [
{
"inviteNotAccepted": true
}
],
"calendarConnected": true,
"zoomConnected": true,
"inviteNotAccepted": true,
"activeAvailability": {
"id": 123,
"availabilityDays": [
{
"id": 123,
"name": "<string>",
"timings": [
{
"startTime": "<string>",
"endTime": "<string>"
}
],
"active": true
}
],
"name": "<string>",
"timeZone": "<string>"
},
"availabilitySet": true
},
"eventEmailTemplateVariables": [
{
"id": 123,
"eventId": 123,
"variableKey": "<string>",
"variableValue": "<string>"
}
]
}
}Events
Get Event By ID
Get a single event by id for the authenticated account
GET
/
v1
/
events
/
detail
Get Event By ID
curl --request GET \
--url http://localhost:4000/v1/events/detail \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:4000/v1/events/detail"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4000/v1/events/detail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "4000",
CURLOPT_URL => "http://localhost:4000/v1/events/detail",
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 := "http://localhost:4000/v1/events/detail"
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("http://localhost:4000/v1/events/detail")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4000/v1/events/detail")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": 123,
"linkPrefix": "<string>",
"name": "<string>",
"eventType": "<string>",
"status": "<string>",
"accountId": 123,
"userId": 123,
"isDefaultNotification": true,
"optimizationPriorities": [
{
"id": 123,
"priority": 123,
"userId": 123,
"eventId": 123,
"user": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"profilePictureKey": "<string>",
"previewId": "<string>",
"signedUrl": "<string>",
"userAccounts": [
{
"inviteNotAccepted": true
}
],
"calendarConnected": true,
"zoomConnected": true,
"inviteNotAccepted": true,
"activeAvailability": {
"id": 123,
"availabilityDays": [
{
"id": 123,
"name": "<string>",
"timings": [
{
"startTime": "<string>",
"endTime": "<string>"
}
],
"active": true
}
],
"name": "<string>",
"timeZone": "<string>"
},
"availabilitySet": true
}
}
],
"inviteeQuestions": [
{
"id": 123,
"statement": "<string>",
"type": "<string>",
"required": true,
"options": {},
"displayIndex": 123,
"deletedAt": "<unknown>"
}
],
"workflowEvents": [
{
"workflow": {
"id": 123,
"eventCallStateId": 123,
"name": "<string>",
"immediate": true,
"minutes": 123,
"unit": "<string>",
"disabled": true
}
}
],
"EventRules": [
{
"rule": {
"id": 123,
"name": "<string>",
"type": "<string>",
"disabled": true,
"multiBookingConditions": [
{
"customFieldEvent": {
"customFieldId": 123
},
"customFieldEventId": 123,
"condition": "<string>",
"value": "<string>",
"operator": "<string>"
}
]
}
}
],
"EventLogicGroup": [
{
"minSlotsCheck": true,
"EventLogicUsers": [
{
"user": {
"id": 123,
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"profilePictureKey": "<string>",
"signedUrl": "<string>"
}
}
],
"EventLogics": [
{
"id": 123,
"eventId": 123,
"inviteeQuestionId": 123,
"customFieldId": 123,
"condition": "<string>",
"value": "<string>",
"operator": "<string>",
"customField": {},
"customFieldEvent": {}
}
]
}
],
"CustomFieldEventMap": [
{
"id": 123,
"statement": "<string>",
"required": true,
"displayIndex": 123,
"customField": {}
}
],
"DisqualificationLogicGroup": [
{
"redirectUrl": "<string>",
"EventConditionalLogics": [
{
"id": 123,
"eventId": 123,
"statement": "<string>",
"operator": "<string>",
"value": "<string>",
"condition": "<string>",
"disqualificationGroupId": 123
}
]
}
],
"eventImage": {
"id": 123,
"imageUrl": "<string>",
"imageKey": "<string>",
"signedUrl": "<string>"
},
"account": {
"emailValidationEnabled": true,
"phoneNumberValidationEnabled": true,
"usCreditCheckEnabled": true,
"signedUrl": "<string>"
},
"user": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"profilePictureKey": "<string>",
"previewId": "<string>",
"signedUrl": "<string>",
"userAccounts": [
{
"inviteNotAccepted": true
}
],
"calendarConnected": true,
"zoomConnected": true,
"inviteNotAccepted": true,
"activeAvailability": {
"id": 123,
"availabilityDays": [
{
"id": 123,
"name": "<string>",
"timings": [
{
"startTime": "<string>",
"endTime": "<string>"
}
],
"active": true
}
],
"name": "<string>",
"timeZone": "<string>"
},
"availabilitySet": true
},
"eventEmailTemplateVariables": [
{
"id": 123,
"eventId": 123,
"variableKey": "<string>",
"variableValue": "<string>"
}
]
}
}⌘I