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

[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

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

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"
}

Example Code

Current examples provide integrations with Salesforce, WebToLead, and Batchbook.

These examples are available for download on our public BitBucket account.

Updated less than a minute ago

Examples


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.