Skip to main content
The Set Variable action lets you define a value that can be reused anywhere later in your endpoint flow. Variables created with this block are scoped to the current execution only.
Screenshot2026 02 20at23 27 07

Name

The Name field defines the variable identifier. This is the key you will use when referencing the value later in the flow. Variable names:
  • Must be unique within the same execution scope
  • Should not contain spaces
  • Are case-sensitive
If another Set Variable block uses the same name later in the flow, the previous value is overridden.

Value

The Value field defines what is stored in the variable. This can be:
  • Static text (for example, Hello world)
  • A number (for example, 42)
  • A boolean (true / false)
  • A dynamic reference (for example, {request.body.name})
  • A computed value from previous blocks or input from a query parameter
The value is stored exactly as defined at the moment this block runs.

Referencing Variables

Use the following syntax:
{local.VARIABLE_NAME}

Example

If you create:
  • Name: userId
  • Value: {request.body.id}
You can reference it later as:
{local.userId}

Behavior & Scope

  • Variables are available only during the current endpoint execution.
  • Variables do not persist between requests.
  • Variables can be overridden by redefining the same name later in the flow.
The Set Variable block helps keep flows clean, readable, and easier to maintain.