---
title: Get List of Documents
slug: v3-gateway/get-list-of-documents
description: Learn how to leverage Digilocker's API to access a comprehensive list of over 1000 documents. This document includes step-by-step instructions for logging in and making API requests with the necessary authorization header. Explore a sample curl command an
createdAt: 2023-03-15T07:09:23.000Z
---

## Introduction

Digilocker provides access to 1000+ documents. This API will give you the list of all such documents along with doctype, organization id, and different search parameters for each of the documents. For Example, if you want to pull PAN card, you would need org id, doctype, search parameters which you will get using this API.

## How to call the API

You will need to log in before sending the request. You are required to pass the access token received from the login call, as the authorization header in the request.

## API Input Guidelines

### Sample Curl

::::Tabs
:::Tab{title="Production"}
```curl
curl --location 'https://api.wayne-rta.com/api/v1/digilocker/listofdocuments' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data '{}'
```
:::
::::

## Sample Response

```json
{
    "result": [
        {
            "docType": "PVCER",
            "docDescription": "Provisional Certificate",
            "orgId": "005408",
            "orgName": "Aditya Birla Housing Finance LTD, Gujarat",
            "searchParameters": [
                {
                    "parameterName": "LoanAccountNO",  
                    "parameterExample": "LNCHA0HL-09170000001",
                    "isParameterValueAList": "No",
                    "parameterValueList": null
                },
                {
                    "parameterName": "FYear",
                    "parameterExample": "2018-2019,2019-2020,2020-2021,2021-2022,2022-2023",
                    "isParameterValueAList": "Yes",
                    "parameterValueList": "2018-2019,2019-2020,2020-2021,2021-2022,2022-2023"
                }
            ]
        },
        {
            "docType": "DGCER",
            "docDescription": "Degree/ Diploma Certificate",
            "orgId": "003902",
            "orgName": "Adamas University, West Bengal",
            "searchParameters": [
                {
                    "parameterName": "RROLL",
                    "parameterExample": "12345",
                    "isParameterValueAList": "No",
                    "parameterValueList": null
                },
                {
                    "parameterName": "REGNO",
                    "parameterExample": "XYZ-123",
                    "isParameterValueAList": "No",
                    "parameterValueList": null
                },
                {
                    "parameterName": "YEAR",
                    "parameterExample": "2017,2018,2019,2020,2022",
                    "isParameterValueAList": "Yes",
                    "parameterValueList": "2017,2018,2019,2020,2022"
                }
            ]
        },
......
    ]
}

```

### Response Parameter

| PARAMETERS            | DESCRIPTION                                  | TYPE            | VALUE                                               |
| --------------------- | -------------------------------------------- | --------------- | --------------------------------------------------- |
| docType               | Type of Document                             | String          | DGCER                                               |
| docDescription        | Description of Document                      | String          | Degree/ Diploma Certificate                         |
| orgId                 | Organization Id document related to          | String          | 009259                                              |
| orgName               | Organization name document related to        | String          | Career Point University, Hamirpur, Himachal Pradesh |
| orgName               | Organization name document related to        | String          | Career Point University, Hamirpur, Himachal Pradesh |
| searchParameters      | Parameters Available to search in digilocker | List of Objects |                                                     |
| parameterName         | Search parameter                             | String          | REGNO                                               |
| parameterExample      | Search parameter                             | String          | 8/300001                                            |
| isParameterValueAList | Search parameter                             | String          | Yes/No                                              |
| parameterValueList    | Search parameter                             | String          | Depends on type of parameter                        |

## Sample Error

:::CodeblockTabs
```json
{
  "error": {
    "statusCode": "...status code...",
    "name": "error",
    "message": "....reason....",
    "status": "...status code...",
    "reason" : "",
    "type" : ""
  }
}
```

401

```json
{
    "message": "No API key found in request"
}
```

500

```json
{
    "error": {
        "statusCode": 500,
        "message": "Error fetching data",
        "status": 500,
        "reason": "Internal Server Error",
        "type": "Internal Server Error"
    }
}
```
:::

### Error Parameter

| **PARAMETER NAME** | **DESCRIPTION**                    |
| ------------------ | ---------------------------------- |
| error              | This parameter contains the error. |
| error.name         | the name of the error              |
| error.message      | the error message                  |
| error.status       | status of the api                  |
| error.statusCode   | Request Status code from Signzy    |
| error.reason       | Reason for error                   |
| error.type         | Type of the error                  |

### Error Codes

| **CODE** | **DESCRIPTION**               |
| -------- | ----------------------------- |
| 500      | Internal Server Error         |
| 401      | Autorization Token is invalid |

:::hint{type="success"}
### Getting help

Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.


You can reach out to us at [help@signzy.com](#).
:::

