Global values
Workspace-wide values reused in emails, automation steps and conditions as {{global.key}}.
Create a global value
Creates a global value: one value for the whole workspace, used as {{global.<key>}} in templates, campaigns, automation emails and step settings, in conditions, and as a date to wait for. Requires an API key with the full scope. See Global values.
/global-valuesBody parameters
keystringrequired_, up to 64 characters. Unique in the workspace.namestringtypestringdefault: texttext, number, boolean, date, datetime or url.valuestring | number | booleanThe value, checked against the type: a number for number, true or false for boolean, YYYY-MM-DD for date, an ISO 8601 date and time for datetime (stored in UTC), and an http or https URL for url.
descriptionstringReturns
Returns 201 with the global value in data. Returns 400 with errors when a field is invalid, 409 when the key is taken, and 422 when the workspace has 500 global values.
The global value object
objectstringglobal_value.idstringgv_…).keystring{{global.<key>}}.namestring | nulltypestringtext, number, boolean, date, datetime or url.valuestring | number | boolean | nullnumber, true or false for boolean, and a string otherwise (YYYY-MM-DD for date, ISO 8601 in UTC for datetime).descriptionstring | nullcreated_atstringupdated_atstringRetrieve a global value
Returns one global value. Requires an API key with the full scope.
/global-values/{id}Path parameters
idstringrequiredgv_…) or the key.Returns
Returns the global value in data, or 404.
Update a global value
Changes a global value. Send only the fields to change. Requires an API key with the full scope.
Emails sent from then on use the new value, and so do automation runs that reach a Wait until step afterwards. Runs already waiting keep the date they read. Changing the key breaks {{global.<old key>}} in your templates.
/global-values/{id}Path parameters
idstringrequiredgv_…) or the key.Body parameters
keystringnamestring | nulltypestringvalue too.valuestring | number | boolean | nullnull clears it.descriptionstring | nullReturns
Returns the updated global value in data. Returns 400 when a field is invalid, 404 if it doesn’t exist, and 409 when the new key is taken.
List global values
Returns every global value of the workspace, sorted by key. A workspace has at most 500, so there’s no paging. Requires an API key with the full scope.
/global-valuesReturns
dataobject[]Delete a global value
Deletes a global value. {{global.<key>}} then renders empty, conditions on it see no value, and Wait until steps that read it take their “date passed” path. Requires an API key with the full scope.
/global-values/{id}Path parameters
idstringrequiredgv_…) or the key.Returns
Returns { "message": "Global value was deleted." }, or 404.