Skip to main content

Run document fraud detection on an uploaded image

POST 

/v1/fraud/detect

A secret key gets the full result. A session token or publishable key gets the end-user view (view: end_user): the decision and summary.action, with reason codes only for a retake. Read the full result on your server with GET /v1/fraud/checks/{fc_id} and a secret key.

Request​

Responses​

The full result for a secret key; the end-user view for a session token or publishable key.

SDK usage​

// not exposed in the v2 SDK; call POST /v1/fraud/detect directly if needed.
// not exposed in the v2 SDK.

Example​

curl -X POST https://api.drukverify.com/v1/fraud/detect \
-H "Authorization: Bearer dv_sk_test_..." \
-F "image=@document.jpg" \
-F "document_type=cid"