Skip to main content

Data Aliases

A Compatibility Layer for Secured Signal API.

To improve compatibility with other services Secured Signal API provides Data Aliases and even a built-in message Alias.

Default message Aliases
AliasScoreAliasScore
msg100data.content9
content99data.description8
description98data.text7
text20data.summary6
summary15data.details5
details14body2
data.message10data1

Secured Signal API will pick the highest scoring Data Alias (if available) to set the key to the correct value using the request body.

Data Aliases can be added by setting dataAliases in your config:

settings:
dataAliases:
"@message":
[
{ alias: "msg", score: 80 },
{ alias: "data.message", score: 79 },
{ alias: "array[0].message", score: 78 },
]
".NUMBER": [{ alias: "phone_number", score: 100 }]
info

Use @ for aliasing Body Keys and . for aliasing Variables.