Skip to main content
POST
/
kyc
/
verify
/
document
Verify Identity Document with Face
curl --request POST \
  --url https://devapi.withedge.co/gateway/api/v1/kyc/verify/document \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'requestId: <requestid>' \
  --data '
{
  "docType": "<string>",
  "docImage": "<string>",
  "documentNumber": "<string>",
  "selfieImage": "<string>"
}
'
{
	"statusCode": 00,
	"message": "Completed successfully"
	"data": {},
	"errors": []
}

Documentation Index

Fetch the complete documentation index at: https://doc.withedge.co/llms.txt

Use this file to discover all available pages before exploring further.

Verify Identity Document with Face

Use this endpoint to validate an identity document (e.g., driver’s license, international passport) against a provided selfie image for identity verification purposes.

Request Parameters

requestId
string
required
A unique identifier for the request, used for idempotency.
Example: e0b9f8d0-7a57-4a67-a8b2-4d7c7b5a37c9
docType
string
required
The type of identification document to be verified. Options include:
  • Drivers License (DR)
  • International Passport (IP)
    Example: DR
docImage
string
required
A base64 encoded string of the document image to be verified.
Example: base64encodedstringofdocument
documentNumber
string
required
The unique number on the identification document.
Example: A1234567
selfieImage
string
required
A base64 encoded string of the selfie image for comparison with the document image.
Example: base64encodedstringofselfie
{
	"statusCode": 00,
	"message": "Completed successfully"
	"data": {},
	"errors": []
}