Hi,
I have this post request action in zapier :
const options = {
url: 'https://******.ngrok.io/api/Zapier/AudienceListFields',
method: 'POST',
headers: {
'X-API-SECRET': bundle.authData.api_secret,
'X-API-KEY': bundle.authData.api_key,
'Content-Type': 'application/json',
'Connection' : 'keep-alive',
'Accept' : '*/*'
},
params: {
'api_secret': bundle.authData.api_secret,
'api_key': bundle.authData.api_key
},
body: {
'fields': bundle.inputData
}
}
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;
});
The request works in Postman - does not seem to work in Zapier, I get the following : “The app did not respond in-time. It may or may not have completed successfully.”