> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.driver.olycab.in/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.driver.olycab.in/_mcp/server.

# List Driver Documents

GET https://driver/#get10

# List Driver Documents

Fetches the complete list of all KYC documents uploaded by the authenticated driver, including file URLs, entered numbers, and administrative verification statuses.

***

### Endpoint Overview

* **Method:** `GET`

* **Route:** `/api/v1/driver/documents`

* **Authentication:** `Bearer Token (Driver JWT)`

* **Content-Type:** `N/A`

***

### Request Headers

| Header          | Type     | Required | Description      |
| --------------- | -------- | -------- | ---------------- |
| `Authorization` | `string` | **Yes**  | Format: `Bearer` |

***

### Request Body Schema

*None (GET request)*

***

### Response Body Schema (`200 OK`)

| Top-Level Key | Data Type | Description                                           |
| ------------- | --------- | ----------------------------------------------------- |
| `documents`   | `array`   | Array of all document records submitted by the driver |

#### `Document Item Fields`

| Field                  | Data Type | Nullable | Allowed Values / Constraints                                                                                | Description                      |
| ---------------------- | --------- | -------- | ----------------------------------------------------------------------------------------------------------- | -------------------------------- |
| `id`                   | `string`  | No       | Prefixed with `ddoc_`                                                                                       | Unique document ID               |
| `driverId`             | `string`  | No       | Prefixed with `drv_`                                                                                        | Driver ID                        |
| `document_type`        | `enum`    | No       | `"DRIVING_LICENCE""AADHAAR""PAN""VEHICLE_RC""VEHICLE_MODEL_NUMBER""PERMIT""INSURANCE""FITNESS_CERTIFICATE"` | Document category                |
| `front_image_url`      | `string`  | Yes      | Valid URL                                                                                                   | Hosted front side image URL      |
| `back_image_url`       | `string`  | Yes      | Valid URL                                                                                                   | Hosted back side image URL       |
| `document_number`      | `string`  | Yes      | String                                                                                                      | Document identifier number       |
| `name_on_doc`          | `string`  | Yes      | String                                                                                                      | Name printed on document         |
| `date_of_birth`        | `string`  | Yes      | ISO 8601 Timestamp                                                                                          | Date of birth                    |
| `fuel_type`            | `enum`    | Yes      | `"PETROL"`, `"DIESEL"`, `"CNG"`, `"ELECTRIC"`, `null`                                                       | Vehicle fuel type (for RC)       |
| `vehicle_model_number` | `string`  | Yes      | String                                                                                                      | Model number                     |
| `verification_status`  | `enum`    | No       | `"PENDING""APPROVED""REJECTED"`                                                                             | Admin approval state             |
| `rejection_reason`     | `string`  | Yes      | String                                                                                                      | Reason if status is `REJECTED`   |
| `verified_at`          | `string`  | Yes      | ISO 8601 Timestamp                                                                                          | When admin reviewed the document |
| `verified_by`          | `string`  | Yes      | Admin ID                                                                                                    | Admin who reviewed the document  |
| `created_at`           | `string`  | No       | ISO 8601 Timestamp                                                                                          | Initial submission timestamp     |
| `updated_at`           | `string`  | No       | ISO 8601 Timestamp                                                                                          | Last update timestamp            |

***

### `Response Examples`

#### ``1. `200 OK` — Multiple Documents Returned``

```json
{
  "documents": [
    {
      "id": "ddoc_9a8b7c6d5e",
      "driverId": "drv_8a7b6c5d4e",
      "document_type": "DRIVING_LICENCE",
      "front_image_url": "https://storage.example.com/docs/dl_front.jpg",
      "back_image_url": "https://storage.example.com/docs/dl_back.jpg",
      "document_number": "KA0120200012345",
      "name_on_doc": null,
      "date_of_birth": "1992-05-15T00:00:00.000Z",
      "fuel_type": null,
      "vehicle_model_number": null,
      "verification_status": "APPROVED",
      "rejection_reason": null,
      "verified_at": "2026-09-21T06:00:00.000Z",
      "verified_by": "adm_super123",
      "created_at": "2026-09-21T05:30:00.000Z",
      "updated_at": "2026-09-21T06:00:00.000Z"
    },
    {
      "id": "ddoc_1b2c3d4e5f",
      "driverId": "drv_8a7b6c5d4e",
      "document_type": "PAN",
      "front_image_url": "https://storage.example.com/docs/pan_front.jpg",
      "back_image_url": null,
      "document_number": "ABCDE1234F",
      "name_on_doc": "Ravi Kumar",
      "date_of_birth": null,
      "fuel_type": null,
      "vehicle_model_number": null,
      "verification_status": "PENDING",
      "rejection_reason": null,
      "verified_at": null,
      "verified_by": null,
      "created_at": "2026-09-21T05:35:00.000Z",
      "updated_at": "2026-09-21T05:35:00.000Z"
    }
  ]
}

```

#### ``2. `200 OK` — No Documents Submitted Yet``

```json
{
  "documents": []
}

```

#### ``3. `401 Unauthorized` — Missing / Expired Token / Revoked Session``

```json
{
  "error": "Unauthorized",
  "message": "Invalid or expired driver access token."
}

```

#### ``4. `403 Forbidden` — Account Blocked / Deactivated``

```json
{
  "error": "Forbidden",
  "message": "Driver account is blocked or deactivated."
}

```

#### `` 5. `500 Internal Server Error` ``

```json
{
  "error": "Failed to fetch documents"
}

```

***

### `Status Codes Reference`

| HTTP Status Code                | Condition                                                     |
| ------------------------------- | ------------------------------------------------------------- |
| **`200 OK`**                    | List of documents returned successfully (can be empty array). |
| **`401 Unauthorized`**          | Missing, invalid, expired token or session revoked.           |
| **`403 Forbidden`**             | Driver account is deactivated or blocked.                     |
| **`500 Internal Server Error`** | Server or database query error.                               |

Reference: https://docs.driver.olycab.in/oly-driver/document/list-driver-documents

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Examples

**SDK Code**

```python
import requests

url = "https://driver/#get10"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://driver/#get10';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://driver/#get10"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://driver/#get10")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://driver/#get10")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://driver/#get10', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://driver/#get10");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://driver/#get10")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```