POST
/
identityDocuments
/
verifications
curl --request POST \
  --url https://api.sandbox.sardine.ai/v1/identityDocuments/verifications \
  --header 'Content-Type: application/json' \
  --data '{
  "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
  "sessionKey": "555fdc5c-8694-4345-b724-14454f320484",
  "documentType": "passport",
  "frontImage": "dl_front.jpeg",
  "backImage": "dl_back.jpeg",
  "photoImage": "selfie.jpeg",
  "inputData": {
    "issuingCountry": "US",
    "documentNumber": "L89781313",
    "firstName": "John",
    "middleName": "string",
    "lastName": "Doe",
    "dateOfBirth": "1980-08-24",
    "dateOfIssue": "2014-08-24",
    "dateOfExpiry": "2024-08-24",
    "gender": "male",
    "address": {
      "street1": "1 Main St",
      "city": "Okhahoma City",
      "region": "Oklhahoma",
      "postalCode": "70438",
      "countryCode": "US"
    }
  }
}'
{
  "sessionKey": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "id": "<string>"
}

Body

application/json
customerId
string
required

ID of Customer

sessionKey
string
required

uiud that identifies the given customer session

documentType
enum<string>
required

Type of ID document

Available options:
passport,
national_identity_card,
driver_license,
other,
unknown
frontImage
string
required

Color image file of the ID document. Supported formats: bitmap, jpeg, png and pdf. Image size has to be between 30KB and 5MB

backImage
string

Image file of the back of the ID document (only applicable for 2-sided ID document)

photoImage
string

selfie image, if provided Sardine will compare selfie with photo in ID document

inputData
object

User-provided identity data and document data. If this field is provided, sardine will check match/mismatch between user-provided information and data on the ID document

Response

200 - application/json
OK
sessionKey
string

uuid that identifies the given customer session

id
string

ID of document verification