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

Bearer <apiKey>

Body

application/json
apiKeyDaysValid
number
default:
30

For how many days is managed organization api key valid. Defaults to 30 days.

Required range: x > 1
apiKeyNeverExpires
boolean

If true, organization api key never expires.

Response

200 - application/json
status
enum<string>
required
Available options:
success,
error
data
object
required