Kansas Driver's License Verification
Endpointβ
https://api.verifik.co/v2/usa/kansas/driver-license
The Kansas Driver License Validation Service allows developers to programmatically validate the status, restrictions, endorsements, and designations of Kansas driver licenses. By providing a valid Kansas driver license number, users can obtain a response that includes details such as the license status, expiration date, any restrictions or endorsements, and designations associated with the license.
This service is essential for verifying driver credentials and ensuring compliance with state regulations.
Headersβ
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
Parametersβ
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| documentNumber | String | Yes | Document number of the person to be queried. | K12345678 |
| dateOfBirth | String | Yes | The birthdate of the license holder (format: DD/MM/YYYY). | 29/1/1974 |
| firstName | String | Yes | Name of the license holder. | MATEO |
| lastName | String | Yes | Last name of the license holder. | VERIFIK |
Requestβ
- JavaScript
- Python
- Swift
- PHP
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.verifik.co/v2/usa/kansas/driver-license',
params: {
documentNumber: 'K12345678',
dateOfBirth: '29/01/1974',
firstName: 'MATEO',
lastName: 'VERIFIK'
},
headers: {
Accept: 'application/json',
Authorization: 'jwt <tu_token>'
}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
import http.client
conn = http.client.HTTPSConnection("api.verifik.co")
payload = ''
headers = {}
conn.request("GET", "/v2/usa/kansas/driver-license?documentNumber=K12345678&dateOfBirth=29/01/1974&firstName=MATEO&lastName=VERIFIK", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
var request = URLRequest(url: URL(string: "https://api.verifik.co/v2/usa/kansas/driver-license?documentNumber=K12345678&dateOfBirth=29/01/1974&firstName=MATEO&lastName=VERIFIK")!,timeoutInterval: Double.infinity)
request.httpMethod = "GET"
let task = URLSession.shared.dataTask(with: request) { data, response, error in
guard let data = data else {
print(String(describing: error))
return
}
print(String(data: data, encoding: .utf8)!)
}
task.resume()
<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://api.verifik.co/v2/usa/kansas/driver-license?documentNumber=K12345678&dateOfBirth=29/01/1974&firstName=MATEO&lastName=VERIFIK');
$request->setMethod(HTTP_Request2::METHOD_GET);
$request->setConfig(array(
'follow_redirects' => TRUE
));
try {
$response = $request->send();
if ($response->getStatus() == 200) {
echo $response->getBody();
}
else {
echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
$response->getReasonPhrase();
}
}
catch(HTTP_Request2_Exception $e) {
echo 'Error: ' . $e->getMessage();
}
Responseβ
- 200
- 404
- 409
- 409 (Format Error)
{
"data": {
"cdlStatus": "",
"currentCredentialInformation": [
{
"credentialType": "Driver's License",
"issueDate": "03/04/2020",
"expirationDate": "01/29/2026"
}
],
"dateOfBirth": "29/1/1974",
"dlNumber": "K02884565",
"dlStatus": "Valid",
"documentNumber": "K12345678",
"firstName": "MATEO",
"lastName": "VERIFIK",
"systemGeneratedDl": "N"
},
"signature": {
"dateTime": "January 19, 2024 4:36 PM",
"message": "Certified by Verifik.co"
},
"id": "1Q8UH"
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "missing documentNumber\n. missing dateOfBirth\n. missing firstName\n. missing lastName\n"
}
{
"code": "MissingParameter",
"message": "dateOfBirth format required: DD/MM/YYYY\n"
}
Featuresβ
- Comprehensive License Validation: Validate status, restrictions, endorsements, and designations
- Multiple Required Parameters: Document number, date of birth, first name, and last name
- Detailed License Information: Get issue date, expiration date, and credential type
- Multiple Programming Languages: Support for JavaScript, Python, Swift, and PHP
- State Compliance: Essential for verifying driver credentials and ensuring compliance