Homepage

constant_set

Last edit: Nov 01, 2026

Creates a constant, or replaces the value of an existing one with the same
name, and returns it. Values are stored encrypted and are available in Liquid
as context.constants. Raises an error when name or value is blank

constant_set(
  name: String!
  value: String!
): EncryptedConstant!

Arguments

name (String)

Name of the constant

value (String)

Value of the constant, stored encrypted

Type

EncryptedConstant

Constant: a named secret value (e.g. an API key) stored encrypted and available in Liquid as context.constants

Questions?

We are always happy to help with any questions you may have.

contact us