---
title: "The event object model"
slug: "the-event-object-model"
abstract: "Describes a list of required keys used for event objects."
---
# The event object model

The event object is a dictionary of key-value pairs representing data about the event being recorded, the user, the device, and so on.

The following table lists top-level attributes that are *required* for all Sitecore Discover event objects. Depending on the type of event, there might be other required attributes located within the `value` object.

| Name | Type | Description |
| --- | --- | --- |
| `type` | String | [Type of the event](https://doc.sitecore.com/discover/en/developers/discover-developer-guide/integrate-using-discover-rest-apis/events-data-model/the-event-object-model/the-event-type-and-event-name.html "The event type and event name") |
| `name` | String | [Name of the event](https://doc.sitecore.com/discover/en/developers/discover-developer-guide/integrate-using-discover-rest-apis/events-data-model/the-event-object-model/the-event-type-and-event-name.html "The event type and event name") |
| `value` | Object | [Event value object](https://doc.sitecore.com/discover/en/developers/discover-developer-guide/integrate-using-discover-rest-apis/events-data-model/the-event-object-model/the-value-object.html "The value object") |

The following table lists other keys that are only required when you are using the Sitecore Discover Events API:

| Name | Type | Description |
| --- | --- | --- |
| `t` | Integer | Required.<br><br>Time of the event in milliseconds. |
| `t0` | Integer | Required.<br><br>Time the page loaded in milliseconds. |
| `uuid` | String | Either `uuid` or `user_id` is required.<br><br>Unique Discover-provided user ID |
| `user_id` | String | Either `uuid` or `user_id` is required.<br><br>Unique, anonymous user ID |

The following table lists optional keys:

| Name | Type | Description | Value |
| --- | --- | --- | --- |
| device | String | Optional.Device type. | pcmobiletablet |
| app_type | String | Optional.Application type. | nativewebviewbrowser |
