type
property.
The data property contains the actual payload sent by Frigade.
The payload can be a different object depending on the event type.
flowResponse.completedFlow
event for the NPS Survey component with flattened data fields:
data
field using the secret key as the key and compare it to the value in the X-Webhook-Signature
header. The signature is base64 encoded.
Note that when JSON-encoding the data
field it needs to match the order of the keys in the payload and not contain any whitespace between the keys and values.
For example, in Node.js, you can do it like this:
time
field in the payload is the time when the event occurred. You can use this field to verify that the request is not a replay attack by ignoring older events.
flow__id
: The ID of the Flow that triggered the webhookflow__name
: The name of the Flow that triggered the webhookuser__id
: The ID of the user that triggered the webhookuser__name
: The name of the user that triggered the webhook (if available)user__email
: The email of the user that triggered the webhook (if available)