LatticaAI Documentation
  • Welcome to LatticaAI
  • Conceptual Guide
  • Architecture Overview
    • Management Client
    • Query Client
  • Platform Workflows
    • Account Management
    • Model Management
    • User Access Management
    • Query Submission
    • Credit Management
    • Worker Management
  • How-To Guides
    • Client Installation
      • How-To: Install Management Client
      • How-To: Install Query Client
    • Model Lifecycle
      • How-To: Deploy AI model
      • How-To: Modify AI Model Settings
    • Access Control
      • How-To: Create User Access Token
      • How-To: Modify User Access Token Setting
      • How-To: Remove Token's Assignment
      • How-To: Assign Token to Model
      • How-To: See List of Tokens
    • Resource Management
      • How-To: Start Worker
      • How-To: Stop Worker
      • How-To: Monitor Worker Performance
    • Secure Query Processing
      • How To: Upload Evaluation Key
      • How-To: Encrypt Input Message
      • How To: Execute Query
      • How-To: Decrypt Output Data
      • How-To: Encrypt, Execute, and Decrypt in One Step
    • Account and Finance Operations
      • How-To: View Payment Transaction History
      • How-To: Update Account Information
      • How-To: View Credit Balance and Add Credit to Your Account
      • How-To: Monitor Balance and Usage
  • Demo Tutorials
    • Image Sharpening with LatticaAI Demo Tutorial
    • Sentiment Analysis with LatticaAI Demo Tutorial
    • Health Analysis with LatticaAI Demo Tutorial
    • Digit Recognition with LatticaAI Demo Tutorial
    • Zooming Into Each Step of Demo Run with LatticaAI flow
Powered by GitBook
On this page

Was this helpful?

  1. How-To Guides
  2. Access Control

How-To: Create User Access Token

This guide explains how to create a User Access Token using two methods: the Web Console and the Python SDK.

PreviousAccess ControlNextHow-To: Modify User Access Token Setting

Last updated 3 months ago

Was this helpful?

  • Model-Specific: Tokens created are specific to one user and one model. Unassigned tokens can be linked to a model later.

  • Expiration: Tokens are valid for 30 days and must be renewed upon expiration.

  • Token Management: After creation, tokens can be updated, or reassigned, or their status (active/cancelled) can be changed as needed.

Follow these steps to create a token for a specific model through the LatticaAI web console:

1

Navigate to Model's Token Management

Go to the Token Management section of the specific Model on the dashboard.

2

Create a New Token

  • Click Create Token.

  • Enter a name for the token for easy identification.

  • Specify the AI model to which the token will be linked.

    Optional: Leave the model field empty if you want to create an unassigned token.

3

Generate

Click Generate to generate the token. The new token will appear in the list, where you can manage its attributes, status, or assignment.

4

Copy the Token Value

After the token is generated, the system displays the token value. Copy this token value for future use.

The token is not stored in the system and cannot be retrieved later.

5

Review and Confirm

  • Verify all token details.

  • Click Done to save the token.

6

Delete if Incorrect

If the token details were entered incorrectly, click Delete to remove the token and start the process again.

You can create tokens directly from the Tokens List page. This process is useful for creating unassigned tokens or managing tokens centrally.

  1. Navigate to the Tokens Page Log in to the web console and go to the Tokens section.

  2. Click "Add Token"

    • Click the Add Token button to open the token creation window.

    • Fill in the token details

      • Note: The end user cannot use unassigned tokens until they are linked to a model.

  3. Generate the Token Click Generate Token to create the token.

  4. Copy the Token Value

    • After the token is generated, the system displays the token value.

    • Important: Copy this token value for future use. The token is not stored in the system and cannot be retrieved later.

  5. Review and Confirm

    • Verify all token details.

    • Click Done to save the token.

  6. Delete if Incorrect

    • If the token details were entered incorrectly, click Delete to remove the token and start the process again.

Keep the generated token in a secure place!

# Generate Token

import LatticaManagement

# Authenticate
lattica = LatticaManagement("your_license_from_lattica_console")

# Register a new model...
model_id = lattica.create_model("model_name")

# Generate a token
token_id, token = lattica.generate_query_token(model_id, "token_name")

Create Token Flow