Platform & adminMu Mutation

createAPIToken

Topics: Admin

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

Returns

CreateAPITokenPayload!

Arguments

Token data

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

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