Skip to main content
POST
/
verifications
/
check-duplicate
Check for duplicate files
curl --request POST \
  --url https://api.anycheck.ai/verifications/check-duplicate \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-Key: <api-key>' \
  --form 'files=<string>' \
  --form verification_id=3c90c3cc-0d44-4b50-8888-8dd25736052a \
  --form files.items='@example-file'
{
  "is_duplicate": true,
  "detected_documents": [
    "KTP",
    "SELFIE"
  ],
  "previous_verifications": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "service": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "KTP & PEP"
      },
      "folder": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>"
      },
      "detected_documents": [
        "<string>"
      ]
    }
  ]
}

Authorizations

X-API-Key
string
header
required

API key for service-to-service authentication

Body

multipart/form-data
files
file[]
required

Files to check for duplicates

Minimum array length: 1
verification_id
string<uuid>

Optional. Exclude a specific verification from the duplicate check (useful when retrying)

Response

Duplicate check result

is_duplicate
boolean

Whether any of the files have been used in a previous verification

Example:

true

detected_documents
string[]

Document types identified in the uploaded files

Example:
["KTP", "SELFIE"]
previous_verifications
object[]

Previous verifications that used these same files