Token

Token are used to authenticate and authorize requests to the Lepton AI. They are essential for logging in via the CLI, API, or SDKs. Currently, we support two types of tokens: User Token and Workspace Token. These two tokens are auto-generated when you signed up and created your workspace.

Viewing Tokens

You can view your tokens on the Token tab on the left-hand side of the workspace settings page.

Tokens

Using Tokens

Token can be used to authenticate requests to the Lepton API. Simply include the token in the Authorization header of your request:

curl '<url>' \
  -H 'authorization: Bearer <token>' \
  ...

You can also use tokens to authenticate with the Lepton CLI. Simply run:

lep login --c <token>
Lepton AI

© 2024