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

Overview

KTP OCR API v2 extracts demographic identity information from a submitted KTP image. The extracted data can support downstream digital certificate issuance processing, but this API does not independently verify the identity, decide issuance eligibility, or issue a digital certificate.

Endpoint

POST /api/v2/ocr

How it works

  1. Send a unique trId and a Base64-encoded KTP image.
  2. Privy validates the credentials, transaction ID, and image.
  3. Configured image-quality checks and OCR processing run.
  4. Privy returns the demographic fields extracted from the KTP.

Some quality checks, including KTP detection, blur, orientation, and NIK checking, depend on the service configuration provisioned for your integration.

Next steps

  • Follow the Quickstart.
  • Review Authentication.
  • Prepare the KTP image according to Request Fields.
Last modified on October 23, 2026
ErrorsQuickstart
On this page
  • Endpoint
  • How it works
  • Next steps