List User Documents
List documents for a user by email or phone
GET /di/document/list
Query parameters
| Param | Required | Description |
|---|---|---|
email | One of email/phone | User email |
phone | One of email/phone | Phone number with country code, without + (e.g. 916123456780). The number without country code (e.g. 6123456780) also matches. |
docType | No | Comma-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
| Field | Type | Description |
|---|---|---|
code | integer | Result code (see below) |
message | string | Result message |
data | array | Matching documents. Empty for 3002, omitted for 3001. |
data[].document_id | string | Document ID. Use it with Read Document. |
data[].sidKeyName | string | Document type key (e.g. ADHAR) |
data[].sidName | string | Document type name (e.g. Aadhaar) |
data[].documentCreateTime | string | Document creation time (ISO 8601) |
data[].access_id | string | null | Access ID, or null |
data[].accessCreateTime | string | null | Access creation time, or null |
Response codes
All three codes return HTTP 200.
| Code | Message |
|---|---|
3001 | No user found with the provided email or phone. |
3002 | User does not have the required document. |
3003 | Documents 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"
}| Status | Message | Cause |
|---|---|---|
400 | Input required: Please provide either an email address or a phone number | Neither email nor phone is sent |
400 | <value> is a invalid Document Type | A docType value is not supported. Lowercase values and spaces after commas also fail. |
401 | Error: Token Missing | Authorization header is missing |
401 | HttpException: Invalid Token ID | tokenId header is missing |
401 | HttpException: Wrong/Invalid Authorisation | Secret key is wrong |
401 | HttpException: No record found with the provided Token ID | tokenId does not match any account |
Updated 17 days ago
Did this page help you?