Mutation / admin
createBotAPIToken
Create a new API token on behalf of a bot user. Fails if the target user is not a bot. Requires apitoken:write permission.
Arguments
inputCreateBotAPITokenInput!Bot token data, including the target bot user ID
Returns CreateAPITokenPayload!
Explore in a view
View exact SDL
"""
Create a new API token on behalf of a bot user. Fails if the target user is not a bot. Requires apitoken:write permission.
"""
createBotAPIToken(
"""Bot token data, including the target bot user ID"""
input: CreateBotAPITokenInput!
): CreateAPITokenPayload! @topic(names: ["admin"])Schema reference describes the API contract. Actual access is checked by the platform for every operation.