Files
n8n-docs/docs/code-examples/methods-variables-examples/vars.md
Deborah Barnard f2cbad1937 fix 404s
2023-08-01 15:45:22 +01:00

775 B

description, contentType
description contentType
Access your environment's custom variables. reference

$vars

!!! info "Feature availability" * Available on Self-hosted Enterprise and Pro and Enterprise Cloud plans. * You need access to the n8n instance owner account to create variables.

$vars contains all Variables for the active environment. It's read-only: you can access variables using $vars, but must set them using the UI.

// Access a variable
$vars.<variable-name>

!!! note "$vars and $env" $vars gives access to user-created variables. It's part of the Environments feature. $env gives access to the configuration environment variables for your n8n instance.