Audience:
Developers
Get a list of identifications
You can call the API to get a list of all of your user's identifications.
Identification information is also available on your Dashboard: look up users from the Dashboard.
Prerequisites
You need a project access token to call the query.
Guide
- Call the
userquery. - Add the user ID.
- Add all information you'd like to review. The sample query adds all status information, as well as the
totalCountof identifications.- Notice the nodes
process,status, andupdatedAt, which provide information about which process was used and the identification status with that process. - Notice
levels: when a level isInvalid, the response includes thereasons.
- Notice the nodes
- Consider adding pagination if you're expecting a long list.
Query
Open in API Explorerquery ListOfIdentifications {
user(id: "$YOUR_USER_ID") {
identifications {
edges {
node {
process
status
updatedAt
levels {
expert {
... on InvalidIdentificationLevelStatusInfo {
__typename
reasons
status
}
... on ValidIdentificationLevelStatusInfo {
__typename
status
}
}
qes {
... on InvalidIdentificationLevelStatusInfo {
__typename
}
... on ValidIdentificationLevelStatusInfo {
__typename
status
}
}
pvid {
... on InvalidIdentificationLevelStatusInfo {
__typename
}
... on ValidIdentificationLevelStatusInfo {
__typename
status
}
}
}
}
}
totalCount
}
}
}
Payload
In the payload, note the Valid Expert and PVID processes (lines 9, 24).
The QES process, though, is Invalid.
This is because, when completing the Expert level identification (which is a step in the QES process), the user had BadDocumentLighting (line 48), which is just one possible rejection reason.
Finally, note the empty {} when there is no information to share based on the query parameters.
This is expected behavior.
{
"data": {
"user": {
"identifications": {
"edges": [
{
"node": {
"process": "Expert",
"status": "Valid",
"updatedAt": "2023-11-29T09:15:25.978Z",
"levels": {
"expert": {
"__typename": "ValidIdentificationLevelStatusInfo",
"status": "Valid"
},
"qes": {},
"pvid": {}
}
}
},
{
"node": {
"process": "PVID",
"status": "Valid",
"updatedAt": "2023-11-28T17:00:23.903Z",
"levels": {
"expert": {
"__typename": "ValidIdentificationLevelStatusInfo",
"status": "Valid"
},
"qes": {},
"pvid": {
"__typename": "ValidIdentificationLevelStatusInfo",
"status": "Valid"
}
}
}
},
{
"node": {
"process": "QES",
"status": "Invalid",
"updatedAt": "2023-11-24T10:49:40.470Z",
"levels": {
"expert": {
"__typename": "InvalidIdentificationLevelStatusInfo",
"reasons": [
"BadDocumentLighting"
],
"status": "Invalid"
},
"qes": {
"__typename": "InvalidIdentificationLevelStatusInfo"
},
"pvid": {}
}
}
}
],
"totalCount": 3
}
}
}
}
Also available
Get user infoFrom the Dashboard