APITokenState
An API token for authenticating API requests
Fields
Unique identifier
User who owns this token
User-provided name for identification
Whether the token has been revoked
Whether the token has expired
Whether the token is active (not revoked and not expired)
Revocation timestamp (ISO8601)
Expiration timestamp (ISO8601)
Last usage timestamp (ISO8601)
Creation timestamp (ISO8601)
Device identifier for tokens issued via mobile login (null for PATs)
How the token was issued: 'mobile' for mobile-login tokens, null for PATs
Referenced by (3)
Exact type SDL
"""An API token for authenticating API requests"""
type APITokenState {
"""Unique identifier"""
id: APITokenID!
"""User who owns this token"""
userId: UserID!
"""User-provided name for identification"""
name: String!
"""Whether the token has been revoked"""
isRevoked: Boolean!
"""Whether the token has expired"""
isExpired: Boolean!
"""Whether the token is active (not revoked and not expired)"""
isActive: Boolean!
"""Revocation timestamp (ISO8601)"""
revokedAt: ISO8601
"""Expiration timestamp (ISO8601)"""
expiresAt: ISO8601
"""Last usage timestamp (ISO8601)"""
lastUsedAt: ISO8601
"""Creation timestamp (ISO8601)"""
createdAt: ISO8601!
"""Device identifier for tokens issued via mobile login (null for PATs)"""
deviceId: String
"""
How the token was issued: 'mobile' for mobile-login tokens, null for PATs
"""
source: String
}