Skip to main content
How-To · Access Control

How-To: Create User Access Token

This guide shows how to create a User Access Token in the Lattica Console or with the Python SDK. Whoever holds the token can send encrypted queries to the model it is assigned to.

Before you start​

One token, one model

A token gives access to one model. Create a separate token for each app or person that queries the model, so you can cancel one without affecting the others.

Unassigned tokens

A token created without a model is unassigned. It can't be used for queries until you assign it to a model.

Shown only once

The token value appears only once, right after you generate it. It is not stored, so it can't be shown again.

Change it later

After creation you can rename a token, change its status (Active, Suspended, Canceled) or modify its settings, and assign it to a model.

Copy the value before you close the dialog

The token value is not stored in the system and cannot be retrieved after the dialog closes. If you lose it, delete the token and create a new one.

Token expiration​

A token has two separate time limits:

  • The expiration you choose. When you create a token, you decide when it stops working: on a set date, or never, so it stays valid until it is canceled.
  • The 30-day renewal. Separately, the platform requires every token that is still valid to be renewed every 30 days.
clinic-pilotExpiration: 7 days
clinic-frontendExpiration: none
Both tokens are created on November 1. clinic-pilot stops working on November 7, its own expiration date, so it never reaches a renewal. clinic-frontend has no expiration and stays valid until it is canceled, but it must be renewed every 30 days: on December 1, December 31, and so on.

Create a token​

Pick the method that fits your workflow. The two Console methods open the same Create new token dialog:

  • From a specific model: Start here if you already have a target model in mind and want to create tokens that work with it. The model is automatically pre-filled in the dialog.
  • From the Tokens page: Start here if you want to create tokens first and decide later which model to allow them to work with (creating an unassigned token), or to manage all tokens in one place.

After a token is created, it can always be modified, including removing its assignment from a specific model and assigning it to another one.

Use this when the token is for a model you already have. The model is filled in for you.

Console Models page listing the DermAI Spotter, Retina Screen and Sentiment Pulse models, each with a "tokens connected" button
DermAI Spotter drawer on the Tokens tab, with the Add token list open showing an unassigned token and Create new token
Create new token dialog with the token name filled in and Model permission already set to DermAI Spotter
Create new token dialog after Generate token: a warning, the personal access token with a Copy button, and Delete and Done buttons
Step 1 of 11:
Open Models

In the Console, select Models in the left menu.