Skip to main content

AccessToken

An access token's metadata. Does not include the raw token value.

type AccessToken {
id: ID!
name: String!
prefix: String!
scopes: [String!]!
expiresAt: DateTime!
revokedAt: DateTime
lastUsedAt: DateTime
createdAt: DateTime!
}

Fields

AccessToken.id ● ID! non-null scalar {#id}

Access token identifier

AccessToken.name ● String! non-null scalar {#name}

Label for this token

AccessToken.prefix ● String! non-null scalar {#prefix}

Short prefix for identifying this token (e.g., md_a1b2c3d4)

AccessToken.scopes ● [String!]! non-null scalar {#scopes}

Permission scopes granted to this token

AccessToken.expiresAt ● DateTime! non-null scalar {#expires-at}

When this token expires (UTC)

AccessToken.revokedAt ● DateTime scalar {#revoked-at}

When this token was revoked, if applicable (UTC)

AccessToken.lastUsedAt ● DateTime scalar {#last-used-at}

When this token was last used for authentication (UTC)

AccessToken.createdAt ● DateTime! non-null scalar {#created-at}

When this token was created (UTC)

Member Of

AccessTokenPayload object