Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
PersonalizeCloud Portal
Sitecore Personalize developer documentation
  • Developing with Sitecore Personalize
                • VIEW event
                • IDENTITY event
                • SEARCH event
                • Custom events
            • Flow object
        • Troubleshooting
        • Release notes
  1. Event object
  1. Sitecore Personalize developer documentation
  2. Stream API

IDENTITY event

The event object for an IDENTITY event must include all the required attributes for event objects plus the following attributes:

  • Attribute: Type
  • identifiers: array of objects

The identifiers array of objects:

AttributeTypeDescriptionExampleRequired/optional
idstringThe unique guest identifier provided by your organization's identity system, such as a Customer Relationship Management (CRM) system."123456"Required
providerstringThe name of your organization's identity system, external to Sitecore Personalize, that provided the unique guest identifier."BXLP"Required
expiry_datestring (ISO 8601)The date the unique guest identifier expires. This is determined by your organization's identity system."2026-04-15T08:39
.868Z"
Optional

The event object for an IDENTITY event can optionally include personally identifiable information (PII):

AttributeTypeDescriptionExampleRequired/optional
emailstring (lowercase recommended)The email address of the guest."[email protected]"Optional
titlestring (title case)The title of the guest."Br", "Brigadier", "Capt", "Colonel", "Dame", "Dr", "Elder", "Fr", "General", "Hon", "Judge", "Lord", "Master", "Miss", "Mr", "Mrs", "Ms", "Mstr", "Prof", "Rabbi", "Rev", "Shaikha", "Sheikh", "Sir", "Sister", "Sr"Optional
firstnamestring (title case recommended)The first name of the guest."Jane"Optional
lastnamestring (title case recommended)The last name of the guest."Doe"Optional
genderstringThe gender of the guest."female"Optional
dobstring (ISO 8601)The date of birth of the guest."1983-04-15T08:39
.868Z"
Optional
mobilestringThe mobile number of the guest."+3531234567"Optional
phonestringThe phone number of the guest."+3531234567"Optional
streetarray of strings (title case recommended)The street address of the guest.["Tara Street"]Optional
citystring (title case recommended)The city address of the guest."Dublin"Optional
statestring (title case recommended)The state address of the guest."Oregon"Optional
countrystring (uppercase ISO 3166-1 alpha-2)The country address of the guest."IE"Optional
postal_codestringThe postal code of the guest."D2"Optional

Example

This example describes an event object for an IDENTITY event in an integration that uses the Boxever JavaScript Library. The browser_id is set to the value that the [Boxever.getID()](bx-getid.md "Boxever.getID()") function returns. This event object contains the identifiers array of objects and the following, optional PII attributes: email, firstname, lastname.

const identityEvent = {
    browser_id: Boxever.getID(),
    channel: "WEB",
    type: "IDENTITY",
    language: "EN",
    currency: "EUR",
    page: "home",
    pos: "myretailsite/ireland",
    identifiers: [
        {
            id: "123456",
            provider: "BXLP"
        }
    ],
    email: "[email protected]",
    firstname: "Jane",
    lastname: "Doe"
};
If you have suggestions for improving this article, let us know!

Documentation Assistant

This assistant uses AI to generate responses based on Sitecore documentation. While it has access to official sources, answers may be incomplete or inaccurate and should not be considered official advice or support.
Powered by
k
kapa.ai
Protected by reCAPTCHA

© Copyright 2026, Sitecore A/S or a Sitecore affiliated company.
All rights reserved.

Privacy policySitecore Trust CenterTerms of use