starbucks.auth.refresh
View connectorExchange your Starbucks refresh token for new bearer and refresh tokens. Replace both tokens on your device.
POST /v1/connections/starbucks/refreshHeaders
Authorization: Bearer YOUR_CONNECTOR_TOKEN
Content-Type: application/jsonInputs
| Parameter | Example type | Example value |
|---|---|---|
| refresh_token | string | "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"
}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"
}