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
| Parameter | Type | Location | Required | Description |
|---|---|---|---|---|
apikey | string | Header | Yes | API key provided by Syntizen. Pass 0 to skip encryption. |
authkey | string | Header | Yes | Authentication token obtained from the /userauthentication endpoint. |
rrn | string | Body | Yes | Request Reference Number — any unique identifier for the transaction. |
docimage | string | Body | Yes | Base64-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, otherwisenull.
Authorization
AuthKeyAuth Authentication token obtained from /userauthentication endpoint
In: header
Header Parameters
API key provided by Syntizen
Authentication token obtained from /userauthentication endpoint
Request Body
application/json
Base64 encoded document image (PAN Card/Voter ID/Passport/Aadhaar Card/Driving License)
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"
}