curl --request GET \
--url https://{baseurl}/api/v1/client/{environmentId}/identify/contacts/{userId}{
"displays": [
{
"createdAt": "2024-04-23T08:59:37.550Z",
"surveyId": "pjogp5a1wyxon6umplmf49b8"
}
],
"lastDisplayAt": "2024-04-23T08:59:37.550Z",
"responses": [
"pjogp5a1wyxon6umplmf49b8"
],
"segments": [
"fi8f9oekza95wwszrptidivq",
"zgwrv8eg7vfavdhzv1s0po1w"
],
"userId": "user-123"
}Retrieves a contact’s state including their segments, displays, responses and other tracking information. If the contact doesn’t exist, it will be created.
curl --request GET \
--url https://{baseurl}/api/v1/client/{environmentId}/identify/contacts/{userId}{
"displays": [
{
"createdAt": "2024-04-23T08:59:37.550Z",
"surveyId": "pjogp5a1wyxon6umplmf49b8"
}
],
"lastDisplayAt": "2024-04-23T08:59:37.550Z",
"responses": [
"pjogp5a1wyxon6umplmf49b8"
],
"segments": [
"fi8f9oekza95wwszrptidivq",
"zgwrv8eg7vfavdhzv1s0po1w"
],
"userId": "user-123"
}The ID of the environment
The user ID to identify the contact
OK
Show child attributes
Timestamp of the last survey display
List of survey IDs the contact has responded to
List of segment IDs the contact belongs to
The user ID of the contact
Was this page helpful?