# Event payloads

Every webhook request is a JSON **event**. The person, or the batch of people, is inside its `data` field. This page lists everything we send.

## Example

The shape depends on the schedule you chose for the address. These examples use the **Basic contact** template.

```json title="Right away"
{
  "id": "evt_6f1c2a7e-5b1d-4c8e-9a6f-2d7b1e4c8a90",
  "type": "visitor.identified",
  "created": 1764086400,
  "data": {
    "person_id": "6a4d247bdb70d53d22e3fb1575551805",
    "identified_on": "https://example.com/pricing",
    "source": "pixel",
    "first_name": "Jane",
    "last_name": "Doe",
    "email": "jane.doe@example.com",
    "mobile": "5555550123",
    "address1": "100 Main St",
    "city": "Austin",
    "state": "TX",
    "zip": "78701",
    "email_optin_date": "2025-06-14",
    "ip": "203.0.113.24",
    "url": "https://example.org/signup"
  }
}
```

```json title="Hourly batch"
{
  "id": "evt_6f1c2a7e-5b1d-4c8e-9a6f-2d7b1e4c8a90",
  "type": "visitors.identified",
  "created": 1764086400,
  "data": {
    "people": [
      {
        "person_id": "6a4d247bdb70d53d22e3fb1575551805",
        "identified_on": "https://example.com/pricing",
        "source": "pixel",
        "first_name": "Jane",
        "last_name": "Doe",
        "email": "jane.doe@example.com"
      }
    ]
  }
}
```

> **Note:** To see the exact payload for any of your templates, open the webhook settings in the app and select the **Example event** tab.

## The event object

- `id` (string): A unique ID for this event, starting with `evt_`. A retry of the same event keeps the same ID, so use it to skip duplicates.
- `type` (string): The event type. See [Event types](#event-types).
- `created` (integer): When we created the event, in Unix seconds.
- `data` (object): For `visitor.identified`, a single [person](#the-person-object). For `visitors.identified`, an object with a `people` array of up to 500 people.

## Event types

| Type | Sent when |
|---|---|
| `visitor.identified` | A person was identified on your site and the address is set to **Send each person right away**. |
| `visitors.identified` | At the top of each hour, for addresses set to **Send one batch every hour**, when at least one person was identified. |

## The person object

Every person has these three fields, followed by the fields in the template you chose for the address.

- `person_id` (string): Our ID for this person. The same person always has the same ID, so you can use it to update an existing record instead of creating a new one.
- `identified_on` (string or null): The page on your site where we identified them.
- `source` (string): How they were identified.

### Template fields

The rest of the person comes from your template. **Basic contact** sends:

| Field | Meaning |
|---|---|
| `first_name` | First name |
| `last_name` | Last name |
| `email` | Email |
| `mobile` | Mobile phone |
| `address1` | Street address |
| `city` | City |
| `state` | State |
| `zip` | ZIP code |
| `email_optin_date` | Email opt-in date |
| `ip` | Internet address at sign-up |
| `url` | Web page at sign-up |

You can build your own templates on the **Templates** page in the app. Field names stay the same in every template, so adding a field to a template only adds a key to the payload.

### More than one email or phone

A person can have up to three emails and phones, and more than one vehicle, property or device. A template sends the first of each unless you choose **Up to 2** or **Up to 3** in its settings. Then each list field also comes as `<field>_2` and `<field>_3`, for example `email_2`, `email_3` and `mobile_2`. The first is always the email we matched to the visitor. An item the person does not have is sent as `null`.

> **Warning:** A field we do not have for a person is sent as `null`. Handle `null` for every template field.

## Request headers

| Header | Value |
|---|---|
| `Content-Type` | `application/json` |
| `X-KV-Signature` | The signature, for example `t=1764086400,v1=5257a8…`. See [Verify signatures](https://knownvisitors.com/docs/webhook-signatures). |
| `X-KV-Event-Id` | The event's `id`. |
| `X-KV-Delivery-Attempt` | Which try this is, starting at `1`. See [Retries and replays](https://knownvisitors.com/docs/webhook-retries). |

---
Source: https://knownvisitors.com/docs/webhook-payloads · Last updated November 30, 2026
