# Drivers License

{% hint style="info" %}
Please note that when using your test key, Our test persona is **John Doe** and his Drivers License Number is **10000000001.** Hence all matching done with your test keys with details other than that of our Test Persona would simulate a failed identity matching.&#x20;
{% endhint %}

## Verify Drivers License

<mark style="color:green;">`POST`</mark> `https://vapi.verifyme.ng/v1/verifications/identities/drivers_license/:ref`

#### Path Parameters

| Name | Type   | Description            |
| ---- | ------ | ---------------------- |
| ref  | string | Drivers license number |

#### Headers

| Name          | Type   | Description         |
| ------------- | ------ | ------------------- |
| Authorization | string | Authorization token |

#### Request Body

| Name      | Type   | Description   |
| --------- | ------ | ------------- |
| dob       | string | date of birth |
| firstname | string | first name    |
| lastname  | string | last name     |

{% tabs %}
{% tab title="201 " %}

```
{
  "status": "success",
  "data": {
    "fieldMatches":{
      "firsname":false,
      "lastname":false,
      "dob":false
    },
    "licenseNo": "1000000001",
    "firstname": "John",
    "lastname": "Doe",
    "issuedDate": "09-09-1999",
    "expiryDate": "09-09-2099",
    "stateOfIssue": "LAGOS",
    "gender": "female"
    "birthdate": "04-04-1944",
    "photo": "Base64 Encoded",
  } 
}

```

{% endtab %}

{% tab title="404 " %}

```
{
    "code":"NOT_FOUND_ERROR",
    "message":"licence no provided is not found. Please provide a valid license no"
}
```

{% endtab %}
{% endtabs %}

#### Sample Request

{% tabs %}
{% tab title="Curl" %}

```
curl --location --request POST 'https://vapi.verifyme.ng/v1/verifications/identities/drivers_license/10000000001' \
--header 'Authorization: Bearer <your secret key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "firstname":"John",
    "lastname":"Doe",
    "phone":"080000000000",
    "dob":"04-04-1944"
}'
```

{% endtab %}
{% endtabs %}
