API v1 Documentation
Client API > Contacts
Client API > Display
Client API > Environment
Client API > Response
Client API > User
Management API > Action Class
Management API > Attribute Class
Management API > Contact Attribute Keys
Management API > Contact Attributes
Management API > Contacts
Management API > Me
Management API > People
Management API > Response
Management API > Storage
Management API > Survey
Management API > Webhook
Health
Get Contact State
Retrieves a contact’s state including their segments, displays, responses and other tracking information. If the contact doesn’t exist, it will be created.
GET
/
api
/
v1
/
client
/
{environmentId}
/
identify
/
contacts
/
{userId}
curl --request GET \
--url http:///%7B{baseurl}%7D/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"
}
Path Parameters
The ID of the environment
The user ID to identify the contact
Response
200
application/json
OK
The response is of type object
.
Was this page helpful?
curl --request GET \
--url http:///%7B{baseurl}%7D/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"
}