---
title: "Creating a login event"
slug: "creating-a-login-event"
abstract: "Describes how to create a login event for the Sitecore Search Events REST API."
---
# Creating a login event

There are many types of events you can send using the Sitecore Search Events API. You might want to track instances of visitors logging in. You can do this using a `login identify` event. If logging in counts as a conversion for your business, you can mark this event as a conversion by setting the `action_sub_type` key to *conversion*.

The following is an example of a `login identify` event:

> [!note]
> For the event object data model, see the [Events API reference](https://doc.sitecore.com/search/en/developers/events-api/index.html).

```JSON
{
  "name": "login",
  "action": "identify",
  "uuid": "<uuid>",
  "client_time_ms": 1234,
  "value": <value object>
}
```