Skip to content

Get Job Status API

Make sure you already have configure your Authentication.

Run in Postman

Send a GET request to https://api.cloud.nodeflux.io/v1/jobs/{job_id}. job_id is the one you will received when post a job. For example:

{
    "job": {
        "id": "id": "a-very-long-job-id", // <--- this is the job_id you will use
        "result": {...}
    },
    "message": "Job successfully submitted!",
    "ok": true
}

Response Body

Response will be adjusted with what analytic the job you have

Face Match with 2 Photos

HTTP Mapping: 200 OK

{
    "job": {
        "id": "a-very-long-job-id",
        "result": {
            "status": "success",
            "analytic_type": "FACE_MATCH_LIVENESS",
            "result": [
                {
                    "face_match": {
                        "match": true,
                        "similarity": 0.8560543060302734
                    }
                }
            ]
        }
    },
    "message": "Job successfully submitted!",
    "ok": true
}

OCR KTP

HTTP Mapping: 200 OK

{
    "job": {
        "id": "a-very-long-job-id",
        "result": {
            "status": "success",
            "analytic_type": "OCR_KTP",
            "result": [
                {
                    "": "JAKARTA SELATAN",
                    "NIK": "123456789012346",
                    "Nama": "JANE DOE",
                    "Agama": "ISLAM",
                    "RT/RW": "006 005",
                    "Alamat": "JL ACME",
                    "Kel/Desa": "DESA CONTOH",
                    "PROVINSI": "PROVINSI CONTOH",
                    "Kecamatan": "KECAMATAN CONTOH",
                    "Pekerjaan": "KARYAWAN SWASTA",
                    "Gol. Darah": "-",
                    "Jenis Kelamin": "PEREMPUAN",
                    "Berlaku Hingga": "21-12-2016",
                    "Kewarganegaraan": "WNI",
                    "Tempat/Tgl Lahir": "JAKARTA 21-12-1990",
                    "Status Perkawinan": "BELUM KAWIN"
                }
            ]
        }
    },
    "message": "Job successfully submitted!",
    "ok": true
}

Face Liveness

HTTP Mapping: 200 OK

{
    "job": {
        "id": "a-very-long-job-id",
        "result": {
            "status": "success",
            "analytic_type": "FACE_LIVENESS",
            "result": [
                {
                    "face_liveness": {
                        "live": true,
                        "liveness": 0.8966461420059204
                    }
                }
            ]
        }
    },
    "message": "Job successfully submitted!",
    "ok": true
}

Face Match with Liveness

HTTP Mapping: 200 OK

{
    "job": {
        "id": "a-very-long-job-id",
        "result": {
            "status": "success",
            "analytic_type": "FACE_MATCH_LIVENESS",
            "result": [
                {
                    "face_liveness": {
                        "live": true,
                        "live_score": 0.845223
                    }
                },
                {
                    "face_match": {
                        "match": true,
                        "smimilarity": 0.94731
                    }
                }
            ],
        }
    },
    "message": "Job successfully submitted!",
    "ok": true
}

Face Mask

HTTP Mapping: 200 OK

{
    "job": {
        "id": "<a-very-long-job-id>",
        "result": {
            "status": "success",
            "analytic_type": "FACE_MASK",
            "result": [
                {
                    "face_mask": [
                        {
                            "score": "0.99999785",
                            "status": "masked_face",
                            "bounding_box": {
                                "top": 0.41969601666485823,
                                "left": 0.5615215301513672,
                                "width": 0.02165590922037763,
                                "height": 0.04751050030743631
                            }
                        },
                        {
                            "score": "0.9999969",
                            "status": "masked_face",
                            "bounding_box": {
                                "top": 0.6515047426576968,
                                "left": 0.6214392979939779,
                                "width": 0.02933553059895833,
                                "height": 0.05995771620008683
                            }
                        }
                    ]
                }
            ]
        }
    },
    "message": "Face Mask Success",
    "ok": true
}