---
title: Validate Brazilian CNH Number API
slug: check-cnh
url: https://apyhub.com/dam4g/service/check-cnh
provider: DAM4G APIs
categories: [Data Validation]
tags: [cnh-validation, brazilian-documents, identity-validation, document-validation]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 1
atoms: 10
mcp: true
---

# Validate Brazilian CNH Number API

Validate a Brazilian CNH number and get back is_valid, input_value, document_type, and formatted_value for form checks and data cleanup.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| GET | `https://api.eu.apyhub.com/dam4g/check-cnh/cnh/:number` | What it does Checks a CNH number and returns a validation result for the supplied value. The respon… | 10 |

## Endpoint reference

### Validate CNH

`GET https://api.eu.apyhub.com/dam4g/check-cnh/cnh/:number` · 10 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `number` | path | string | yes | Number |

#### Quickstart

Validate a CNH number by passing it in the path.

```bash
curl -X GET "https://api.eu.apyhub.com/dam4g/check-cnh/cnh/:number" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a JSON object with `document_type`, `input_value`, `is_valid`, and `formatted_value` fields. `document_type` and `input_value` are strings, `is_valid` is a boolean, and `formatted_value` is either a string or `null`.

```json
{
  "document_type": "cnh",
  "input_value": "02650306461",
  "formatted_value": null,
  "is_valid": true
}
```

## About

## What it does
CNH Validator checks a Brazilian driver’s licence number and returns a simple validation result. Send the `number` path parameter, and get back whether it is valid, the original `input_value`, the `document_type`, and a `formatted_value` when one is available.

Use this when you need to verify a CNH before storing it in a CRM, onboarding a driver, or accepting licence details in a form. The response is minimal and predictable, which makes it easy to plug into request validation, account creation flows, or back-office review steps.

CNH Validator is designed for straightforward yes/no verification with just enough context to handle the result cleanly. If the number is valid, you can keep moving; if not, you can reject the record or prompt for correction. Because the output includes the exact value you sent, it is easy to log, audit, or compare against user input without extra parsing.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/dam4g/service/check-cnh
