Question

How to write the request body correctly in custom post request by Webhooks in Zapier?

  • 29 July 2022
  • 0 replies
  • 339 views

The content type is form-data and we have the request body as follows:

 

const options = {

url: '',

method: '',

headers: {

'Content-Type': '',

'Accept': '',

'AccessKey': ''

},

params: {

'secureKey': ''

},

body: {

'username': 'Alex',

}

 

,we recieve this error: 

“message: Invalid organization key

messageType: Error”

 ,This means that the headers or the params are not read?, how can we solve such an issue and write the body request correctly?

And also how is it possible to script JSON inside a form-data parameter?


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.