โ† API reference
Mutation / admin

createAPIToken

Create a new API token for the calling user. Returns the token string only once. Requires apitoken:write permission.

Arguments

Token data

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 for the calling user. Returns the token string only once. Requires apitoken:write permission.
"""
createAPIToken(
  """Token data"""
  input: CreateAPITokenInput!
): CreateAPITokenPayload! @topic(names: ["admin"])

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