# Generate a sandbox token (/core/embed/authentication/how-to/generate-a-sandbox-token)





### Objective [#objective]

In this tutorial, you will learn how to generate a sandbox token in Toucan AI. Sandbox tokens allow you to test embedding your visualizations and dashboards in a controlled environment before using them in production.

***

### Prerequisites [#prerequisites]

* A Toucan AI [account](/core/getting-started/quick-start/subscribe-to-toucan).
* An [API key](/core/embed/authentication) (as seen in the previous tutorial on [how to generate a sandbox API key](/core/embed/authentication/how-to/generate-an-api-key)).

***

### Steps [#steps]

#### 1. Access the Settings Menu [#1-access-the-settings-menu]

* From the main interface, click on the **Settings** button in the menu.

#### 2. Navigate to the Embed Tab [#2-navigate-to-the-embed-tab]

* In the **Settings** menu, click on the **Embed** tab to access token generation settings.

#### 3. Find the Token Generation Sandbox Section [#3-find-the-token-generation-sandbox-section]

* Scroll down to the **Token Generation Sandbox** section within the **Embed** tab.
* This section allows you to generate tokens specifically for testing and embedding purposes.

#### 4. Paste Your API Key [#4-paste-your-api-key]

* In the **Token Generation Sandbox**, you will see a field to paste your **API key**.
* Copy your API key (generated in the previous tutorial) and paste it into this field.

#### 5. Generate the Token [#5-generate-the-token]

* If needed, complete **Custom Attributes** to test your Row Level Security
* After pasting the API key, click the **Generate Token** button.
* A sandbox token will be generated and displayed on the screen. This token is valid for a limited time (1 hour by default) and can be used to test embedding visualizations or dashboards.

<img alt="Token Generation" src="__img0" />

#### 6. Copy and Store the Token [#6-copy-and-store-the-token]

* **Copy the token** to use it for embedding dashboards and testing your integrations.
* Store the token securely in your password manager for future use.

***

### Conclusion [#conclusion]

Congratulations! You have successfully generated a sandbox token in Toucan AI. This token can now be used to test embedding dashboards and charts within your application in a safe environment before going live in production.

**Suggested Next Steps:** [Token Introspection](/core/embed/authentication/how-to/token-introspection)!
