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

Authentication

KTP OCR API v2 uses Basic Authentication with a merchant key.

HeaderValue
AuthorizationBasic <Base64(username:password)>
Merchant-KeyMerchant key provided by Privy
Content-Typeapplication/json
Code
Authorization: Basic <credentials> Merchant-Key: <merchant-key> Content-Type: application/json

Keep credentials on your server. Never expose them in browser or mobile application code.

Last modified on October 23, 2026
EnvironmentsRequest Fields