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.
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:

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

Navigate to the Tokens Page Log in to the web console and go to the Tokens section.
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.
Generate the Token Click Generate Token to create the token.
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.
Review and Confirm
Verify all token details.
Click Done to save the token.
Delete if Incorrect
If the token details were entered incorrectly, click Delete to remove the token and start the process again.
# 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")
Last updated
Was this helpful?