โ† API reference
Query / admin

listBotAPITokens

List the API tokens belonging to a bot user. Returns an empty list if the target user is not a bot. Requires apitoken:list permission.

Arguments

userIdUserID!

Bot user whose tokens to list

firstInt

Number of items from the start

afterString

Cursor to start after

Filter criteria

Sort order

Returns APITokenConnection!

Scalar fields at a glance

totalCountInt
โ†— View the complete APITokenConnection type

Explore in a view

Administration and IAM
View exact SDL
"""
List the API tokens belonging to a bot user. Returns an empty list if the target user is not a bot. Requires apitoken:list permission.
"""
listBotAPITokens(
  """Bot user whose tokens to list"""
  userId: UserID!
  """Number of items from the start"""
  first: Int
  """Cursor to start after"""
  after: String
  """Filter criteria"""
  filter: APITokenFilterInput
  """Sort order"""
  sort: [APITokenSortInput!]
): APITokenConnection! @topic(names: ["admin"])

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