Using a webhook (dedicated, without Attach or Detach) to trigger a module to get additional data.
Webhook payload is just 3 parameters:
{
"unique_id": "<unique id>",
"credential": "<credentials>",
"event": "new-waiver"
}
Then get data associated with the unique_id, which has to be in the API URL as follows:
{
// Request to API endpoint with parameter "id" defined in Mappable parameters.
"url": "/waivers/{{connection.unique_id}}", // Relative to base URL
"method": "GET",
"headers": {},
"qs": {},
"response": {
"output": "{{body}}"
}
}
However, that does not provide the necessary data for the call, I’ve tried connection.body.unique_id
, webhook.unique_id
, and other permutations, but none are pulling in the data from the webhook I need.
Webhook is just simply
{
"output": "{{body}}"
}
What am I missing here?
Thanks