Skip to content
ajar.Get started

Refresh tokens

starbucks.auth.refresh

View connector

Exchange your Starbucks refresh token for new bearer and refresh tokens. Replace both tokens on your device.

POST /v1/connections/starbucks/refresh

Headers

Authorization: Bearer YOUR_CONNECTOR_TOKEN
Content-Type: application/json

Inputs

ParameterExample typeExample value
refresh_tokenstring"YOUR_STARBUCKS_REFRESH_TOKEN"

Example input

{
  "refresh_token": "YOUR_STARBUCKS_REFRESH_TOKEN"
}

Illustrative response. Store your returned tokens on your device and send the access token in x-starbucks-token on Starbucks requests.

Example response

{
  "access_token": "YOUR_STARBUCKS_ACCESS_TOKEN",
  "expires_at_epoch_s": 1790761740,
  "expires_in": 1740,
  "refresh_token": "YOUR_STARBUCKS_REFRESH_TOKEN",
  "token_type": "Bearer"
}
Open JSON schema

Input schema

{
  "$id": "https://useajar.com/schemas/starbucks/starbucks.auth.refresh.input.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "refresh_token": {
      "type": "string",
      "writeOnly": true
    }
  },
  "required": [
    "refresh_token"
  ],
  "type": "object"
}