Skip to main content
Version: v1.4

Formatting

Secured Signal API has some specific formatting rules to ensure for correct parsing.

Templates

Secured Signal API is built with Go and therefore uses Go’s standard templating library. As a result, any valid Go template string works in Secured Signal API.

note

The following features use Go’s templating library:

ScopeExampleNote
Body{{@data.key}}
Headers{{#Content_Type}}- becomes _
Variables{{.VAR}}Always uppercase

String to Type

tip

This formatting applies to almost every situation where the only (allowed) input type is a string and other output types are needed

If you are using environment variables for example there would be no way of using arrays or even dictionaries as values, for these cases we have String to Type conversion shown below.

TypeExample
stringabc
string+123
int123
int-123
JSON{"a": "b"}
array(int)[1, 2, 3]
array(string)[a, b, c]
tip

Escape type denotations such as [], {}, or - by prefixing them with a backslash (\).
An odd number of backslashes will escape the character immediately following them