curl --location --request POST 'https://connect.dispatchable.com/automations/api/v1/webhooks' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Lead Created → Notify CRM",
"description": "Send new lead to external endpoint",
"method": "POST",
"url_to_notify": "https://hooks.zapier.com/hooks/catch/9134075/usu88l9/",
"authorization_type": "GENERAL",
"module": "Loads",
"headers": {
"module_params": [
{
"name": "X-Lead-State",
"type": "Loads",
"value": "state"
}
],
"custom_params": [
{
"name": "X-App",
"value": "Dispatchable"
}
]
},
"body": {
"type": "form-data",
"module_params": [
{
"name": "first_name",
"type": "Leads",
"value": "first_name"
},
{
"name": "email",
"type": "Leads",
"value": "email"
}
],
"custom_params": [
{
"name": "source",
"value": "webform"
}
],
"user_defined": [
{
"name": "note",
"value": "New inquiry for #service_type# from #city#, #state#"
}
]
},
"is_active": true
}'