> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dojah.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Driver's Licence

> Verify a Nigerian driver's licence by licence number.

<div className="dj-endpoint">
  <span className={`dj-method dj-method-get`}>GET</span>
  <code>/api/v1/kyc/dl</code>
</div>

Verify a Nigerian driver’s licence and return the holder’s details, issue/expiry dates, and photo.

## Headers

| Header          | Required | Description                                         |
| --------------- | -------- | --------------------------------------------------- |
| `Authorization` | Yes      | Your app's secret key, sent as-is — *not* `Bearer`. |
| `AppId`         | Yes      | The App ID from your dashboard.                     |

## Query parameters

| Parameter        | Type   | Required | Description                |
| ---------------- | ------ | -------- | -------------------------- |
| `license_number` | string | Yes      | A driver's licence number. |

## Response

Returns an `entity` with the licence number, holder’s names, gender, issue and expiry dates, state of issue, birth date, and a base64 `photo`. Note these fields use camelCase.

## Errors

| Code  | Meaning                                                                                       |
| ----- | --------------------------------------------------------------------------------------------- |
| `400` | Bad request — a required parameter is missing or malformed.                                   |
| `401` | Unauthorized — check your key and `AppId` (no `Bearer` prefix).                               |
| `402` | Insufficient wallet balance. [Fund your wallet](/api-reference/core-concepts/wallet-billing). |
| `404` | No record found for the supplied identifier.                                                  |
| `424` | The upstream source was unavailable — retry shortly.                                          |
| `429` | Too many requests — back off and retry.                                                       |

## Sandbox

Test with `license_number=FKJ494A2133` or `license_number=FKJ49409AB13` against `https://sandbox.dojah.io`. See [Sandbox & test data](/api-reference/get-started/sandbox-test-data) for every test value.

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    "https://api.dojah.io/api/v1/kyc/dl?license_number=FKJ494A2133" \
    -H "Authorization: {{secret_key}}" \
    -H "AppId: {{app_id}}"
  ```

  ```js Node.js theme={null}
  const params = new URLSearchParams({
    "license_number": "FKJ494A2133",
  });

  const url = "https://api.dojah.io/api/v1/kyc/dl?" + params;
  const res = await fetch(url, {
    headers: {
      Authorization: process.env.DOJAH_SECRET_KEY,
      AppId: process.env.DOJAH_APP_ID,
    },
  });
  const data = await res.json();
  ```

  ```python Python theme={null}
  import os, requests

  res = requests.get(
      "https://api.dojah.io/api/v1/kyc/dl",
      headers={
          "Authorization": os.environ["DOJAH_SECRET_KEY"],
          "AppId": os.environ["DOJAH_APP_ID"],
      },
      params={ "license_number": "FKJ494A2133" },
  )
  data = res.json()
  ```
</RequestExample>

<ResponseExample>
  ```json GET /api/v1/kyc/dl theme={null}
  {
    "entity": {
      "uuid": "1625583696",
      "licenseNo": "FKJ494A2133",
      "firstName": "JOHN",
      "lastName": "MUSA",
      "middleName": "",
      "gender": "Male",
      "issuedDate": "2019-01-25",
      "expiryDate": "2024-08-17",
      "stateOfIssue": "LAGOS",
      "birthDate": "28-09-1998",
      "photo": "BASE 64 IMAGE"
    }
  }
  ```
</ResponseExample>
