Consulta dados da CNH
curl --request POST \
--url https://api.jusfy.dev/calculators/api/v1/consultas/cnh \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"document": "12345678909"
}
'import requests
url = "https://api.jusfy.dev/calculators/api/v1/consultas/cnh"
payload = { "document": "12345678909" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({document: '12345678909'})
};
fetch('https://api.jusfy.dev/calculators/api/v1/consultas/cnh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.jusfy.dev/calculators/api/v1/consultas/cnh",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'document' => '12345678909'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"statusCode": 200,
"message": "Consulta concluída com sucesso",
"timestamp": "2026-07-28T18:00:00.000Z",
"path": "/api/v1/consultas/cnh",
"result": {
"category": "AB",
"expirationDate": "2029-04-15T03:00:00.000Z",
"issueDate": "2019-04-15T03:00:00.000Z",
"number": "0123456789",
"name": "MARIA DE SOUZA"
}
}Consultas
Consulta dados da CNH
Retorna os dados da Carteira Nacional de Habilitação do condutor a partir do CPF: número de registro, categoria, data de emissão, validade e nome do condutor.
POST
/
api
/
v1
/
consultas
/
cnh
Consulta dados da CNH
curl --request POST \
--url https://api.jusfy.dev/calculators/api/v1/consultas/cnh \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"document": "12345678909"
}
'import requests
url = "https://api.jusfy.dev/calculators/api/v1/consultas/cnh"
payload = { "document": "12345678909" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({document: '12345678909'})
};
fetch('https://api.jusfy.dev/calculators/api/v1/consultas/cnh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.jusfy.dev/calculators/api/v1/consultas/cnh",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'document' => '12345678909'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"statusCode": 200,
"message": "Consulta concluída com sucesso",
"timestamp": "2026-07-28T18:00:00.000Z",
"path": "/api/v1/consultas/cnh",
"result": {
"category": "AB",
"expirationDate": "2029-04-15T03:00:00.000Z",
"issueDate": "2019-04-15T03:00:00.000Z",
"number": "0123456789",
"name": "MARIA DE SOUZA"
}
}Autorizações
Corpo
application/json
CPF do condutor, com ou sem máscara. Separadores são aceitos e ignorados. O dígito verificador é validado antes da consulta.
Exemplo:
"12345678909"
Resposta
Dados da CNH do condutor informado. issueDate e expirationDate vêm em ISO 8601 UTC (ex.: 2029-04-15T03:00:00.000Z).
The response is of type object.