Skip to main content

Generate a Build API Token

Written by Doris Sooläte

To upload files using the Build Upload API, you need a token to authenticate.

To generate a token for a given workspace, you need to be in a role in the workspace that can create builds (such as Coordinator or Admin). It's recommended to create a user specifically for using the API and create the token under that user.

  1. In LeoCore, click your avatar > Token management (or go directly to https://app2.testlio.com/settings/token-management).

  2. Click + Generate.

  3. Enter a name for the token.

  4. Choose an Expiration – 30, 60, or 90 days. The default is 30 days.

  5. Under Workspace access, select all workspaces the token may reach.

  6. Under Workspace permissions, select Builds.

  7. Click Generate token.

  8. Copy the resulting token and build collection ID.

Note:

  • To access the token and collection ID later, return to Token management and click the relevant token.

  • Always store the token securely, as any other password.

Did this answer your question?