Update my profile
curl --request PATCH \
--url https://api.cal.com/v2/me \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"name": "<string>",
"timeFormat": 12,
"defaultScheduleId": 123,
"weekStart": "Monday",
"timeZone": "<string>",
"locale": "en",
"avatarUrl": "https://cal.com/api/avatar/2b735186-b01b-46d3-87da-019b8f61776b.png",
"bio": "I am a bio",
"metadata": {
"key": "value"
}
}
'import requests
url = "https://api.cal.com/v2/me"
payload = {
"email": "<string>",
"name": "<string>",
"timeFormat": 12,
"defaultScheduleId": 123,
"weekStart": "Monday",
"timeZone": "<string>",
"locale": "en",
"avatarUrl": "https://cal.com/api/avatar/2b735186-b01b-46d3-87da-019b8f61776b.png",
"bio": "I am a bio",
"metadata": { "key": "value" }
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
name: '<string>',
timeFormat: 12,
defaultScheduleId: 123,
weekStart: 'Monday',
timeZone: '<string>',
locale: 'en',
avatarUrl: 'https://cal.com/api/avatar/2b735186-b01b-46d3-87da-019b8f61776b.png',
bio: 'I am a bio',
metadata: {key: 'value'}
})
};
fetch('https://api.cal.com/v2/me', 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/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'name' => '<string>',
'timeFormat' => 12,
'defaultScheduleId' => 123,
'weekStart' => 'Monday',
'timeZone' => '<string>',
'locale' => 'en',
'avatarUrl' => 'https://cal.com/api/avatar/2b735186-b01b-46d3-87da-019b8f61776b.png',
'bio' => 'I am a bio',
'metadata' => [
'key' => 'value'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"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.cal.com/v2/me"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"name\": \"<string>\",\n \"timeFormat\": 12,\n \"defaultScheduleId\": 123,\n \"weekStart\": \"Monday\",\n \"timeZone\": \"<string>\",\n \"locale\": \"en\",\n \"avatarUrl\": \"https://cal.com/api/avatar/2b735186-b01b-46d3-87da-019b8f61776b.png\",\n \"bio\": \"I am a bio\",\n \"metadata\": {\n \"key\": \"value\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<authorization>")
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.patch("https://api.cal.com/v2/me")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"name\": \"<string>\",\n \"timeFormat\": 12,\n \"defaultScheduleId\": 123,\n \"weekStart\": \"Monday\",\n \"timeZone\": \"<string>\",\n \"locale\": \"en\",\n \"avatarUrl\": \"https://cal.com/api/avatar/2b735186-b01b-46d3-87da-019b8f61776b.png\",\n \"bio\": \"I am a bio\",\n \"metadata\": {\n \"key\": \"value\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cal.com/v2/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"name\": \"<string>\",\n \"timeFormat\": 12,\n \"defaultScheduleId\": 123,\n \"weekStart\": \"Monday\",\n \"timeZone\": \"<string>\",\n \"locale\": \"en\",\n \"avatarUrl\": \"https://cal.com/api/avatar/2b735186-b01b-46d3-87da-019b8f61776b.png\",\n \"bio\": \"I am a bio\",\n \"metadata\": {\n \"key\": \"value\"\n }\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"id": 123,
"username": "<string>",
"email": "<string>",
"name": "<string>",
"avatarUrl": "<string>",
"bio": "<string>",
"timeFormat": 123,
"defaultScheduleId": 123,
"weekStart": "<string>",
"timeZone": "<string>",
"locale": "en",
"organizationId": 123,
"organization": {
"isPlatform": true,
"id": 123
}
}
}Me
Update my profile
Updates the authenticated user’s profile. Email changes require verification and the primary email stays unchanged until verification completes, unless the new email is already a verified secondary email or the user is platform-managed. If accessed using an OAuth access token, the PROFILE_WRITE scope is required.
PATCH
/
v2
/
me
Update my profile
curl --request PATCH \
--url https://api.cal.com/v2/me \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"name": "<string>",
"timeFormat": 12,
"defaultScheduleId": 123,
"weekStart": "Monday",
"timeZone": "<string>",
"locale": "en",
"avatarUrl": "https://cal.com/api/avatar/2b735186-b01b-46d3-87da-019b8f61776b.png",
"bio": "I am a bio",
"metadata": {
"key": "value"
}
}
'import requests
url = "https://api.cal.com/v2/me"
payload = {
"email": "<string>",
"name": "<string>",
"timeFormat": 12,
"defaultScheduleId": 123,
"weekStart": "Monday",
"timeZone": "<string>",
"locale": "en",
"avatarUrl": "https://cal.com/api/avatar/2b735186-b01b-46d3-87da-019b8f61776b.png",
"bio": "I am a bio",
"metadata": { "key": "value" }
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
name: '<string>',
timeFormat: 12,
defaultScheduleId: 123,
weekStart: 'Monday',
timeZone: '<string>',
locale: 'en',
avatarUrl: 'https://cal.com/api/avatar/2b735186-b01b-46d3-87da-019b8f61776b.png',
bio: 'I am a bio',
metadata: {key: 'value'}
})
};
fetch('https://api.cal.com/v2/me', 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/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'name' => '<string>',
'timeFormat' => 12,
'defaultScheduleId' => 123,
'weekStart' => 'Monday',
'timeZone' => '<string>',
'locale' => 'en',
'avatarUrl' => 'https://cal.com/api/avatar/2b735186-b01b-46d3-87da-019b8f61776b.png',
'bio' => 'I am a bio',
'metadata' => [
'key' => 'value'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"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.cal.com/v2/me"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"name\": \"<string>\",\n \"timeFormat\": 12,\n \"defaultScheduleId\": 123,\n \"weekStart\": \"Monday\",\n \"timeZone\": \"<string>\",\n \"locale\": \"en\",\n \"avatarUrl\": \"https://cal.com/api/avatar/2b735186-b01b-46d3-87da-019b8f61776b.png\",\n \"bio\": \"I am a bio\",\n \"metadata\": {\n \"key\": \"value\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<authorization>")
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.patch("https://api.cal.com/v2/me")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"name\": \"<string>\",\n \"timeFormat\": 12,\n \"defaultScheduleId\": 123,\n \"weekStart\": \"Monday\",\n \"timeZone\": \"<string>\",\n \"locale\": \"en\",\n \"avatarUrl\": \"https://cal.com/api/avatar/2b735186-b01b-46d3-87da-019b8f61776b.png\",\n \"bio\": \"I am a bio\",\n \"metadata\": {\n \"key\": \"value\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cal.com/v2/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"name\": \"<string>\",\n \"timeFormat\": 12,\n \"defaultScheduleId\": 123,\n \"weekStart\": \"Monday\",\n \"timeZone\": \"<string>\",\n \"locale\": \"en\",\n \"avatarUrl\": \"https://cal.com/api/avatar/2b735186-b01b-46d3-87da-019b8f61776b.png\",\n \"bio\": \"I am a bio\",\n \"metadata\": {\n \"key\": \"value\"\n }\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"id": 123,
"username": "<string>",
"email": "<string>",
"name": "<string>",
"avatarUrl": "<string>",
"bio": "<string>",
"timeFormat": 123,
"defaultScheduleId": 123,
"weekStart": "<string>",
"timeZone": "<string>",
"locale": "en",
"organizationId": 123,
"organization": {
"isPlatform": true,
"id": 123
}
}
}Headers
value must be Bearer <token> where <token> is api key prefixed with cal_, managed user access token, or OAuth access token
Body
application/json
Must be 12 or 24
Available options:
12, 24 Example:
12
Available options:
Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday Example:
"Monday"
Available options:
ar, ca, de, es, eu, he, id, ja, lv, pl, ro, sr, th, vi, az, cs, el, es-419, fi, hr, it, km, nl, pt, ru, sv, tr, zh-CN, bg, da, en, et, fr, hu, iw, ko, no, pt-BR, sk, ta, uk, zh-TW, bn Example:
"en"
URL of the user's avatar image
Example:
"https://cal.com/api/avatar/2b735186-b01b-46d3-87da-019b8f61776b.png"
Bio
Example:
"I am a bio"
You can store any additional data you want here. Metadata must have at most 50 keys, each key up to 40 characters, and values up to 500 characters.
Example:
{ "key": "value" }
Was this page helpful?
⌘I