Global ID Recognition API
신분증 앞·뒷면 이미지와 발급 국가, 신분증 유형을 함께 분석하여 신분증을 인식하고 검증합니다
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
result is identical in both processing modes. Only the envelope around it differs.
- apiType: fixed value
id_recognition - transactionId: unique identifier for each request
- result: the recognition result
- document_type: recognised document type. Falls back to
<issuingCountry>.<idType>(for exampleKOR.drvlic) when the engine cannot determine it - review_front: whether the front side produced a result
- review_back: whether the back side produced a result. Present only when
idBackImagewas sent - data.raw: per-field raw engine output. Each field may include
- value: the recognised value, passed through from the engine (string, number or boolean)
- score: confidence score 0-100. Present only when the engine returns one for that field
- accepted: validation result. Present only when the engine returns one for that field
- coordinates: bounding box in the cropped image, with
first,second,thirdandfourthcorner points - original_coordinates: bounding box in the original uploaded image, before cropping
- data.ocr: the corrected, final OCR values. Each
ocr_*key may be paired withaccepted_ocr_*
- document_type: recognised document type. Falls back to
accepted_ocr_* before trusting a value.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
callbackUrl is optional. Whether you send it decides how the result comes back.
Synchronous - no callbackUrl
The connection stays open until processing finishes and the result arrives in the HTTP 200 body.statusCode or webhookUrl.Asynchronous - callbackUrl provided
The HTTP 200 returned immediately only confirms receipt.callbackUrl. That payload carries the same result
plus two extra fields:
idImage, issuingCountry or idType, an invalid image format,
or an unsupported country or ID type) are returned as an immediate HTTP 400 in both modes.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:callbackUrl is optional for this endpoint. Omitting it selects synchronous processing;
it is not a missing required parameter.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"