Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
CDPCloud Portal
Sitecore CDP Developer Documentation
  • Developing with Sitecore CDP
  1. Legacy REST APIs
  1. Sitecore CDP Developer Documentation
  2. REST APIs

Guest REST API v2 (legacy)

Important

A newer version of this REST API (v2.1) is available. If you're new to this REST API, use the new version. Alternatively, if you're already using the old version, read about the differences between v2 and v2.1 so you can upgrade.

A guest object is the core entity of Sitecore CDP. The personal data of a customer or prospect is recorded and stored, and all relevant transactional and behavioral data is linked in a guest profile.

The following are guest attributes:

AttributeTypeDescriptionExample(s)
firstSeenISO 8601 Date/Time UTCThe first seen date for the guest."2026-01-01T16:17
.000Z"
lastSeenISO 8601 Date/Time UTCThe last time the guest interacted with your brand. If the guest is currently online and is interacting with your brand, this returns the date and timestamp of when the current session started."2026-01-01T16:17
.000Z"
guestTypestring enum (lowercase)The level of identity obtained.Must be one of the following:

  • "visitor"
  • "customer"
  • "traveller"
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"
firstNamestring (title case)The first name of the guest."John"
lastNamestring (recommend title case)The last name of the guest."Doe"
genderstring (lowercase)The gender of the guest."male", "female", "unknown"
dateOfBirthISO 8601 Date/Time UTC Validation: Date must be in the past.The date of birth of the guest."1985-12-24T00:00Z"
emailsJSON array of stringsThe email addresses of the guest.["[email protected]", "[email protected]" ]
phoneNumbersJSON array of stringsThe phone numbers of the guest.[ "+353161123345", "+353861123311" ]
languagestring (2 letter ISO 639 language code)The preferred language of the guest."EN", "FR", "DE"
nationalitystring (title case)The nationality of the guest."Irish", "British", "Spanish", "French"
passportNumberstring (uppercase)The passport number of the guest."PZ4A9565"
passportExpirystringThe expiry date of the guest's passport."2025-01-01T00:00
.000Z"
streetJSON array of strings (title case)The street address of the guest.["Ashford House", "Tara Street", "Dublin 2"]
citystring (title case)The guest's city."Dublin", "London", "Madrid", "Paris"
countrystring (2 letter ISO 3166-1 Alpha-2 country code)The guest's country."IE", "GB", "ES", "FR"
postCodestring (uppercase)The guest's postcode."D2"
statestring (title case)The guest's state."Oregon"
identifiersJSON array of JSON objectsA list of identifiers for the guest.[ { "provider":"SITECORE_IDENTITY_SYSTEM", "id":"B7524AE6-CF1C-440F-B1A2-0C9D42F5CB41", "expiryDate":"2025-08-23T16:17
.000Z" } ]

The following are identifier model attributes:

AttributeDescriptionTypeExample(s)Required/optional
providerThe identifier provider.string"ProfileSystem"Required
idThe identifier ID.string"B7524AE6-CF1C-440F-B1A2-0C9D42F5CB41"Required
expiryDateThe expiry date of the identifier.ISO 8601 Date/Time UTC"2025-01-01T16:17
.000Z"
Optional

The following are the standard response attributes:

AttributeDescriptionTypeExample(s)
hrefThe resource fully qualified location Uniform Resource Identifier (URI).string"https://{apiEndpoint}/v2/{resourceName}/{resourceRef}"
refThe reference of the resource.string UUID"9d94ee11-7043-4b71-980c-a777d00a7b46"
createdAtDate and time when the resource was created in Sitecore CDP.ISO 8601 Date/Time UTC"2026-01-01T16:17
.000Z"
modifiedAtDate and time when the resource was updated in Sitecore CDP.ISO 8601 Date/Time UTC"2026-01-01T16:17
.000Z"
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