---
title: Set Up a Litmus Edge API Token for an Application Release
slug: edgemanager-2-31-x/lem-user-ui/product-features/marketplace-catalogs-and-applications/application-releases/add-a-draft-application-release/set-up-a-litmus-edge-api-token-for-an-application-release
description: When setting up an application release to be deployed, it is possible to pass an API token for the application release's respective Docker container. 
docTags: 
createdAt: 2023-05-09T18:36:08.000Z
---

When configuring an application release for deployment to a Litmus Edge instance, you can include an API token for the Docker container of the release. Follow the steps below to create and apply the API token.&#x20;

# Before You Begin

- Ensure you know how to create a draft application release. See [Create a Draft Application Release](docId\:pujQCF4jL0dUe8XjHsjmZ) for details.

# Step 1: Create The `EGDE_API_TOKEN` Variable

1. Create a variable named `EDGE_API_TOKEN` for the application release.
2. Set the variable value and adjust any other parameters as needed.&#x20;

::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/9cdJo-4RfbIB1NQTR60H3_image.png" size="80" width="1168" height="547" caption="EDGE_API_TOKEN" position="center" showCaption="true"}

# Step 2: Complete and Submit Application Release

1. Follow the instructions from *Step 3-Step 5* in [Add a Draft Application Release](docId\:pujQCF4jL0dUe8XjHsjmZ) to create a draft application release.&#x20;
2. Submit the draft release when ready.&#x20;

# Step 3: Launch the Application from Litmus Edge Manager

1. To ensure the `EDGE_API_TOKEN` is properly set, launch the application from the **Litmus Edge Manager (LEM)**.
2. LEM will automatically create an API token named `MPC-APP` in Litmus Edge during this process if it does not already exist.
3. The `MPC-APP` token value will be passed into the `EDGE_API_TOKEN` environment variable.

:::hint{type="info"}
**Important Notes:**&#x20;

- If the application is launched directly from Litmus Edge, the environment variable will not include the API token.
- If the application is not working as expected, use ***Step 4&#x20;***& ***Step 5*** to verify that the API token is created and passed correctly.&#x20;
:::

# (Optional) Step 4: Confirm API Token

**To confirm an API token with the name `MPC-APP` exists on your litmus edge:**

1. Log in to Litmus Edge.
2. From the Navigation panel, navigate to **System&#x20;**>**&#x20;Tokens**.   &#x20;
   The *NATS Proxy&#x20;*&#x70;ane appears.&#x20;
3. Ensure the `MPC-APP` token is created and appears in the list.

::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/dptzQa8b53RHHiVaFksQp_image.png" size="80" width="1713" height="846" caption="System > Tokens" position="center" showCaption="true"}

# (Optional) Step 5: Verify Passed API Token Assignment to Docker Container&#x20;

**To ensure that the API Token has been passed to the Docker Container from Litmus Edge:**

1. Log in to Litmus Edge.
2. From the Navigation panel, select **Applications**.
   The *Dashboard&#x20;*&#x70;ane appears.
3. Click **Containers**.&#x20;
   The *Containers&#x20;*&#x70;ane appears.
4. Click **Inspect&#x20;**&#x74;o view the container details.

   ![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/i4R-aT6xb-nd0PoVT6BaE_2023-07-2111-11-45.png "Inspect button location")
5. Scroll down to the **Config&#x20;**&#x73;ection under **Env&#x20;**&#x61;nd check that `EDGE_API_TOKEN` matches the `MPC-APP` token from Step 3.

::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/-nl3uwYRyZbHpmacyPxo6_image.png" size="80" width="1713" height="846" position="center" caption="Config: Env" showCaption="true"}

