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

# Validate Brazilian CPF Number API

Validate Brazilian CPF numbers and get a validity result with the original input, document type, and formatted value when available.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| GET | `https://api.eu.apyhub.com/dam4g/check-cpf/cpf/:number` | What it does Validates a CPF number passed in the path and returns a JSON object describing the val… | 10 |

## Endpoint reference

### Validate CPF

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

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

#### Quickstart

Validate a CPF by passing the `number` path parameter in the URL.

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

#### What you'll get back

Returns a JSON object with `is_valid` as a boolean, `input_value` as a string, `document_type` as a string, and `formatted_value` as a string or `null`.

```json
{
  "document_type": "cpf",
  "input_value": "11144477735",
  "formatted_value": "111.444.777-35",
  "is_valid": true
}
```

## About

## What it does
CPF Validation checks whether a Brazilian CPF number is valid and returns a simple validation result. Send a CPF in the `number` field, and use the response to confirm the document type, the original input value, whether it passed validation, and an optional formatted value.

Use CPF Validation when you need to verify user-submitted identity data before saving a record, creating an account, or processing a form. It is useful anywhere CPF values must be checked at the point of entry to reduce bad data and avoid downstream errors in onboarding, compliance, or customer support workflows.

The response is intentionally direct: `is_valid` tells you the result, `input_value` echoes what was checked, `document_type` identifies the document, and `formatted_value` is returned when a normalized representation is available. That makes it easy to plug into backend validation, form checks, and document processing pipelines 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-cpf
