API Documentation

Extract KTP (Synchronous)

Synchronous KTP method helps you to recognize text in KTP image and the extraction result will be processed and returned immediately.

The detection of KTP quality is always checked in this Extract KTP Synchronous, but you can set whether you want to validate your KTP quality photo by using validate_quality request.

You will receive a response consists of message and an error code if the request fails to process. The following is a list of error codes.

Error statusError codeDescription
400INVALID_PAYLOADNo value in payload or empty string more than 1
400INVALID_PAYLOAD_IMAGE_MISSINGImage empty string
400INVALID_PAYLOAD_IMAGE_SIZEImage size too big/too small
400INVALID_PAYLOAD_IMAGE_FORMATImage unable to be decoded/got from url OR invalid image extension
400MISSING_PAYLOAD_IMAGEMissing payload image
400KTP_NOT_DETECTEDKTP not detected from image
400INVALID_PAYLOAD_REFERENCE_IDreference_id is too short/too long
400INVALID_PAYLOAD_REFERENCE_ID_EXISTSreference_id already exists (not unique)
400INVALID_PAYLOAD_QUALITY_VALIDATION_DEPENDENCYis_quality must be true if validate_quality true
403INSUFFICIENT_QUOTAQuota for extract/quality is not sufficient to further continue the request (Only appears on testing mode)
500INTERNAL_SERVER_ERRORInternal server error
Language
Click Try It! to start a request and see the response here!