---
title: How Do I Store API Tokens and Keys for Integration Scripts?
slug: user-guide-10x/how-do-i-store-api-tokens-and-keys-for-integration-scripts
docTags: 
createdAt: 2025-12-15T08:02:10.637Z
---

Swimlane provides a Key Store that may be used for Integration API Tokens and Keys. Even custom Keys for custom Integration scripts may be stored in the Key Store.

1. Base64-encode the token/key as a JSON string.
2. On the Key Store page in the Integrations UI, give the key a name in the "Key Name" field ("Key" in the example below), and insert the base64-encoded JSON string in the "Encrypted Value" field:

![](https://api.archbee.com/api/optimize/n8uUzk0MM4uC57-zlHNtY/tganPGAzdMerj5NNyWH9I_image.png)

3. In your Integration scripts, refer to the key by the name you gave it like this:&#x20;

:::BlockQuote{indent="1"}
key = sw\_context.inputs\['Key']
:::

