POST
/
v2
/
api-keys
/
refresh
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>"
  }
}

Headers

Authorization
string
required

value must be Bearer <token> where <token> is api key prefixed with cal_

Body

application/json

Response

200 - application/json

The response is of type object.