v1
latestOpenAPI 3.0.22026-07-2432112226.7 KBID Forgery
ID Forgery
This method helps you to to detect if an ID is real or fake. <br> 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. </br>
| 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 |
post/v2/ktp/idforgery
Headers
App-IDstring required
API-Keystring required
Request body
Response
Successful Response
Example response
{
"Message": "Forgery Detected",
"error_code": "FAIL_ON_1"
}