Documents
ID.me verifies the following document types:
- Driver’s License / State ID
- Passport
- Passcard
All document endpoints require at least a front_image submitted as form-data. Driver’s License and Passcard endpoints also require a back_image. Images must be in image/jpeg or image/png format, between 40KB and 16MB in size.
All document endpoints accept an optional verification_id in the request body. If one is not provided, a new verification will be created and returned in the response.
You can check the status of a document verification at either the GET /api/v2/document/:transaction_id endpoint or the GET /api/v2/verification/:verification_id endpoint.
If a webhook is configured for your organization, ID.me will return the initial document verification result to the Document Verification Result Webhook. The webhook POST body is the same format as the GET /api/v2/document/:transaction_id response.
Watch the Documents API and mock errors demo for a walkthrough.
Driver’s License / State ID
POST /api/v2/document/license/verify
Verifies a driver’s license or state ID by processing front and back images of the document.
Parameters
Example request
Example response
Error responses
Passport
POST /api/v2/document/passport/verify
Verifies a passport by processing a front image of the document. Only a front_image is required.
Parameters
Example request
Example response
Error responses
Passcard
POST /api/v2/document/passcard/verify
Verifies a passcard by processing front and back images of the document.
Parameters
Example request
Example response
Error responses
Document verification status
GET /api/v2/document/:transaction_id
Returns the current status of a document verification transaction.
Parameters
Document errors
When a document verification fails, the result will include one of the following error codes: