← API reference
CANONICAL TYPE REFERENCE

DeviceTokenState

An authentication token for a device

Unique identifier

Associated device ID

nameString!

Token name

Token description

Expiration timestamp (ISO8601)

Last used timestamp (ISO8601)

isRevokedBoolean!

Whether the token has been revoked

createdAtString!

Creation timestamp (ISO8601)

updatedAtString!

Last update timestamp (ISO8601)

Whether this token has a live mTLS certificate of its own — that is, whether revoking it would actually stop the device connecting. False for a token issued before certificates recorded the token that issued them, and for one whose certificate is already revoked; in the first case the device keeps connecting until it is deleted.

View exact SDL
"""An authentication token for a device"""
type DeviceTokenState {
  """Unique identifier"""
  id: DeviceTokenID!
  """Associated device ID"""
  deviceId: DeviceID!
  """Token name"""
  name: String!
  """Token description"""
  description: String
  """Expiration timestamp (ISO8601)"""
  expiresAt: ISO8601
  """Last used timestamp (ISO8601)"""
  lastUsedAt: ISO8601
  """Whether the token has been revoked"""
  isRevoked: Boolean!
  """Creation timestamp (ISO8601)"""
  createdAt: String!
  """Last update timestamp (ISO8601)"""
  updatedAt: String!
  """
  Whether this token has a live mTLS certificate of its own — that is, whether revoking it would actually stop the device connecting. False for a token issued before certificates recorded the token that issued them, and for one whose certificate is already revoked; in the first case the device keeps connecting until it is deleted.
  """
  hasLinkedCertificate: Boolean!
}

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