Docs
Reference

n8n Variables

Flat variables workflows read through $vars at execution time.

Flat variables workflows read through $vars at execution time.

The connection

WhatThis provider
Vendorn8n
Keyn8n-variables
Availabilityavailable. You can connect it today.
Credential penv holdsn8n-key
Values read backyes
Activationimmediate

What it moves

DirectionWhat it does
importReads names and values out of the store into penv.
exportWrites names and values from penv into the store.

When a written value goes live

immediate. The running app sees a new value at once.

What happens to a name that exists

DirectionPolicies you can pick
importskip_existing, new_version, fail
exportcreate_only, overwrite, overwrite_and_prune

How syncs work says what each one does.

How you connect

You paste a credential you already hold. penv seals it and never shows it again.

FieldLabelKindRequiredWhat it is
apiKeyAPI keysecret, masked here and sealedyesOn a licensed plan, with variable:list, variable:create, variable:update and variable:delete.

What the connection asks for

Fixed when you connect, and shared by every mapping on it.

FieldLabelKindRequiredAdvancedWhat it is
instanceUrlInstance URLtextyesnoCloud or your own instance. Must be reachable from the internet.

What a mapping asks for

Answered once per environment you map.

FieldLabelKindRequiredAdvancedWhat it is
projectIdProjecttextnoyesLeave empty for the instance's own variables.

Permissions it needs

penv probes for these when it verifies the connection.

PermissionDirectionsBlockingWithout it
variable:listevery directionyesPreview cannot list the instance's variables.
variable:createexportyesExport cannot write anything.
variable:updateexportyesExport can add a variable but never change one that is already there.
variable:deleteexportyesA prune cannot remove anything.