Authenteq API Documentation
  • Introduction
  • Create an Account
  • Documentation
    • Change Log
      • Mobile SDK
      • Web and API
    • Migration Guides
      • Mobile SDK 1.63 & WebIDV
      • Multi-Document Flow
    • Version Support
  • Mobile SDK
    • iOS
      • iOS Requirements
      • Installation
      • Identification
        • Identification Result
        • Document Identification Result
      • Face Authentication
      • Errors
      • Customization
    • Android
      • Android Requirements
      • Installation
      • Identification
        • Identification Result
        • Document Identification Result
      • Face Authentication
      • Customization
    • React Native
      • iOS
      • Android
    • Flutter
      • iOS
      • Android
    • Authentication Token
    • UI Customization
    • Examples
  • Web
    • Web Overview
    • Getting Started
    • How to Integrate Web?
    • Examples
    • API Reference
  • Export
    • Export Overview
    • API Reference
  • Webhook
    • Webhook Overview
  • AML
    • AML Overview
    • API Reference
  • Verification Links
    • Verification Links Overview
  • Recognition
    • Recognition Overview
    • API Reference
Powered by GitBook
On this page
  • Recognition with JSON response
  • Recognition with multipart response

Was this helpful?

  1. Recognition

API Reference

The details of API endpoints for document recognition.

Recognition with JSON response

POST https://api.app.authenteq.com/recognition/as-json

This endpoint allows you to perform document recognition and get the result in JSON response.

Headers

Name
Type
Description

Authorization

string

Your client credentials combined with a colon separator, base64-encoded and prefixed with "Basic ".

Content-Type

string

Always multipart/form-data.

Request Body

Name
Type
Description

frontImage

object

The front side document image.

backImage

object

The back side document image.

{
  "documentType": "NID",
  "documentNumber": "1234567890",
  "issuingCountry": "USA",
  "jurisdiction": "UT",
  "nationality": "USA",
  "surnameAndGivenNames": "JOHN DOE",
  "surname": "DOE",
  "givenNames": "JOHN",
  "namePrefixes": "MR",
  "nameSuffixes": "JR",
  "sex": "M",
  "dateOfBirth": "1964-12-30",
  "dateOfIssue": "2012-12-30",
  "dateOfExpiry": "2022-12-30",
  "address": "430-985 ELEIFEND^DULUTH WA 92611",
  "croppedFrontImage": {
    "contentType": "image/jpeg",
    "content": "Y3JvcHBlZEZyb250SW1hZ2U="
  },
  "croppedBackImage": {
    "contentType": "image/jpeg",
    "content": "Y3JvcHBlZEJhY2tJbWFnZQ=="
  },
  "faceImage": {
     "contentType": "image/jpeg",
     "content": "ZmFjZUltYWdlCg=="
  }
}
{
  "documentType": "PP",
  "documentNumber": "1234567890",
  "issuingCountry": "USA",
  "jurisdiction": "UT",
  "nationality": "USA",
  "surnameAndGivenNames": "JOHN DOE",
  "surname": "DOE",
  "givenNames": "JOHN",
  "namePrefixes": "MR",
  "nameSuffixes": "JR",
  "sex": "M",
  "dateOfBirth": "1964-12-30",
  "dateOfIssue": "2012-12-30",
  "dateOfExpiry": "2022-12-30",
  "croppedFrontImage": "<base64>",
  "croppedBackImage": "<base64>",
  "faceImage": "<base64>"
}
{
  "documentType": "DL",
  "documentNumber": "1234567890",
  "issuingCountry": "USA",
  "jurisdiction": "UT",
  "nationality": "USA",
  "surnameAndGivenNames": "JOHN DOE",
  "surname": "DOE",
  "givenNames": "JOHN",
  "namePrefixes": "MR",
  "nameSuffixes": "JR",
  "sex": "M",
  "dateOfBirth": "1964-12-30",
  "dateOfIssue": "2012-12-30",
  "dateOfExpiry": "2022-12-30",
  "licenseClass": "B/C/D",
  "licenseClassDetails": {
    "B": {
      "from": "2019-01-30",
      "to": "2029-01-30",
      "note": "Some note"
    },
    "C": {
      "from": "2019-01-30",
      "to": "2029-01-30"
    },
    "D": {
      "from": "2019-01-30",
      "to": "2029-01-30"
    }
  },
  "croppedFrontImage": "<base64>",
  "croppedBackImage": "<base64>",
  "faceImage": "<base64>"
}
{
  "errorCode": "API_KEYS_MISSING",
  "errorMessage": "No API Keys in the Authorization header"
}
{
  "errorCode": "API_KEYS_INVALID",
  "errorMessage": "Invalid API Keys in the Authorization header"
}
{
  "errorCode": "API_KEYS_BAD",
  "errorMessage": "Bad API Keys"
}
{
  "errorCode": "ACCOUNT_DEACTIVATED",
  "errorMessage": "Account deactivated. Please contact your Authenteq Sales Representative in order to keep using this service"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Recognition has failed on your request"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Document type was not recognized"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Document type is not supported: 32, name: Authorization Card"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Issuing country was not recognized"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Portrait is missing"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Some document fields are not valid",
  "errorDetails": {
    "Surname": "Barcode value is not valid"
  }
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Document number is missing"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Surname and given names are missing"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Surname is missing"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Date of birth is missing"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Document is expired"
}

Recognition with multipart response

POST https://api.app.authenteq.com/recognition/as-multipart

This endpoint allows you to perform document recognition and get the result in multipart response.

Headers

Name
Type
Description

Authentication

string

Your client credentials combined with a colon separator, base64-encoded and prefixed with "Basic ".

Content-Type

string

Always multipart/form-data.

Request Body

Name
Type
Description

frontImage

object

The front side document image.

backImage

object

The back side document image.

Content-Type: multipart/mixed;boundary=S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt

--S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt
Content-Disposition: form-data; name="documentData"
Content-Type: application/json

{
  "documentType": "NID",
  "documentNumber": "1234567890",
  "issuingCountry": "USA",
  "jurisdiction": "UT",
  "nationality": "USA",
  "surnameAndGivenNames": "JOHN DOE",
  "surname": "DOE",
  "givenNames": "JOHN",
  "namePrefixes": "MR",
  "nameSuffixes": "JR",
  "sex": "M",
  "dateOfBirth": "1964-12-30",
  "dateOfIssue": "2012-12-30",
  "dateOfExpiry": "2022-12-30",
  "address": "430-985 ELEIFEND^DULUTH WA 92611"
}
--S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt
Content-Disposition: form-data; name="croppedFrontImage"
Content-Type: image/jpeg

--S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt
Content-Disposition: form-data; name="croppedBackImage"
Content-Type: image/jpeg

--S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt
Content-Disposition: form-data; name="faceImage"
Content-Type: image/jpeg

--S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt--
Content-Type: multipart/mixed;boundary=S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt

--S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt
Content-Disposition: form-data; name="documentData"
Content-Type: application/json

{
  "documentType": "PP",
  "documentNumber": "1234567890",
  "issuingCountry": "USA",
  "jurisdiction": "UT",
  "nationality": "USA",
  "surnameAndGivenNames": "JOHN DOE",
  "surname": "DOE",
  "givenNames": "JOHN",
  "namePrefixes": "MR",
  "nameSuffixes": "JR",
  "sex": "M",
  "dateOfBirth": "1964-12-30",
  "dateOfIssue": "2012-12-30",
  "dateOfExpiry": "2022-12-30"
}
--S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt
Content-Disposition: form-data; name="croppedFrontImage"
Content-Type: image/jpeg

--S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt
Content-Disposition: form-data; name="croppedBackImage"
Content-Type: image/jpeg

--S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt
Content-Disposition: form-data; name="faceImage"
Content-Type: image/jpeg

--S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt--
Content-Type: multipart/mixed;boundary=S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt

--S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt
Content-Disposition: form-data; name="documentData"
Content-Type: application/json

{
  "documentType": "DL",
  "documentNumber": "1234567890",
  "issuingCountry": "USA",
  "jurisdiction": "UT",
  "nationality": "USA",
  "surnameAndGivenNames": "JOHN DOE",
  "surname": "DOE",
  "givenNames": "JOHN",
  "namePrefixes": "MR",
  "nameSuffixes": "JR",
  "sex": "M",
  "dateOfBirth": "1964-12-30",
  "dateOfIssue": "2012-12-30",
  "dateOfExpiry": "2022-12-30",
  "licenseClass": "B/C/D",
  "licenseClassDetails": {
    "B": {
      "from": "2019-01-30",
      "to": "2029-01-30",
      "note": "Some note"
    },
    "C": {
      "from": "2019-01-30",
      "to": "2029-01-30"
    },
    "D": {
      "from": "2019-01-30",
      "to": "2029-01-30"
    }
  }
}
--S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt
Content-Disposition: form-data; name="croppedFrontImage"
Content-Type: image/jpeg

--S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt
Content-Disposition: form-data; name="croppedBackImage"
Content-Type: image/jpeg

--S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt
Content-Disposition: form-data; name="faceImage"
Content-Type: image/jpeg

--S1SPHauV7jaDgqMljnwfF-gQ2I1AcxAYrwgCt--
{
  "errorCode": "API_KEYS_MISSING",
  "errorMessage": "No API Keys in the Authorization header"
}
{
  "errorCode": "API_KEYS_INVALID",
  "errorMessage": "Invalid API Keys in the Authorization header"
}
{
  "errorCode": "API_KEYS_BAD",
  "errorMessage": "Bad API Keys"
}
{
  "errorCode": "ACCOUNT_DEACTIVATED",
  "errorMessage": "Account deactivated. Please contact your Authenteq Sales Representative in order to keep using this service"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Recognition has failed on your request"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Document type was not recognized"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Document type is not supported: 32, name: Authorization Card"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Issuing country was not recognized"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Portrait is missing"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Some document fields are not valid",
  "errorDetails": {
    "Surname": "Barcode value is not valid"
  }
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Document number is missing"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Surname and given names are missing"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Surname is missing"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Date of birth is missing"
}
{
  "errorCode": "RECOGNITION_FAILED",
  "errorMessage": "Document is expired"
}
PreviousRecognition Overview

Last updated 3 years ago

Was this helpful?