• Русский
  • AccessToken [v1]

    /auth/v1/accesstoken

    post Create an API Token

    Creates a new API access token for the current authenticated user. The token inherits the same permissions as the user and can be used for API authentication. It can be configured with an optional expiration time. If no expiration is set, the token will be permanent.

    Request Body

    AccessTokenRequest

    Response

    • 201 AccessToken: Successfully created access token
    • 401 : Unauthorized - Invalid or missing authentication credentials

    AccessTokenRequest

    • expiration: integer

      Token expiration timestamp in seconds. For permanent tokens, leave this field empty or omit it.

    • description: string

      Description of the token

    AccessToken

    • id: string

      Unique identifier of the token

    • token: string

      The access token in JWT format

    • timestamp: integer

      Token issuance timestamp in seconds

    • expiration: integer

      Token expiration timestamp in seconds

    • description: string

      Description of the token