Api Keys
Refresh API Key
Getting Started
Platform / Cal Provider
Platform / Managed Users
Platform / Webhooks
Orgs / Attributes
Orgs / Attributes / Options
Orgs / Event Types
Orgs / Memberships
Orgs / Orgs
Orgs / Schedules
Orgs / Teams
Orgs / Teams / Bookings
Orgs / Teams / Memberships
Orgs / Teams / Routing forms / Responses
Orgs / Teams / Schedules
Orgs / Users / OOO
Orgs / Webhooks
Api Keys
Bookings
- GETGet all bookings
- POSTCreate a booking
- GETGet a booking
- POSTReschedule a booking
- POSTCancel a booking
- POSTMark a booking absence
- POSTAutomatically reassign booking to a new host
- POSTReassign a booking to a specific user
- POSTConfirm booking that requires a confirmation
- POSTDecline booking that requires a confirmation
Calendars
Conferencing
Destination Calendars
Event Types
Event Types / Webhooks
OAuth Clients
Schedules
Selected Calendars
Slots
Stripe
Teams / Event Types
Teams / Memberships
Timezones
Api Keys
Refresh API Key
Generate a new API key and delete the current one. Provide API key to refresh as a Bearer token in the Authorization header (e.g. "Authorization: Bearer <apiKey>").
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
Bearer <apiKey>
Body
application/json
For how many days is managed organization api key valid. Defaults to 30 days.
Required range:
x > 1
If true, organization api key never expires.
Was this page helpful?
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>"
}
}