← API reference
CANONICAL TYPE REFERENCE

APITokenState

An API token for authenticating API requests

Unique identifier

User who owns this token

nameString!

User-provided name for identification

isRevokedBoolean!

Whether the token has been revoked

isExpiredBoolean!

Whether the token has expired

isActiveBoolean!

Whether the token is active (not revoked and not expired)

Revocation timestamp (ISO8601)

Expiration timestamp (ISO8601)

Last usage timestamp (ISO8601)

Creation timestamp (ISO8601)

deviceIdString

Device identifier for tokens issued via mobile login (null for PATs)

sourceString

How the token was issued: 'mobile' for mobile-login tokens, null for PATs

View exact 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
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.