A webhook received from a form in JSON format consists of a "fields" object, which contains objects for each of the contact form fields from which this webhook came (examples below). At the same time, automatically generated form field identifiers act as keys in the "fields" object.
In turn, each field object has 3 keys with corresponding values — keys "title", "value", and "type":
- "title" is the field's name that was specified in your contact form's settings in the editor. If the name is not specified, the placeholder value inside the field is used. If both the field name and the placeholder are missing, the value of the "title" field will be empty ("");
- "value" is what the visitor of your site specified when filling out the form;
- "type" is the field type you selected in the editor when adding this field to the contact form.
- Short text — "text"
- Long text — "textArea"
- Email — "email"
- Phone — "phone"
- Dropdown — "dropDown"
- Date — "date"
- Radio button — "radioButton"
- Check box — "checkbox"
- Attach file — "file"
- I accept — "accept"
Below is an example of a received webhook with each of the 10 possible fields:
{
"fields": {
"short_text": {
"title": "Short text",
"value": "An example of a short text",
"type": "text"
},
"867b7a8a-e9f4-460d-a7f7-2e15fd6fa07c": {
"title": "Long text",
"value": "Old cherry garden near the house\nAnd beetles buzzing in green leaves,\nThe plowers carrying their plows,\nAnd mothers cooking supper meals.",
"type": "textArea"
},
"contactForm_email": {
"title": "Email",
"value": "example@gmail.com",
"type": "email"
},
"contactForm_phoneNumber": {
"title": "Phone number",
"value": "380441234567",
"type": "phone"
},
"66107134-153a-4289-ae9b-332afb0fdd09": {
"title": "Dropdown",
"value": "Текст вибраного варіанту",
"type": "dropDown"
},
"cbae3dd6-c4f2-4873-9aa3-49b50e2e3d83": {
"title": "Date",
"value": "21/12/2022, 00:00",
"type": "date"
},
"7d56d144-2895-4ada-9bcd-e807699cbc31": {
"title": "Radio button",
"value": "Option 2",
"type": "radioButton"
},
"1bda072e-3229-4e53-80a9-276f583bb868": {
"title": "Checkbox",
"value": {
"25c4fe25-e867-4609-b6dc-46bd532f2f8f": "Option 2",
"439c67f1-3de9-48e2-a5c7-62f7e99ad995": "Option 1"
},
"type": "checkbox"
},
"47b71927-1a38-4b50-8b09-b01ec847207f": {
"title": "Attach file",
"value": {
"url": "//storage.googleapis.com/contact-forms-storage/contact-forms/63036758c37a64000d97f1eb/0c7daa2f-661c-4956-89ec-a6cabcb86a5c",
"fileName": "kitten-510651.jpg"
},
"type": "file"
},
"df355ffe-fa85-4610-bafe-e3bafe45936c": {
"title": "I accept",
"value": "Yes",
"type": "accept"
}
}
}

Note: The key's name for each form field is generated automatically (e.g., "contactForm_email" or "1bda072e-3229-4e53-80a9-276f583bb868" above) and currently, there is no way to edit those names.