โ† API reference
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

Bot token data, including the target bot user ID

Returns CreateAPITokenPayload!

Scalar fields at a glance

tokenString
โ†— View the complete CreateAPITokenPayload type

Explore in a view

Administration and IAM
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.