Skip to Content
ZelithoZelitho Docs
Api reference

Exchange Pairing or Refresh Token

Exchanges an approved `pairing_id` + `device_code`, or rotates an active `zlr_` refresh token, for a fresh `zla_` access token (15 min lifetime).

POST
/api/v1/auth/token

Exchanges an approved pairing_id + device_code, or rotates an active zlr_ refresh token, for a fresh zla_ access token (15 min lifetime).

Request Body

application/json
  1. body
grant_type*string
Value in"pairing""refresh_token"
pairing_id?string
device_code?string
refresh_token?string

Response Body

Returns access_token (zla_...), refresh_token (zlr_...), and token_type: Bearer.

Example Request
curl -X POST 'https://app.zelitho.com/api/v1/auth/token' \  -H 'Content-Type: application/json' \  -d '{  "grant_type": "pairing"}'
Example Response200
Empty