# Workflow variables

> Workflow variables allow you to store these credentials securely and access them from within a workflow.

Source: https://help.kustomer.com/en_us/workflow-variables-rJ2g6DeIV

Last updated: 2024-09-23T19:47:42.584Z

Within workflows, you may want to use secure credentials such as API keys. Most commonly, this is done via a [REST API JSON](https://help.kustomer.com/calling-a-rest-api-within-a-workflow-rk3GGm3Gf) action step, where you need to pass in the appropriate headers for authorization. Workflow variables allow you to store these credentials securely and access them from within a workflow.

**Who can access this feature?**

**User types**

Admins can create workflows.

  

### In this article

*   [Create a workflow variable](#create)
*   [Access a workflow variable](#access)

### Create a workflow variable

To create a workflow variable, navigate to **Workflow Options![](https://cdn.kustomerhostedcontent.com/media/570fad9d9001bc1000163b28/a728c62c706522889aba544991cae06b.png)** and select **Workflow Variables**. When creating a new workflow variable, remember that the name cannot contain spaces. Once saved, you can edit or delete this variable in the future.

**Note:** Variables you create are _workflow-specific_. If you duplicate a workflow that contains a variable, you must create a new variable for the duplicated workflow.

  
![](https://cdn.kustomerhostedcontent.com/media/570fad9d9001bc1000163b28/ebed5c88567b416d07db29bb1203dbe7.gif)

### Access a workflow variable

Select the key icon and copy the desired workflow variable to access a workflow variable within the REST API JSON action step. Then, you can paste this value where the secure API token is needed for authorization.  
![](https://cdn.kustomerhostedcontent.com/media/570fad9d9001bc1000163b28/af45120e2ca43265e108b62a53653638.gif)

To access a workflow variable within a standard entry field, click the icon on the right > Variables > and select the desired workflow variable.    
![](https://cdn.kustomerhostedcontent.com/media/570fad9d9001bc1000163b28/0cdffced26c993952f74b05c27513f93.gif)

### Related Articles

*   [Calling a REST API Within a Workflow](https://help.kustomer.com/calling-a-rest-api-within-a-workflow-rk3GGm3Gf)
