post https://api.verihubs.com/v2/ktp/idforgery
This method helps you to to detect if an ID is real or fake.
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 status | Error code | Description |
|---|---|---|
| 200 | FAIL_ON_1 | fail on quality |
| 200 | FAIL_ON_2 | forgery detected |
| 400 | INVALID_PAYLOAD | no value in payload or empty string more than 1 |
| 400 | INVALID_PAYLOAD_IMAGE_MISSING | invalid payload image not a standard b64/url or image empty string |
| 400 | MISSING_PAYLOAD_IMAGE | missing payload image |
| 400 | INVALID_PAYLOAD_IMAGE_TIMEOUT | timeout getting image from url in 15 seconds |
| 400 | INVALID_PAYLOAD_IMAGE_FORMAT | image unable to be decoded/got from url OR invalid image extension |
| 400 | INVALID_PAYLOAD_QUALITY_VALIDATION_DEPENDENCY | is_quality must be true if validate_quality true |
| 403 | INSUFFICIENT_QUOTA | usage reach it quota limit for ID Forgery |
| 500 | INTERNAL_SERVER_ERROR | internal server error |
