Skip to main content

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​

  1. Call the user query.
  2. Add the user ID.
  3. 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.
  4. 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"
}
}
]
}
}
}
}