Techdocs
Search…
Querying Identities
You can query identities using the GraphQL Identities endpoint. An "identity" is the personal information associated with an email address.
So long as you are able to specify the email address, you will be able to query the identity, its associated customer aff and, the personalized recommendations for that identity.
1
curl -0 -v -X POST https://api.nosto.com/v1/graphql \
2
-u ":<token>" \
3
-H 'Content-Type: application/graphql' \
4
-d @- << EOF
5
query {
6
identity(email:"[email protected]") {
7
email,
8
attributes {
9
name,
10
value
11
}
12
recos(preview: true, image: VERSION_ORIGINAL) {
13
history(params: {
14
minProducts: 3,
15
maxProducts: 10,
16
showRelatedProducts: true,
17
skipProductsInCart: true,
18
skipBoughtProducts: true
19
}) {
20
primary {
21
url
22
imageUrl
23
}
24
}
25
}
26
}
27
}
28
EOF
Copied!

What can identity attributes be used for?

The attributes associated with an identity can be used to segment users. This works similarly to how the attributes can be leveraged when importing them via a CSV.
Last modified 11mo ago
Copy link