Skip to main content

GET Mykad Result

Retrieve the full MyKad recognition result — including OCR data, face boxes, tamper-check, and confidence scores — using the requestID returned by MyKad Recognition.

When to Use

Use this endpoint when:

  • You did not pass a notify_url when calling MyKad Recognition
  • You need to poll for the result on demand
  • Auditing or re-fetching past recognition results
note

Prerequisite: Acquire requestID from the MyKad Recognition response.

How to Use

Endpoint
POST/v3/service

Step 1: Get the Request ID

Capture requestID from your prior MyKad Recognition call.

Step 2: Send the Query

POST with function: "get-mykad-result" and the id field set to your requestID.

Step 3: Parse the Result

The response contains nested objects for OCR data, address, faces, glare, tamper-check, and scores.


Request Parameters

serviceSTRING

EKYC service

Example: "ekyc"

versionSTRING

Currently only support 'v1"

Example: "v1"

functionSTRING

Selected function

Example: "get-mykad-result"

requestOBJECT

Refer to explanation below

idSTRING

Request ID from mykad recognition response

Example: "62201d48a694817dede84b35"

Response Parameters

idSTRING

Table ID

Example: "60f79b737b03abf23ad65206"

actionSTRING

Action required. One of: `NONE_REQUIRED`, `ATTENTION_REQUIRED`, `INCONCLUSIVE`, `RESOLVED`

Example: NONE_REQUIRED

clientIdSTRING

Client ID

Example: ""

merchantIdSTRING

Merchant ID

Example: ""

statusSTRING

Recognition status. One of: `SUCCESS`, `MYKAD_NOT_FOUND`, `MYKAD_SINGLE_NOT_FOUND`, `MYKAD_FACE_NOT_FOUND`, `INCOMPLETE`, `OCR_ENGINE_ERROR`, `OCR_ENGINE_CONNECTION`

Example: SUCCESS

durationFLOAT

Recognition Duration

Example: 3.3465

objectsOBJECT

Detected Landmark

Example: (Refer to explanation below)

resultsARRAY

Mykad Recognition Results

Example: (Refer to explanation below)

updatedAtDATETIME

Last update date time

Example: "2022-03-03T01:43:36.963Z"

createdAtDATETIME

Create date time

Example: "2022-03-03T01:43:36.963Z"

Inside Objects

dataARRAY

Refer to the Objects Data

Example: []

durationFLOAT

Landmark Detection Duration

Example: 0.0165

Inside Objects Data

boxesARRAY

Refer to the boxes

Example: []

confidenceFLOAT

Confidence of detected landmark

Example: 0.9609

predictionSTRING

Prediction of detected landmark

Example: "hibiscus_logo"

Inside Boxes

xINTEGER

x-coordinate of object in the image

Example: 196

yINTEGER

y-coordinate of object in the image

Example: 200

Inside Results

durationFLOAT

Mykad Recognition Duration

Example: 3.2886

colourOBJECT

Refer to the Results Colour

Example: (Refer to explanation below)

dataOBJECT

Refer to the Results Data

Example: (Refer to explanation below)

facesARRAY

Refer to the Results Faces

Example: (Refer to explanation below)

glareOBJECT

Refer to the Results Glare

Example: (Refer to explanation below)

metaOBJECT

Refer to the Results Meta

Example: (Refer to explanation below)

objectOBJECT

Refer to the Results Object

Example: (Refer to explanation below)

ocrRequestIdsOBJECT

Refer to the Results OcrRequestIds

Example: (Refer to explanation below)

scoresOBJECT

Refer to the Results Scores

Example: (Refer to explanation below)

tamperCheckOBJECT

Refer to the Results TamperCheck

Example: (Refer to explanation below)

Inside Results Colour

detectedSTRING

Colour detected

Example: "BLUE"

percentageFLOAT

Percentage of colour in the image

Example: 0.6008

Inside Results Data

addressOBJECT

Refer to the Address

Example: (Refer to explanation below)

genderSTRING

Gender information of mykad

Example: "MALE"

icSTRING

Mykad ID

Example: "550106-12-5821"

isMuslimBOOLEAN

Is muslim

Example: false

nameSTRING

Name in the mykad

Example: "ROWAN SEBASTIAN ATKINSON"

Inside Address

addressLine1STRING

First line of address

Example: "GDW KAMPUNG BAYANGAN"

addressLine2STRING

Second line of address

Example: "80000 KENINGAU"

addressLine3STRING

Third line of address

Example: "SABAH"

citySTRING

City name

Example: "KENINGAU"

postcodeSTRING

Postcode

Example: "80000"

stateSTRING

State name

Example: "SABAH"

Inside Results Faces

boxesARRAY

Refer to the boxes

Example: []

confidenceFLOAT

Confidence of detected face

Example: 1

Inside Results Glare

detailsARRAY

Detailed information of glare

Example: []

presentBOOLEAN

Present of glare

Example: false

Inside Results Meta

resizeScaleFLOAT

Resize scale of mykad in the image

Example: 0

Inside Results Object

confidenceFLOAT

Confidence of detected mykad

Example: 0.9609

predictionSTRING

Type of mykad

Example: "ic_1_front"

Inside Results ocrRequestIds

region1STRING

ID of region 1

Example: "62201d4b4fddc13446bd6d0e"

region2STRING

ID of region 2

Example: "62201d4b4fddc13446bd6d0f"

region3STRING

ID of region 3

Example: "62201d4b4fddc13446bd6d10"

Inside Results Scores

landmarksFLOAT

Landmark score

Example: 0.5441

ocrFLOAT

OCR score

Example: 0.9033

searcherFLOAT

Mykad searcher score

Example: 0.9

totalFLOAT

Total score

Example: 0.8295

Inside TamperCheck

faceVerificationOBJECT

Refer to the TamperCheck Face Verification Result

Example: (Refer to explanation below)

frontalFaceOBJECT

Refer to the TamperCheck Result

Example: (Refer to explanation below)

physicalOBJECT

Refer to the TamperCheck Physical

Example: (Refer to explanation below)

predictionSTRING

Prediction of tamper check

Example: "ORIGINAL"

region1OBJECT

Refer to the TamperCheck Result

Example: (Refer to explanation below)

region2OBJECT

Refer to the TamperCheck Result

Example: (Refer to explanation below)

region3OBJECT

Refer to the TamperCheck Result

Example: (Refer to explanation below)

Inside TamperCheck Face Verification Response

messageSTRING

Message from tamper check response

Example: ""

resultOBJECT

Refer to the Tamper Check Face Verification Result

Example: (Refer to explanation below)

successBOOLEAN

Success status of tamper check

Example: false

Inside TamperCheck Face Verification Result

isSamePersonBOOLEAN

Check result which is same person

Example: false

similarityFLOAT

Similarity of two faces

Example: 0

Inside TamperCheck Response

messageSTRING

Message from tamper check response

Example: ""

resultOBJECT

Refer to the Tamper Check Result

Example: (Refer to explanation below)

successBOOLEAN

Success status of tamper check

Example: false

Inside TamperCheck Result

alternatedBOOLEAN

Alternated trace of tamper check

Example: false

confidenceFLOAT

Confidence score of tamperCheck result

Example: 0.9999

predictionSTRING

Prediction of tamper check

Example: "ORIGINAL"

Inside TamperCheck Physical

confidenceFLOAT

Confidence score of tamperCheck physical

Example: 0

predictionSTRING

Prediction of tamper check

Example: "ORIGINAL"

successBOOLEAN

Success status of tamper check physical

Example: false