API Overview
The Global ID Recognition API provides a powerful tool for worldwide ID document processing with the following capabilities:- Worldwide Support: Process ID documents from multiple countries
- Automatic Recognition: Automatically detect ID type and issuing country
- OCR Technology: Advanced optical character recognition for text extraction
- Data Extraction: Extract structured data from ID documents
- Verification: Verify document authenticity and validity
- Multi-Format Support: Handle various ID document formats
Request Parameters
Required Parameters
- idImage: Image of the front side of the ID document in base64 format
- issuingCountry: The ISO 3 Alpha Country Code of the issuing country for the ID document
- idType: The type of the ID document
Optional Parameters
- idBackImage: Image of the back side of the ID document in base64 format
- callbackUrl: The URL where the recognition results will be sent upon completion
Authentication
- x-api-key: API key essential for authentication and access control purposes
Response Format
The API returns detailed recognition results including:- apiType: API type identifier
- transactionId: Unique identifier for each request
- result: Object containing the processing result
- documentInfo: Extracted document information
- personalInfo: Extracted personal information
- verificationStatus: Document verification status
Supported Countries and ID Types
Major Countries
- USA: United States
- CAN: Canada
- MEX: Mexico
- BRA: Brazil
- ARG: Argentina
- GBR: United Kingdom
- DEU: Germany
- FRA: France
- ESP: Spain
- ITA: Italy
- KOR: South Korea
- JPN: Japan
- CHN: China
- AUS: Australia
- NZL: New Zealand
ID Types
- government_id: An official identification document issued by a government, typically used for verifying the identity of an individual
- passport: An official travel document issued by a government, certifying the holder’s identity and nationality, primarily used for international travel
- drivers_license: An official document permitting a specific individual to operate one or more types of motorized vehicles, such as motorcycles, cars, trucks, or buses
- residence_permit: An official document that allows a foreign individual to reside in a country for a certain period, typically issued by the immigration authority
- vehicle_registration_certificate: An official document providing proof of registration of a vehicle, including details about the vehicle and the owner
- visa: An official endorsement placed in a passport indicating that the holder is allowed to enter, leave, or stay for a specified period in a country
- aadhaar: A unique 12-digit identification number issued by the Indian government to residents of India, based on their biometric and demographic data
- pancard: A permanent account number (PAN) card issued by the Indian government to individuals and entities, used primarily for tax purposes
Use Cases
- KYC Processes: Streamline customer identity verification
- Banking: Verify customer identity for account opening
- Travel: Process travel documents and visas
- Employment: Verify employee identity and work permits
- Government Services: Process official identification documents
Processing Modes
Synchronous Processing
- Immediate response with recognition results
- Best for real-time applications
- Direct API response
Asynchronous Processing
- Use callback URL for delayed results
- Better for batch processing
- Detailed callback response format
Image Requirements
File Size
- Recommended: Less than 10MB
- Maximum: 50MB
Image Quality
- Resolution: Minimum 300 DPI recommended
- Format: High contrast, well-lit images work best
- Orientation: Document should be properly oriented
Supported Formats
- JPEG (.jpg, .jpeg)
- PNG (.png)
Error Handling
The 400 status code indicates that the request was unacceptable, often due to missing a required parameter. In asynchronous operations, where callbackUrl is provided, the error is detected during request validation.errorCode Type
The following table shows specific errorCodes returned by the API:Status Code | errorCode | Description | Detailed |
---|---|---|---|
400 | 1001 | Workspace is unavailable | workspace is not currently operating |
400 | 1003 | Fail to process data | Server had problem in processing data please retry |
400 | 1005 | idImage is required | idImage is not entered |
400 | 1006 | issuingCountry is required | issuingCountry is missing |
400 | 1010 | callbackUrl is required | callbackUrl is missing |
400 | 1011 | Fail to recognize idCard | the idCard’s image is different from issuingCountry and idType |
400 | 1012 | Fail to recognize back of an idCard | the idCard’s image is different from issuingCountry and idType |
400 | 1013 | Invalid image format | the image is not in Base64 format |
400 | 1014 | idType is required | idType is missing |
400 | 1015 | invalid inputs : missing fields | field is missing |
Authorizations
Body
Image of the front side of the ID document in base64 format. Base64 encoded characters in the payload must not include the MIME type. For example, if the encoded base64 characters are "image/png;base64,/9j/2wBDABQODxIP...", then remove "image/png;base64," and send only the encoded data "/9j/2wBDABQODxIP...".
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg=="
The ISO 3 Alpha Country Code of the issuing country for the ID document.
"USA"
The type of the ID document
government_id
, passport
, drivers_license
, residence_permit
, vehicle_registration_certificate
, visa
, aadhaar
, pancard
"government_id"
Image of the back side of the ID document in base64 format.
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg=="
The URL where the recognition results will be sent upon completion. If a callbackUrl is provided, the process works asynchronously. If no callbackUrl is provided, the process operates synchronously.
"https://your-domain.com/callback"