curl --request GET \
--url https://api.cal.com/v2/contacts \
--header 'Authorization: <authorization>'import requests
url = "https://api.cal.com/v2/contacts"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.cal.com/v2/contacts', 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.com/v2/contacts",
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: <authorization>"
],
]);
$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.cal.com/v2/contacts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
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.cal.com/v2/contacts")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cal.com/v2/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": [
{
"type": "calUser",
"id": "0192f3a1-7c2b-7d4e-9a10-000000000001",
"name": "Jamie Rivera",
"email": "jamie.rivera@example.com",
"tags": [
{
"id": "0192f3a1-7c2b-7d4e-9a10-00000000000a",
"name": "Investors"
}
],
"username": "jamie",
"bookingUrl": "https://cal.com/jamie",
"groupBooking": "eligible"
}
],
"pagination": {
"nextCursor": "<string>",
"hasMore": true
}
}List personal contacts
Returns the authenticated user’s personal contacts from their Contacts page, ordered by stored name (nulls last), email and id, with limit/cursor pagination. contactIds narrows the list to those contacts, and tagIds to contacts carrying at least one of the tags. When pagination.hasMore is true, pass pagination.nextCursor as cursor with the same search, contactIds and tagIds. Use usernames of contacts with groupBooking eligible for dynamic group availability and booking with the authenticated user. Team and organization members are not included. A contact whose email belongs to a verified, discoverable Cal account shows that account’s name, username and booking page. Contact avatars and Cal user ids are never returned. If accessed using an OAuth access token, the CONTACT_READ scope is required.
curl --request GET \
--url https://api.cal.com/v2/contacts \
--header 'Authorization: <authorization>'import requests
url = "https://api.cal.com/v2/contacts"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.cal.com/v2/contacts', 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.com/v2/contacts",
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: <authorization>"
],
]);
$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.cal.com/v2/contacts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
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.cal.com/v2/contacts")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cal.com/v2/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": [
{
"type": "calUser",
"id": "0192f3a1-7c2b-7d4e-9a10-000000000001",
"name": "Jamie Rivera",
"email": "jamie.rivera@example.com",
"tags": [
{
"id": "0192f3a1-7c2b-7d4e-9a10-00000000000a",
"name": "Investors"
}
],
"username": "jamie",
"bookingUrl": "https://cal.com/jamie",
"groupBooking": "eligible"
}
],
"pagination": {
"nextCursor": "<string>",
"hasMore": true
}
}Headers
Query Parameters
Response
Was this page helpful?