curl --request POST \
--url https://api.cal.com/v2/oauth-clients \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"logo": "<string>",
"name": "<string>",
"redirectUris": [
"<string>"
],
"permissions": [
"EVENT_TYPE_READ"
],
"bookingRedirectUri": "<string>",
"bookingCancelRedirectUri": "<string>",
"bookingRescheduleRedirectUri": "<string>",
"areEmailsEnabled": true,
"areDefaultEventTypesEnabled": false,
"areCalendarEventsEnabled": true
}'
{
"status": "success",
"data": {
"clientId": "clsx38nbl0001vkhlwin9fmt0",
"clientSecret": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoib2F1dGgtY2xpZW50Iiwi"
}
}
curl --request POST \
--url https://api.cal.com/v2/oauth-clients \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"logo": "<string>",
"name": "<string>",
"redirectUris": [
"<string>"
],
"permissions": [
"EVENT_TYPE_READ"
],
"bookingRedirectUri": "<string>",
"bookingCancelRedirectUri": "<string>",
"bookingRescheduleRedirectUri": "<string>",
"areEmailsEnabled": true,
"areDefaultEventTypesEnabled": false,
"areCalendarEventsEnabled": true
}'
{
"status": "success",
"data": {
"clientId": "clsx38nbl0001vkhlwin9fmt0",
"clientSecret": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoib2F1dGgtY2xpZW50Iiwi"
}
}
value must be Bearer <token>
where <token>
is api key prefixed with cal_
Create an OAuth client
The response is of type object
.
Was this page helpful?