---
title: Create or Edit the Key Store
slug: user-guide-10x/create-or-edit-the-key-store
docTags: 
createdAt: 2025-06-18T11:01:36.089Z
---

﻿Use the Key Store to encrypt sensitive information such as passwords, tokens, etc., and leverage the values in your actions.

::Image[]{src="https://api.archbee.com/api/optimize/511c8QBH-VHiwWnyzIwUb/wbZA6ChFnMfhiiVzNROHy_keystore.png" size="30" width="839" height="656" position="center" showCaption="false"}

From Integrations, click the **Key Store** tab. To add a key, click **+** on the tab. New fields appear at the bottom of your list of keys. Complete the **Key Name** and **Encrypted Value** fields and then click the checkmark to save the key record.

Enter as many key and value pairs as needed.

:::hint{type="info"}
&#x20;The values are encrypted in Swimlane's database.
:::

## Store API Tokens and Keys for Integration Scripts

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.


   ::Image[]{src="https://api.archbee.com/api/optimize/511c8QBH-VHiwWnyzIwUb/QL1AXRLb0rcgl83gmVIvk_integration-keystore-jsonstring.png" size="38" width="994" height="251" position="center" showCaption="false"}
3. In your integration scripts, refer to the key by the name you gave it like this: 

   `key = sw_context.inputs['Key']`

