Guest REST API v2 (legacy)
A newer version of this REST API (v2.1) is available. If you're new to the Guest 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:
Attribute |
Type |
Description |
Example(s) |
---|---|---|---|
|
ISO 8601 Date/Time UTC |
The first seen date for the guest. |
|
|
ISO 8601 Date/Time UTC |
The 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. |
|
|
string enum (lowercase) |
The level of identity obtained. |
Must be one of the following:
|
|
string (title case) |
The title of the guest. |
|
|
string (title case) |
The first name of the guest. |
|
|
string (recommend title case) |
The last name of the guest. |
|
|
string (lowercase) |
The gender of the guest. |
|
|
ISO 8601 Date/Time UTC Validation: Date must be in the past. |
The date of birth of the guest. |
|
|
JSON array of strings |
The email addresses of the guest. |
|
|
JSON array of strings |
The phone numbers of the guest. |
|
|
string (2 letter ISO 639 language code) |
The preferred language of the guest. |
|
|
string (title case) |
The nationality of the guest. |
|
|
string (uppercase) |
The passport number of the guest. |
|
|
string |
The expiry date of the guest's passport. |
|
|
JSON array of strings (title case) |
The street address of the guest. |
|
|
string (title case) |
The guest's city. |
|
|
string (2 letter ISO 3166-1 Alpha-2 country code) |
The guest's country. |
|
|
string (uppercase) |
The guest's postcode. |
|
|
string (title case) |
The guest's state. |
|
|
JSON array of JSON objects |
A list of identifiers for the guest. |
|
The following are identifier model attributes:
Attribute |
Description |
Type |
Example(s) |
Required/optional |
---|---|---|---|---|
|
The identifier provider. |
string |
|
Required |
|
The identifier ID. |
string |
|
Required |
|
The expiry date of the identifier. |
ISO 8601 Date/Time UTC |
|
Optional |
The following are the standard response attributes:
Attribute |
Description |
Type |
Example(s) |
---|---|---|---|
|
The resource fully qualified location Uniform Resource Identifier (URI). |
string |
|
|
The reference of the resource. |
string UUID |
|
|
Date and time when the resource was created in Sitecore CDP. |
ISO 8601 Date/Time UTC |
|
|
Date and time when the resource was updated in Sitecore CDP. |
ISO 8601 Date/Time UTC |
|