m2pfintech

Document Identification

Identify the type of an ID document from an image — supports PAN Card, Aadhaar Card, Passport, Voter ID, and Driving License.

Document Identification

Document identifier collects an ID document as an input file, identifies the type of ID, and in response shares the ID name.

Supported ID Classes

  • PAN Card
  • Aadhaar Card
  • Passport
  • Voter ID
  • Driving License

Note: We keep updating our services and will add more document types in the future.

How It Works

Submit a Base64-encoded document image. The API analyses the document and returns the identified document type along with the document number where available.

Request Parameters

ParameterTypeLocationRequiredDescription
apikeystringHeaderYesAPI key provided by Syntizen. Pass 0 to skip encryption.
authkeystringHeaderYesAuthentication token obtained from the /userauthentication endpoint.
rrnstringBodyYesRequest Reference Number — any unique identifier for the transaction.
docimagestringBodyYesBase64-encoded document image. Supported formats: JPG, PNG.

Response

On success, the response includes a docs array where each item contains:

  • doc_type — identified document type (e.g., "AADHAAR", "PAN", "PASSPORT").
  • doc_number — document number if extractable, otherwise null.
POST
/IdentifyDocument

Authorization

AuthKeyAuth
authkey<token>

Authentication token obtained from /userauthentication endpoint

In: header

Header Parameters

apikey*string

API key provided by Syntizen

authkey*string

Authentication token obtained from /userauthentication endpoint

Request Body

application/json

docimage*string

Base64 encoded document image (PAN Card/Voter ID/Passport/Aadhaar Card/Driving License)

rrn*string

Request Reference Number, any unique number for the identification of transaction

Response Body

application/json

application/json

application/json

curl -X POST "https://api.syntizen.com/IdentifyDocument" \  -H "apikey: 0" \  -H "authkey: string" \  -H "Content-Type: application/json" \  -d '{    "docimage": "/9j/txeTNfUig+ZPCeJhmtfkkKwrh1Q+P/Z",    "rrn": "1"  }'

{
  "respcode": "200",
  "respdesc": "Success.",
  "rrn": "1",
  "docs": [
    {
      "doc_type": "AADHAAR",
      "doc_number": null
    }
  ]
}

{
  "respcode": "400",
  "respdesc": "Bad Request - Missing or invalid request parameters"
}
{
  "respcode": "401",
  "respdesc": "Unauthorized - Invalid or expired auth key"
}

On this page