Skip to main content
Version: v1.1.x

Generate an API Token

This guide explains how to generate an API token in the PaletteAI Inference Launchpad console. Clients such as coding assistants use the token to authenticate their requests to the appliance. To understand how tokens, clients, and quotas relate, refer to Clients and Quotas. To create a client and then set its quotas and model access, start with Create a Client.

Prerequisites​

  • A running PaletteAI Inference Launchpad appliance, with the console reachable.
  • An existing client to issue the token to. To create one, refer to Create a Client.
  • Console access with permission to create API tokens. Creating a token can require operator access.

Generate an API Token​

If an administrator already gave you an API token, you can use it and skip the following steps.

  1. From the left main menu, select Access & Policy. The Clients & API tokens page opens.

  2. In the client's row, open the three-dot menu and select Manage Client. The client's detail panel opens to the Overview section.

  3. Select the API tokens section, and then select Create token. The Create API token dialog opens.

  4. (Optional) In the Label field, enter a name that identifies the token, such as the coding assistant that uses it.

  5. In the Expires field, choose the last day the token works. The field is required, and the console accepts a date up to 366 days ahead. The token stops working at the end of the day you choose.

  6. Select Create token.

  7. When the console reveals the token, select Copy. The token begins with lpai_.

warning

The console shows the token only once and stores only a hash of it. Copy it now. If you lose it, revoke the token and create a new one.

Once a token is within seven days of its expiration date, the API tokens list marks it expiring soon. Create a replacement token before the current one expires, then update the coding assistant that uses it.

Next Steps​

Use the token to connect a coding assistant to the appliance. To read the connection steps without leaving the reveal dialog, select Connect a Coding Agent, and then select the tab for your agent.