Skip to content
ajar.Get started

Refresh account session

booking.auth.refresh

View connector

Consume a caller-held Booking refresh token and return new account tokens. Development trial; no provider credentials are stored on the server.

POST /v1/connections/booking/account-refresh

Headers

Authorization: Bearer YOUR_CONNECTOR_TOKEN
Content-Type: application/json

Inputs

ParameterExample typeExample value
refresh_tokenstring"YOUR_BOOKING_REFRESH_TOKEN"

Example input

{
  "refresh_token": "YOUR_BOOKING_REFRESH_TOKEN"
}

Illustrative response. Keep sealed continuations and account tokens private on your device. Operations use x-booking-token; refresh consumes its separate sealed token.

Example response

{
  "access_token": "YOUR_BOOKING_ACCOUNT_TOKEN",
  "expires_at_epoch_s": 1790814600,
  "refresh_expires_at_epoch_s": 1822350600,
  "refresh_token": "YOUR_BOOKING_REFRESH_TOKEN",
  "token_type": "Bearer"
}
Open JSON schema

Input schema

{
  "additionalProperties": false,
  "properties": {
    "refresh_token": {
      "maxLength": 16384,
      "minLength": 1,
      "type": "string",
      "writeOnly": true,
      "x-sensitive": true
    }
  },
  "required": [
    "refresh_token"
  ],
  "type": "object"
}