---
title: US DL Verification API
slug: v3-gateway/us-dl-verification-api
description: Learn how to verify driver's license details using Signzy's driving license verification API. Get guidelines, input parameters, and sample commands for production and preproduction environments. Find out more about API output, error responses, and states 
createdAt: 2022-12-09T07:28:39.000Z
---

## Introduction

Signzy's driving license verification API instantly verifies the details of the person by providing the driver's license number, last name, date of birth, and state. The driver's license is one of the key identities which can be used for individual verification in any customer onboarding journey. &#x20;

## How to use the API

You will require an authorization token to use this API. This authorization token will be generated by Signzy for you and will be used in each API call. Please contact help\@signzy.com for this.

## API Input Guidelines

You will need to pass on the following information to start the verification process.

- Driver's license number
- Last name
- Date of birth in YYYY-DD-MM format
- State

### Sample cURL

::::Tabs
:::Tab{title="Production"}
```curl
curl --location --request POST 'https://api.signzy.app/api/v3/us-api/dl-verification' \
--header 'Authorization: <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "driversLicenseNumber": "<drivers license number>",
    "lastName": "<last name>",
    "dateOfBirth": "<date of birth>",
    "state": "<state name>",
    "expirationDate": "<expiration date>",
    "issueDate": "<issue date>",
    "confidenceThreshold": <confidence threshold>
}'
```
:::

:::Tab{title="Preproduction"}
```curl
curl --location --request POST 'https://api-preproduction.signzy.app/api/v3/us-api/dl-verification' \
--header 'Authorization: <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "driversLicenseNumber": "<drivers license number>",
    "lastName": "<last name>",
    "dateOfBirth": "<date of birth>",
    "state": "<state name>",
    "expirationDate": "<expiration date>",
    "issueDate": "<issue date>",
    "confidenceThreshold": <confidence threshold>
}'
```
:::
::::

### Input Parameters

| **PARAMETER NAME**   | **MANDATORY** | **DESCRIPTION**                                                               |
| -------------------- | ------------- | ----------------------------------------------------------------------------- |
| Content-Type         | true          | application/json                                                              |
| Authorization        | true          | Authorization token                                                           |
| driversLicenseNumber | true          | Drivers License Number                                                        |
| lastName             | true          | Last Name of the DL Holder                                                    |
| dateOfBirth          | true          | Date of Birth of the DL Holder in YYYY-DD-MM format                           |
| state                | true          | The US state of the DL (eg: Maine)                                            |
| expirationDate       | false         | Expiration Date of the DL in YYYY-DD-MM format                                |
| issueDate            | false         | Issue Date of the DL in YYYY-DD-MM format                                     |
| confidenceThreshold  | false         | Confidence threshold to match the degree of verification<br />(default: 0.80) |

## API Output

The response from this API contains the status of your request, the confidence score for this result, and also the final result of the verification process. The "hasErrors" field shows whether the data verification was successful or not.

### Sample Response

```json
{
    "result": {
        "requestStatus": "Completed",
        "confidence": 0.5,
        "hasErrors": true,
        "hasWarnings": false,
        "result": "Validation Successful"
    }
}
```

### Response Parameter

| PARAMETER NAME       | DESCRIPTION                                                                                                                                    |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| result               | This parameter contains the actual output.                                                                                                     |
| result.requestStatus | It gives the status of the verification.                                                                                                       |
| result.confidence    | Confidence in the match found                                                                                                                  |
| result.hasErrors     | true/false                                                                                                                                     |
| result.hasWarnings   | true/false                                                                                                                                     |
| result.result        | Validation Successful / Validation Failed. If the confidence is greater than the confidence threshold then it is successful, otherwise failed. |

### Sample Error

:::CodeblockTabs
400

```json
{
    "error": {
        "name": "error",
        "message": "\"driversLicenseNumber\" is required",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 400
    }
}
```

400

```json
{
    "error": {
        "name": "error",
        "message": "\"lastName\" is required",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 400
    }
}
```

400

```json
{
    "error": {
        "name": "error",
        "message": "\"dateOfBirth\" is required",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 400
    }
}
```

400

```json
{
    "error": {
        "name": "error",
        "message": "\"state\" is required",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 400
    }
}
```

400

```json
{
    "error": {
        "name": "error",
        "message": "Invalid driversLicenseNumber",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 200
    }
}
```

400

```json
{
    "error": {
        "name": "error",
        "message": "lastName can only consist of alphabets",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 200
    }
}
```

400

```json
{
    "error": {
        "name": "error",
        "message": "dateOfBirth should be in the format YYYY-DD-MM",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 200
    }
}
```

400

```json
{
    "error": {
        "name": "error",
        "message": "Invalid US State",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 200
    }
}
```

400

```json
{
    "error": {
        "name": "error",
        "message": "\"confidenceThreshold\" must be less than 1",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 200
    }
}
```

400

```json
{
    "error": {
        "name": "error",
        "message": "\"confidenceThreshold\" must be greater than 0",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 200
    }
}
```

400

```json
{
    "error": {
        "name": "error",
        "message": "expirationDate should be in the format YYYY-DD-MM",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 200
    }
}
```

400

```json
{
    "error": {
        "name": "error",
        "message": "issueDate should be in the format YYYY-DD-MM",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 200
    }
}
```

409

```json
{
    "error": {
        "name": "error",
        "message": "Error in getting Data from upstream",
        "status": 409,
        "reason": "CONFLICT",
        "type": "Conflict",
        "statusCode": 409
    }
}
```

408

```json
{
    "error": {
        "name": "error",
        "message": "Request Timed Out. Please try again.",
        "status": 408,
        "reason": "Error",
        "type": "Request Timeout",
        "statusCode": 408
    }
}
```

401

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

500

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

### Response 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.reason     | Reason for error                                      |
| error.type       | Type of the error                                     |
| error.statusCode | Request Status code from Signzy - same as HTTP status |

## Points to keep in mind

The verification process cannot be done for the following US States -

- Alaska
- Louisiana
- Minnesota
- New Hampshire
- Nevada
- New York
- Oklahoma
- South Carolina
- Utah

:::hint{type="info"}
## 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](#).
:::

