> For the complete documentation index, see [llms.txt](https://docs.erathos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.erathos.com/api/concepts/variables-and-secrets.md).

# Variables and secrets

### Variables and Secrets

The platform provides a centralized feature for managing frequently used values, such as destination URLs or authentication credentials, through **variables** and **secrets**. These values follow a **Key → Value** format for easy organization and reuse.

* **Variables**: These are values that can be reused across different webhooks and other processes. Variables can be accessed at any time after registration.
* **Secrets**: These are sensitive values, such as credentials, that cannot be retrieved after creation, providing an added layer of security.

{% hint style="info" %}
We recommend using **secrets** to store confidential data that should not be accessed by other users within the workspace.
{% endhint %}

### Using them in a webhook

Reference a variable as `${{variables.NAME}}` and a secret as `${{secrets.NAME}}` anywhere in a webhook's url, header or body. They're replaced with their values just before the webhook is sent. For example, an `Authorization` header of `Bearer ${{secrets.AIRFLOW_TOKEN}}`, or a url of `https://${{variables.AIRFLOW_HOST}}/api/v1/dags`.

A reference to a name that doesn't exist is sent as written, so create the variable or secret before referencing it.

### Names and values

* **Names** use letters, digits and underscores, and don't start with a digit, e.g. `AIRFLOW_TOKEN` or `API_KEY_V2`.
* **Names are case-insensitive**: `AIRFLOW_TOKEN` and `airflow_token` are the same name, so a workspace can't have both. References are case-insensitive too.
* **Values** can be up to 10,000 characters, enough for long credentials such as JWT tokens.
* A name can't be changed after it's created; create a new one instead.
