cURL
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_
Bearer <token>
<token>
For how many days is managed organization api key valid. Defaults to 30 days.
x >= 1
60
If true, organization api key never expires.
true
success
error
"success"
Show child attributes
Was this page helpful?