What does a Netlify Webhook look like?

I’m trying to set up a form submission webhook to a wordpress site (hosted on one.com). Is there any documentation or a way to see the response the webhook gets from my server. The webhook doesn’t seem to come through on a new submission.

Hi @riencoertjens,

I just added a webhook to one of my test sites and did a submission. Below is the payload from the submission webhook:

{
"number": 34,
"title": null,
"email": "test@netlify.com",
"name": "test",
"first_name": "test",
"last_name": null,
"company": null,
"summary": "text field",
"body": "text field",
"data": {
    "name": "test",
    "email": "test@netlify.com",
    "random": "this is random",
    "message": "text field",
    "ip": "195.94.115.46",
    "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36",
    "referrer": "https://test-form--futuregerald.netlify.com/form.html"
},
"created_at": "2019-05-23T17:54:55.388Z",
"human_fields": {
    "Name": "test",
    "Email": "test@netlify.com",
    "Random": "this is random",
    "Message": "text field"
},
"ordered_human_fields": [{
    "title": "Name",
    "name": "name",
    "value": "test"
}, {
    "title": "Email",
    "name": "email",
    "value": "test@netlify.com"
}, {
    "title": "Random",
    "name": "random",
    "value": "this is random"
}, {
    "title": "Message",
    "name": "message",
    "value": "text field"
}],
"id": "5ce6ff10ea475751de6f0eae",
"form_id": "5c5cb856a1aee4a722a62657",
"site_url": "https://www.myfakesite.com",
"form_name": "contact"
}
1 Like

thanks!

for future reference
I got the suggestion to use something like https://requestbin.com/ which workd like charm

I blogged about form handling in Netlify back in January (Customized Form Handling on Netlify with Serverless Functions), and I’m surprised that the shape of the data isn’t documented yet. Is there an open issue for this to get it fixed? The suggestion from Netlify Support to hit requestbin.com helps with the immediate need, but it honestly needs to just be documented, right?

1 Like

Hey @cfjedimaster - I brought your concerns up the Documentation team for this, and we are aware of the issue and have added it on to our roadmap. I can’t give you a specific timeline on this, but we will loop back to update this thread :slight_smile: thanks for pointing this out, really appreciate it. :+1:

1 Like