---
title: DL Verification
slug: api-marketplace/dl-verification
description: Discover how Signzy Technologies Private Limited's Driving License Verification API can help businesses effortlessly verify the authenticity of driving licenses. This API allows businesses in the transportation, finance, and insurance industries to preven
createdAt: 2023-04-19T11:41:26.000Z
---

## Introduction

The Driving License Verification API is a RESTful API provided by Signzy Technologies Private Limited that enables businesses to verify the authenticity of a driving license. This API allows you to send a request with the driving license number, date of birth, and issue date (optional), and it returns a response with the verification status, a message indicating the outcome of the verification process, and additional information such as the issue date, expiry date, and vehicle class.

By integrating the Driving License Verification API into your workflow, you can ensure that your customers' driving licenses are valid and prevent fraud or misrepresentation. This API can be used in a variety of industries such as transportation, finance, and insurance. The API provides a reliable and efficient solution for verifying driving licenses, helping you to reduce manual effort and improve your customer experience.

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

```text
POST https://api.signzy.app/api/v3/dl_/verification
```
:::

:::CodeblockTabs
UAT/Testing Endpoint

```text
POST https://api-preproduction.signzy.app/api/v3/dl_/verification
```
:::

***

### Request Headers

| Name          | Value            | Required  | Description                                                                                                |
| ------------- | ---------------- | --------- | ---------------------------------------------------------------------------------------------------------- |
| Content-Type  | application/json | Mandatory | The type of content that the request body contains.                                                        |
| Authorization | XXXXXXXXXXXXXXX  | Mandatory | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |

***

### Request body parameters

| Parameter | Data Type | Description                                                                              | Required  |
| --------- | --------- | ---------------------------------------------------------------------------------------- | --------- |
| number    | String    | Driving License number to be verified.                                                   | Mandatory |
| dob       | String    | Date of birth (DOB) associated with the driving license number. In format **DD/MM/YYYY** | Mandatory |
| issueDate | String    | Issue date of the Driving License. In format **DD/MM/YYYY.**                             | Optional  |

:::CodeblockTabs
JSON

```json
{
    "number": "<License number>",
    "dob": "<DD/MM/YYYY>",
    "issueDate": "<DD/MM/YYYY>"
}
```
:::

***

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/dl_/verification' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Your Auth Key>' \
--data '{
    "number": "WB7319930000000",
    "dob": "08/07/1986",
    "issueDate": "25/10/2021"
}'
```

```nodejs
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://api-preproduction.signzy.app/api/v3/dl_/verification',
  'headers': {
    'Content-Type': 'application/json',
    'Authorization': '<Your Auth Key>'
  },
  body: JSON.stringify({
    "number": "WB7319930000000",
    "dob": "08/07/1986",
    "issueDate": "25/10/2021"
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

```

```python
import requests
import json

url = "https://api-preproduction.signzy.app/api/v3/dl_/verification"

payload = json.dumps({
  "number": "WB7319930000000",
  "dob": "08/07/1986",
  "issueDate": "25/10/2021"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<your Auth Key>'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

```go
package main

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

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/dl_/verification"
  method := "POST"

  payload := strings.NewReader(`{
    "number": "WB7319930000000",
    "dob": "08/07/1986",
    "issueDate": "25/10/2021"
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "<your Auth Key>")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
```
:::

***

### Response body parameters

| Parameter                    | Data Type        | Description                                                                                                                                        |
| ---------------------------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| result                       | Object           | An object containing the verification result.                                                                                                      |
| result.verified              | Boolean          | Indicates whether the verification process was successful. "**true"** if all the inputs are valid and true as in Driving license else "**false".** |
| result.message               | String           | A message describing the result of the verification process.                                                                                       |
| result.moreInfo              | Object           | Additional information about the verification result. This information is provided only when **verified** is "**true".**                           |
| result.moreInfo.issueDate    | String           | The issue date of the driving license in the format  "**Mon DD, YYYY**".                                                                           |
| result.moreInfo.expiryDate   | String           | The expiry date of the driving license in the format "**Mon DD, YYYY**".                                                                           |
| result.moreInfo.vehicleClass | Array of Strings | Contains the vehicle classes associated with the driving license.e.g. \["MCWOG", "LMV"].                                                           |

:::CodeblockTabs
200

```json
{
    "result": {
        "verified": true,
        "message": "Driving licence verification process completed successfully with positive result.",
        "moreInfo": {
            "issueDate": "Oct 25, 2021",
            "expiryDate": "Oct 22, 2041",
            "vehicleClass": [
                "MCWG",
                "LMV"
            ]
        }
    }
}
```

400

```json
// Wrong issueDate format
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "Please ensure the issueDate is entered in the correct format: DD/MM/YYYY",
        "status": 400
    }
}

// Wrong dob format
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "Please ensure the dob is entered in the correct format: DD/MM/YYYY",
        "status": 400
    }
}

// Bob field is empty
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "Please provide a valid dob with format: DD/MM/YYYY",
        "status": 400
    }
}
// IssueDate field is empty
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "Please provide a valid issueDate with format: DD/MM/YYYY",
        "status": 400
    }
}
// Number field is empty or invalid number
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "Please provide a valid Driving License Number.",
        "status": 400
    }
}

```

401

```json
{
    "message": "Invalid authentication credentials"
}
```

404

```json
// DL number not found
{
    "error": {
        "statusCode": 404,
        "name": "Error",
        "message": "DL Number not found",
        "status": 404
    }
}
```

409

```json
{
    "error": {
        "reason": "Error From Upstream",
        "status": 409,
        "message": "Upstream Down",
        "type": "Conflict",
        "statusCode": 409,
        "name": "error"
    }
}
```
:::

***

**Contact Us for Any Assistance**

If you have any questions or need assistance, please reach out to our customer support team. You can contact us via email at <font color="#2166ae">**help\@signzy.com**</font>. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.

We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!
