# Webhook requests

When an event occurs, Webflow will send a `POST` request to a specified URL.

The webhook body will be a JSON resource object that relates to the event. The request headers will include:

* A `Content-Type` header set to `application/json`
* A `x-webflow-timestamp` with the time the webhook was sent
* A `x-webflow-signature` header containing the request signature. Read on for information about [validating request signatures.](#validating-request-signatures)

<br />

Below is an example of webhook event data.

<Tabs>
  <Tab title="JSON Example">
    ```json Payload
      {
        "triggerType": "form_submission",
        "payload": {
          "name": "Contact Us",
          "siteId": "65427cf400e02b306eaa049c",
          "data": {
            "First Name": "Zaphod",
            "Last Name": "Beeblebrox",
            "email": "zaphod@heartofgold.ai",
            "Phone Number": 15550000000
          },
          "schema": [
            {
              "fieldName": "First Name",
              "fieldType": "FormTextInput",
              "fieldElementId": "285042f7-d554-dc7f-102c-aa10d6a2d2c4"
            },
            {
              "fieldName": "Last Name",
              "fieldType": "FormTextInput",
              "fieldElementId": "285042f7-d554-dc7f-102c-aa10d6a2d2c5"
            },
            {
              "fieldName": "email",
              "fieldType": "FormTextInput",
              "fieldElementId": "285042f7-d554-dc7f-102c-aa10d6a2d2c6"
            },
            {
              "fieldName": "Phone Number",
              "fieldType": "FormTextInput",
              "fieldElementId": "285042f7-d554-dc7f-102c-aa10d6a2d2c7"
            }
          ],
          "submittedAt": "2022-09-14T12:35:16.117Z",
          "id": "6321ca84df3949bfc6752327",
          "formId": "65429eadebe8a9f3a30f62d0",
          "formElementId": "4e038d2c-6a1e-4953-7be9-a59a2b453177"
        }
      }
    ```
  </Tab>

  <Tab title="Properties">
    <ParamField path="triggerType" type="string">
      The type of event that triggered the request
    </ParamField>

    <ParamField path="payload" type="object">
      The payload of data sent from Webflow

      <div class="expandable">
        <Accordion title=" ">
          <ParamField path="name" type="string">
            The name of the form
          </ParamField>

          <ParamField path="siteId" type="string">
            The id of the site that the form was submitted from
          </ParamField>

          <ParamField path="data" type="object">
            The data submitted in the form

            <Accordion title=" ">
              <ParamField path="firstName" type="string" />

              <ParamField path="lastName" type="string" />

              <ParamField path="email" type="string" />

              <ParamField path="phoneNumber" type="string" />
            </Accordion>
          </ParamField>

          <ParamField path="submittedAt" type="string">
            The timestamp the form was submitted
          </ParamField>

          <ParamField path="id" type="string">
            the ID of the event
          </ParamField>

          <ParamField path="formId" type="string">
            The ID of the form submission
          </ParamField>
        </Accordion>
      </div>
    </ParamField>
  </Tab>
</Tabs>

<br />