Users

Get the current bearer token info

Decode the bearer token used to make this request and return its standard JWT claims (aud, jti, iat, nbf, exp, sub). Useful as an introspection endpoint when a client needs to know when its token expires or which user the token is currently bound to without parsing the JWT itself.

The token is verified with Trybe's signing key before the claims are returned, so a successful response also confirms the token is currently valid. The response only includes the six claims listed above; custom claims and private extensions are intentionally stripped.

get/token-info

Response

The decoded JWT claims for the caller's bearer token.

audstring

The audience claim — the OAuth client ID the token was issued to.

jtistring

Unique identifier for this specific token, mirroring the record in Trybe's access-token store.

iatinteger

Issued-at timestamp, in seconds since the Unix epoch.

nbfinteger

Not-before timestamp, in seconds since the Unix epoch. The token is not valid before this instant.

expinteger

Expiry timestamp, in seconds since the Unix epoch. The token cannot be used to authenticate after this instant.

substring

Subject — the ID of the user (or API user) the token is bound to.

Changes