List User Documents

List documents for a user by email or phone

GET /di/document/list

Query parameters

ParamRequiredDescription
emailOne of email/phoneUser email
phoneOne of email/phonePhone number with country code, without + (e.g. 916123456780). The number without country code (e.g. 6123456780) also matches.
docTypeNoComma-separated document types, with no spaces (e.g. ADHAR or ADHAR,PSPRT). Values are case-sensitive.

Example request

curl 'https://api.qidpro.xyz/di/document/list?email=user%40example.com&docType=ADHAR%2CPSPRT' \
  --header 'Authorization: Bearer your-secret-key' \
  --header 'tokenId: your-token-id'

Example response

Status 200 OK:

{
  "code": 3003,
  "message": "Documents found",
  "data": [
    {
      "document_id": "66b3174a38534634dd13040b",
      "sidKeyName": "ADHAR",
      "sidName": "Aadhaar",
      "documentCreateTime": "2026-11-10T11:44:43.139Z",
      "access_id": null,
      "accessCreateTime": null
    },
    {
      "document_id": "66b3176538534634dd130489",
      "sidKeyName": "PSPRT",
      "sidName": "Passport",
      "documentCreateTime": "2026-11-10T11:45:16.937Z",
      "access_id": null,
      "accessCreateTime": null
    }
  ]
}

Documents are listed oldest first.

Response fields

FieldTypeDescription
codeintegerResult code (see below)
messagestringResult message
dataarrayMatching documents. Empty for 3002, omitted for 3001.
data[].document_idstringDocument ID. Use it with Read Document.
data[].sidKeyNamestringDocument type key (e.g. ADHAR)
data[].sidNamestringDocument type name (e.g. Aadhaar)
data[].documentCreateTimestringDocument creation time (ISO 8601)
data[].access_idstring | nullAccess ID, or null
data[].accessCreateTimestring | nullAccess creation time, or null

Response codes

All three codes return HTTP 200.

CodeMessage
3001No user found with the provided email or phone.
3002User does not have the required document.
3003Documents found

No user found:

{
  "code": 3001,
  "message": "No user found with the provided email or phone."
}

User has none of the requested docType values:

{
  "code": 3002,
  "message": "User does not have the required document.",
  "data": []
}

Errors

Errors return this shape:

{
  "statusCode": 400,
  "message": "FOO is a invalid Document Type",
  "timestamp": "2026-11-10T11:45:35.818Z",
  "path": "/di/document/list?email=user%40example.com&docType=FOO",
  "requestId": "7f6f09d1-75a4-4bc4-8820-4d84773472a3"
}
StatusMessageCause
400Input required: Please provide either an email address or a phone numberNeither email nor phone is sent
400<value> is a invalid Document TypeA docType value is not supported. Lowercase values and spaces after commas also fail.
401Error: Token MissingAuthorization header is missing
401HttpException: Invalid Token IDtokenId header is missing
401HttpException: Wrong/Invalid AuthorisationSecret key is wrong
401HttpException: No record found with the provided Token IDtokenId does not match any account

Did this page help you?