Enrollment State
Returns the current state of the device's enrollment module. Use this endpoint to monitor the progress of an ongoing remote enrollment operation.
GET /enroller_state.fcgi
Parameters
- This request has no parameters.
Response
- enroller_state (string): Current state of the enrollment module.
| Value | Description |
|---|---|
"NORMAL_STATE" |
Idle, no enrollment in progress |
"ENROLL_CARD_STATE" |
Enrolling a card |
"ENROLL_BIOMETRY_STATE" |
Enrolling biometry (fingerprint) |
"WAITING_BIOMETRY_EXTRACT_REPLY" |
Waiting for biometry extraction result |
"WAITING_BIOMETRY_MATCH_REPLY" |
Waiting for biometry match result |
"WAITING_BIOMETRY_ENROLL_REPLY" |
Waiting for biometry enrollment result |
"ENROLL_FACE_STATE" |
Enrolling face |
"ENROLL_PIN_STATE" |
Enrolling PIN |
"ENROLL_PASSWORD_STATE" |
Enrolling password |
- biometry_state (string): Current step within a biometry enrollment sequence.
| Value | Description |
|---|---|
"NOT_ENROLLING" |
No biometry enrollment in progress |
"ENROLL_FIRST_BIOMETRY_STATE" |
Capturing first scan |
"ENROLL_SECOND_BIOMETRY_STATE" |
Capturing second scan |
"ENROLL_THIRD_BIOMETRY_STATE" |
Capturing third scan |
- last_enroll (bool):
trueif the last enrollment attempt was successful. - last_enroll_error (string): Error code from the last enrollment attempt.
| Value | Description |
|---|---|
"UNKNOWN" |
Unknown error |
"USER_NONEXISTENT" |
Target user does not exist |
"CARD_EXISTS" |
Card already registered to another user |
"DIFFERENT_FINGERPRINTS" |
Scanned fingerprints do not match |
"FACE_EXISTS" |
Face already registered to another user |
"PIN_EXISTS" |
PIN already registered to another user |
"TEMPLATE_EXISTS" |
Template already registered |
"TEMPLATE_LIMIT_REACHED" |
Maximum number of templates reached |
"REMOTE_TIMEOUT" |
Remote enrollment timed out |
"REMOTE_COULD_NOT_CONNECT" |
Could not connect to remote server |
"REMOTE_SERVER_ERROR" |
Remote server returned an error |
"TIMEOUT" |
Enrollment operation timed out |
"CANCELLED" |
Enrollment was cancelled |
Request example
$.ajax({
url: "/enroller_state.fcgi?session=" + session,
type: 'GET',
contentType: 'application/json'
});
Response example
{
"enroller_state": "ENROLL_BIOMETRY_STATE",
"biometry_state": "ENROLL_SECOND_BIOMETRY_STATE",
"last_enroll": false,
"last_enroll_error": "UNKNOWN"
}