PrivyPrivy
Sign in
  • Documentation
Back to Documentation
B2B Digital Certificate Issuance Support
OverviewChangelog
Insights API
Face Compare API
KTP OCR API
    v2
      OverviewQuickstartEnvironmentsAuthenticationRequest FieldsOCR ResultsErrors
ID Card Forgery
API Explorer
powered by Zudoku
Sign in
v2

Request Fields

Send the request as application/json.

FieldTypeRequiredValidation
trIdstringYes1–36 characters; letters, digits, and hyphens only.
ktpstringYesRaw Base64-encoded JPEG, JPG, or PNG image; decoded size at most 4 MB.
Code
{ "trId": "ktp-ocr-001", "ktp": "/9j/4AAQSkZJRgABAQAAAQABAAD..." }

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 October 23, 2026
AuthenticationOCR Results
JSON