โ† API reference
Query / admin

getAPIToken

Fetch an API token by ID (user can only see their own tokens). Requires apitoken:read permission.

Arguments

API token ID to fetch

Returns APITokenState

Scalar fields at a glance

userIdUserID!
nameString!
isRevokedBoolean!
isExpiredBoolean!
isActiveBoolean!
โ†— View the complete APITokenState type

Explore in a view

Administration and IAM
View exact SDL
"""
Fetch an API token by ID (user can only see their own tokens). Requires apitoken:read permission.
"""
getAPIToken(
  """API token ID to fetch"""
  id: APITokenID!
): APITokenState @topic(names: ["admin"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.