Examples
Contact Form Example
Here is a sample HTTP POST request for a simple contact form. Subfields are separated by a single newline character.
URL encoded form data
Key | Value |
---|---|
FormID | 23534 |
Name | first = John last = Smith |
[email protected] | |
Phone | 234-555-6789 |
Address | address = 1234 Test Drive city = Test state = IN zip = 12345 |
UniqueID | 12345678 |
JSON
{
"FormID": "23534",
"Name": {
"first": "John",
"last": "Smith"
},
"Email": "[email protected]",
"Phone": "234-555-6789",
"Address": {
"address": "1234 Test Drive",
"city": "Test",
"state": "IN",
"zip": "12345"
},
"UniqueID": "12345678"
}
Contact Form Example with Field Types
Below is an example response when you have elected to send the field type with the rest of your webhook data. The FormID and UniqueID are internal submission fields and their format does not change.
URL encoded form data
Key | Value |
---|---|
FormID | 23534 |
Name | first = John last = Smith field_type = name |
value = [email protected] field_type = email | |
Phone | value = 234-555-6789 field_type = phone |
Address | address = 1234 Test Drive city = Test state = IN zip = 12345 field_type = address |
UniqueID | 12345678 |
JSON
{
"FormID": "23534",
"Name": {
"first": "John",
"last": "Smith",
"field_type": "name"
},
"Email": {
"value": "[email protected]",
"field_type": "email"
},
"Phone": {
"value": "234-555-6789",
"field_type": "phone"
},
"Address": {
"address": "1234 Test Drive",
"city": "Test",
"state": "IN",
"zip": "12345",
"field_type": "address"
},
"UniqueID": "12345678"
}
Updated about 2 years ago