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
firstIntNumber of items from the start
afterStringCursor to start after
filterAPITokenFilterInputFilter criteria
sort[APITokenSortInput!]Sort order
Returns APITokenConnection!
Explore in a view
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.