Issue a TAI access + refresh token pair for a device.
POST /auth/token
POST
/auth/token
Authenticates the caller via X-API-Key-ID + X-API-Key-Secret headers and issues a short-lived access token (1 hour) plus a rotating refresh token scoped to (app, externalDeviceId). Omit scopes to receive the app’s full configured scope set.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” X-API-Key-ID
required
string
Trusted App API key id (format pol_tai_<24 base64url>).
X-API-Key-Secret
required
string
Trusted App API key secret (64 hex). Never logged, never echoed.
Request Body required
Section titled “Request Body required ”object
externalDeviceId
required
string
scopes
Array<string>
Responses
Section titled “ Responses ”Token pair issued.
object
accessToken
required
string
refreshToken
required
string
expiresIn
required
integer
tokenType
required
string
scopes
required
Array<string>
Validation error or scope not allowed.
Invalid API key credentials.
Rate limit exceeded.