Creates a guest. The REST API does not check whether a guest already exists in Sitecore CDP when you create a guest. To avoid creating duplicates, first retrieve guests by their email address or other identifying information.
In the response, the ref key contains the guest reference.
You can also use the guest reference to find data about the guest in Sitecore CDP. In Sitecore CDP, click Guests, and select the Guest type: All filter. Then, in the search dropdown, select Guest reference and then enter the guest reference in the search field. Then, Sitecore CDP lists the guest profile for the guest.
The level of identity obtained. The "traveller" value is only applicable to certain industries.
The guest's city.
Example values: "Dublin", "London", "Madrid", "Paris"
The guest's country.
Example values: "IE", "GB", "ES", "FR"
The guest's date of birth. Validation: Date must be in the past.
The guest's gender.
Example values: "male", "female", "unknown"
The URL of the guest.
The guest's nationality.
Example values: "Irish", "British", "Spanish", "French"
The expiry date of the guest's passport.
The phone numbers of the guest.
[ "+353161123345", "+353161123346" ]
The street address of the guest.
[ "Ashford House", "Tara Street", "Dublin 2" ]
- Production server APhttps://api-engage-ap.sitecorecloud.io/v2.1/guests
- Production server EUhttps://api-engage-eu.sitecorecloud.io/v2.1/guests
- Production server JPhttps://api-engage-jpe.sitecorecloud.io/v2.1/guests
- Production server UShttps://api-engage-us.sitecorecloud.io/v2.1/guests
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u '<username>:<password>' \
https://api-engage-ap.sitecorecloud.io/v2.1/guests \
-H 'Content-Type: application/json' \
-d '{
"city": "Dublin",
"country": "IE",
"dateOfBirth": "1991-01-01T16:17:16.000Z",
"email": "john.doe@gmail.com",
"emails": [
"john.doe@gmail.com"
],
"firstName": "John",
"gender": "male",
"guestType": "visitor",
"href": "https://api-engage-eu.sitecorecloud.io/v2.1/guests/f7aabbca-1c1b-4fc2-be72-3e16294a4f03",
"identifiers": [
{
"expiryDate": "2025-01-01T16:17:16.000Z",
"id": "B7524AE6-CF1C-440F-B1A2-0C9D42F5CB41",
"provider": "ProfileSystem"
}
],
"lastName": "Doe",
"nationality": "Irish",
"passportExpiry": "2025-01-01T00:00:00.000Z",
"passportNumber": "PZ4A9565",
"phoneNumbers": [
"+353161123345",
"+353161123346"
],
"postCode": "D2",
"ref": "f7aabbca-1c1b-4fc2-be72-3e16294a4f03",
"state": "Oregon",
"street": [
"Ashford House",
"Tara Street",
"Dublin 2"
],
"title": "Mr"
}'Resource successfully created
The guest's city.
Example values: "Dublin", "London", "Madrid", "Paris"
The guest's country.
Example values: "IE", "GB", "ES", "FR"
The date and time when the resource was created in Sitecore CDP.
The guest's date of birth. Validation: Date must be in the past.
The guest's gender.
Example values: "male", "female", "unknown"
The level of identity obtained. The "traveller" value is only applicable to certain industries.
The URL of the guest.
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.
The date and time when the resource was updated in Sitecore CDP.
The guest's nationality.
Example values: "Irish", "British", "Spanish", "French"
The expiry date of the guest's passport.
The phone numbers of the guest.
[ "+353161123345", "+353161123346" ]
The street address of the guest.
[ "Ashford House", "Tara Street", "Dublin 2" ]
{ "city": "Dublin", "country": "IE", "createdAt": "2024-01-01T16:17:16.000Z", "dateOfBirth": "1991-01-01T16:17:16.000Z", "email": "john.doe@gmail.com", "emails": [ "john.doe@gmail.com" ], "firstName": "John", "firstSeen": "2024-01-01T16:17:16.000Z", "gender": "male", "guestType": "visitor", "href": "https://api-engage-eu.sitecorecloud.io/v2.1/guests/f7aabbca-1c1b-4fc2-be72-3e16294a4f03", "identifiers": [ { … } ], "lastName": "Doe", "lastSeen": "2024-01-01T16:17:16.000Z", "modifiedAt": "2024-01-01T16:17:16.000Z", "nationality": "Irish", "passportExpiry": "2025-01-01T00:00:00.000Z", "passportNumber": "PZ4A9565", "phoneNumbers": [ "+353161123345", "+353161123346" ], "postCode": "D2", "ref": "f7aabbca-1c1b-4fc2-be72-3e16294a4f03", "state": "Oregon", "street": [ "Ashford House", "Tara Street", "Dublin 2" ], "title": "Mr" }