Pachca icon

Pachca

Interact with Pachca API

Bot → Create Token

AI-generated

Summary

Create a new access token for a specified bot by providing the bot's ID, a token name, and optionally defining token scopes.

Inputs

  • ID (required) — The unique identifier of the bot for which the token is created.
  • Name (required) — A name for the new token, used to distinguish it in the token list.
  • Scopes — Optional comma-separated scopes to restrict the token's permissions to those allowed for bots. If omitted, the token is issued without scopes.

Output shape

a single record containing the created bot token details, including its name and scopes if provided

Requires ownership, admin, or user roles to create a token. The response includes the token and associated metadata. Tokens are differentiated by their name in token listings.

Links

Discussion