Get latest identification
Call the API to get identification levels awarded to your user.
Identification information is also available on your Dashboard > Data > Users.
Prerequisites
You need a project access token to call the query.
Guide​
- Call the
user
query. - Add the user ID.
- Add all information you'd like to review.
- The sample query retrieves all identification levels awarded to the user, as well as information about their last PVID identification.
- Add pagination to get only the most recent PVID result (line 9-11).
Query​
🔎 Open the query in API Explorer
query LatestPvidIdStatus {
user(id: "$YOUR_USER_ID") {
identificationLevels {
PVID
expert
QES
}
identifications(
filters: { processes: PVID }
orderBy: { field: updatedAt, direction: Desc }
first: 1
) {
edges {
node {
id
process
}
}
}
}
}
Payload​
The payload shows that this user is successfully identified using PVID.
{
"data": {
"user": {
"identificationLevels": {
"PVID": true,
"expert": true,
"QES": true
},
"identifications": {
"edges": [
{
"node": {
"id": "$YOUR_IDENTIFICATION_ID",
"process": "PVID"
}
}
]
}
}
}
}