curl --request POST \
--url https://api.cal.com/v2/api-keys/refresh \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"apiKeyDaysValid": 60,
"apiKeyNeverExpires": true
}
'{
"status": "success",
"data": {
"apiKey": "<string>"
}
}curl --request POST \
--url https://api.cal.com/v2/api-keys/refresh \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"apiKeyDaysValid": 60,
"apiKeyNeverExpires": true
}
'{
"status": "success",
"data": {
"apiKey": "<string>"
}
}value must be Bearer <token> where <token> is api key prefixed with cal_
Was this page helpful?