Skip to main content
The Set Variable action lets you define a value for a that can be reused anywhere later in your endpoint flow.
Set Variable

Name

The name field defines the variable identifier. This is the key you will use when referencing the value later in the flow. For example, if you’re variable’s name is points, the reference variable will be {local.points}.
If another Set Variable block uses the same name later in the flow, the previous value will be overridden.

Value

The Value field defines what is actually 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

Referencing Variables

To reference the value of a local se the following syntax:
{local.VARIABLE_NAME}
For example, a variable with the name points can be referenced with {local.points}.
Variables created with this block are scoped to the current execution only, and will not persist after the request is completed.

Behavior & Scope

Local variables are available only during the current endpoint execution and do not persist between requests. In addition, they can be overridden within a request if another Set Variable action uses the same identifier name.