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.
OAuth2 Authorization Grant
Token information
Type of the token
pat, oauth List of scopes granted to this token
Token ID (PAT only)
Token name (PAT only)
Token preview string (PAT only)
Creation timestamp in milliseconds (PAT only)
Expiration timestamp in milliseconds (PAT only)
Last used timestamp in milliseconds (PAT only)