v1

latestOpenAPI 3.0.12026-07-266184114.0 KB
Authentication

Get token information

Returns metadata about the current access token including type, scopes, expiration date, and PAT-specific information if applicable. For PAT tokens, returns full metadata (id, name, preview, created/expiration dates, last used). For OAuth tokens, returns token type and scopes only.

get/auth/token

Response

Token information

token_type'pat' | 'oauth' required

Type of the token

scopesstring[] required

List of scopes granted to this token

idstring nullable

Token ID (PAT only)

namestring nullable

Token name (PAT only)

previewstring nullable

Token preview string (PAT only)

created_dateinteger nullable

Creation timestamp in milliseconds (PAT only)

expiration_dateinteger nullable

Expiration timestamp in milliseconds (PAT only)

last_usedinteger nullable

Last used timestamp in milliseconds (PAT only)