Download Documents

To retrieve the originally submitted documents by the end-user you can call the following endpoint that returns urls to directly download the document associated with the verification. The download url is signed against the requesting IP address (/32) that has a valid x-lem-key and the webhooks enabled.

Please note: the url will expire 5 minutes after the requested can only be downloaded from the same IP address (/32) that requested the download url.

To request a the document download url(s), make a HTTPS GET request to https://api.lemverify.io/integrations/v1/webhooks/{accountId}/document/{systemId}/url, where {accountId} is your LEM Verify account ID found in the Account Setup section of the dashboard and where {systemId} is the id sent through in the "POST Request Webhook" request (or you can use the System ID that is on the verification page detail section).

The response will be a 200 with the following body:

{
  "report": "signed url of the LEM Verify report",
  "amlReport": "signed url of the LEM Verify AML report (if enabled and available)",
  "documentFront": "signed url of document front image",
  "documentBack": "signed url of document back image (only present for Driving License and Identity Documents types)",
  "redactedReport": "signed url of the redacted LEM Verify report (if enabled and available)",
  "smartsearchReport": "signed url of the SmartSearch report (if enabled and available)",
  "supportingDocument": "signed url of the supporting document uploaded by the end-iser (if enabled and available)"
}

If the verification ID does not exist a 404 code will be returned.

All download url requests are logged in the "Audit Trail" section of a requested verification. The audit logs can be viewed at the bottom of a verification page from your LEM Verify dashboard.