Skip to main content

Field Mappings

A Compatibility Layer for Secured Signal API.

To improve compatibility with other services Secured Signal API provides Field Mappings and even a built-in message Mapping.

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

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

Field Mappings can be added by setting message.fieldMappings in your config:

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

Use @ for mapping to Body Keys and . for mapping to Variables.