How to use webhook trigger
Our webhook automation trigger allows you to create or update contacts.
Last updated
{
"error": {
"statusCode": 400,
"name": "Name Of the Error",
"message": "Error Message"
}
}
POST /webhooks/trigger-flow/<workflow-id> HTTP/1.1
Host: apiv1.automation.app.gozen.io
authorization: <your-token>
Content-Type: application/json
Content-Length: <content-length>
{
"contact" :{
"first_name" : "John"
"email_address" : "[email protected]"
}
}
var myHeaders = new Headers();
myHeaders.append("authorization", "<your-token>");
myHeaders.append("Content-Type", "application/json");
var raw = "{\n \"contact\" :{\n \"first_name\" : \"John\"\n \"email_address\" : \"[email protected]\"\n }\n}";
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://apiv1.automation.app.gozen.io/webhooks/trigger-flow/<workflow-id>", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));import requests
import json
url = "https://apiv1.automation.app.gozen.io/webhooks/trigger-flow/<workflow-id>"
payload = "{\n \"contact\" :{\n \"first_name\" : \"John\"\n \"email_address\" : \"[email protected]\"\n }\n}"
headers = {
'authorization': '<your-token>',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)