Document passback API
The Document Passback API lets your organization retrieve images of the identity documents used during ID.me verification, such as driver’s licenses and passports. Access requires an API token provisioned by your ID.me account team.
Environments
ID.me provides two environments:
https://api.idmelabs.com/
https://api.id.me/
Prerequisites
Before using the Document Passback API:
- Document Passback must be enabled on your consumer by your ID.me account team
- Your consumer must be configured to return the
document_tokensattribute from the attributes endpoint - You must have an API token provisioned by your ID.me account team
How it works
Retrieving a document image requires two values obtained from separate sources:
- A document token — returned dynamically from the attributes endpoint for each verified session
- An API token — a static token provisioned for your consumer by your ID.me account team
Get document tokens from the attributes endpoint
Call the attributes endpoint with a valid access token:
When document_tokens is enabled on your consumer, the response includes a front and back token for the verified identity document:
Document tokens are unique per call to the attributes endpoint — store them immediately if you need them for subsequent requests
Token refresh
If you need a document image for a repeat transaction but have not made a new call to the attributes endpoint, use the Token Refresh endpoint to generate a new document token without requiring a new user session.
Example response:
Use the returned token to call the Document endpoint as normal.
Dynamic image sizing
Pass a size parameter to resize the returned image:
If no size parameter is provided, the image is returned at its original uploaded resolution.
Aspect ratio
ID.me preserves the original aspect ratio using the smaller dimension as the constraint. For example, requesting 300x200 on a 500x400 image returns 250x200.
Size bounds
Rate limiting
The Document endpoint is rate-limited to 2 requests per minute per document.