v2
Request Fields
Send the request as application/json.
| Field | Type | Required | Validation |
|---|---|---|---|
trId | string | Yes | 1–36 characters; letters, digits, and hyphens only. |
ktp | string | Yes | Raw Base64-encoded JPEG, JPG, or PNG image; decoded size at most 4 MB. |
Code
Send the Base64 value without a data:image/...;base64, prefix. KTP OCR API v2
validates the Base64 data, decoded file size, and detected image type. It does
not apply a documented pixel-dimension requirement.
Additional detection, blur, orientation, and NIK checks may run when enabled for your integration.
Last modified on
