Skip to main content

We are integrating Zappier into our product. While any  user creates Zap we would like to store that Zap Webhook into our database. Can you please help on this. Currently we are doing as below 

 

const options = {
url: 'https://<ourserverwebsiteendpoint>',
method: 'GET',
headers: {
'Accept': 'application/json',
'X-USER-EMAIL': bundle.authData.user_email,
'X-API-KEY': bundle.authData.api_key
},
params: {
'user_email': bundle.authData.user_email,
'api_key': bundle.authData.api_key,
'hookUrl': bundle.targetUrl,
'hookIsTesting': bundle.meta.isTestingAuth
}
}

return z.request(options)
.then((response) => {
response.throwForStatus();
const results = response.json;

// You can do any parsing you need for results here before returning them

return results;
});

 

We are expecting bundle.targetUrl to have that but we are getting Null. help will be appreciated 

Hey @kartikace ,

You’re spot on: bundle.targetUrl should definitely include the webhook URL.

One thing that stands out to me:

  • I see that the request is using the GET method

It certainly depends on your API, but we’d typically expect a Subscribe request to use the POST method. If you haven’t done so already, it might help to try switching the method to POST.

If this continues, please feel free to reach out to our Platform Support team. They’ll be glad to take a closer look: https://developer.zapier.com/contact