listBotAPITokens

Topics: Admin

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.

Returns

APITokenConnection!

Arguments

userId

UserID!Required

Bot user whose tokens to list

first

IntOptional

Number of items from the start

after

StringOptional

Cursor to start after

Filter criteria

Sort order

Exact field 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"])

Declared on Query. Access is checked by the platform for each operation.