curl --location --request PUT '/smartflows//actions/webhook/' \
--header 'Authorization: Bearer JWT' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Custom activity name",
"url": "https://facebook.com/webhooks/sfasf351",
"method": "get",
"headers": [
{
"key": "authorization",
"value": "s;fljeklsff456s"
}
],
"bodyFormat": "json",
"body": "{\"data\":{\"firstname\":\"John\",\"lastname\":\"Doe\",\"email\":\"john.doe@gmail.com\"}}",
"onError": "dontCare",
"saveResponse": [
{
"jsonPath": "data.contact_id",
"contactField": "facebook_id"
}
]
}'