POST
/
v2
/
oauth-clients
/
{clientId}
/
users
/
{userId}
/
force-refresh
curl --request POST \
  --url https://api.cal.com/v2/oauth-clients/{clientId}/users/{userId}/force-refresh \
  --header 'x-cal-secret-key: <x-cal-secret-key>'
{
  "status": "success",
  "data": {
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
    "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
    "accessTokenExpiresAt": 123,
    "refreshTokenExpiresAt": 123
  }
}

Headers

x-cal-secret-key
string
required

OAuth client secret key

Path Parameters

userId
number
required
clientId
string
required

Response

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

"success"

data
object
required