tokens

Create a new API token

Create a new API token

post/api/v1/tokens/

Request

  • Base URL
    http://localhost:3000
  • Auth
    HTTP bearer

Request body

namestring required

Token name

tokenType'USER_API_TOKEN' | 'BOT_TOKEN' | 'SERVICE_TOKEN' | 'WEBHOOK_TOKEN'

Type of token to create

scopesstring[]

Token scopes/permissions

allowedIpsstring[]

IP whitelist for token

rateLimitinteger

Rate limit per minute

expiresInDaysinteger

Token expiration in days

Response

Default Response

successtrue required

Changes

No recorded changes to this operation across all 6 revisions of this API.