---
title: Validate Brazilian CPF Number API
slug: check-cpf
url: https://apyhub.com/dam4g/service/check-cpf
provider: DAM4G APIs
categories: [Verification Kit]
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

CPF validation API that checks a Brazilian CPF number and returns is_valid plus a formatted value (111.444.777-35) for signup and checkout forms.

## 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
The CPF validation API checks whether a Brazilian CPF (Cadastro de Pessoas Físicas) number is valid. Pass the CPF as the `number` path parameter and get back `is_valid`, the `input_value` you sent, the `document_type`, and a `formatted_value` such as `111.444.777-35` when one is available.

Brazilian developers often search for this as a validador de CPF. Use the CPF validation API in account signup, checkout, and payment forms, where Brazilian e-commerce and fintech flows ask for a CPF on almost every transaction. It also fits payroll and HR records, seller onboarding on commerce platforms, and bulk cleanup of CPF numbers already stored in your database.

The `formatted_value` field gives you one display format to store and show, whatever way the user typed the number. Checking at the form catches typos before an invoice, a boleto, or a call to a paid identity provider depends on the value.

This API checks the number itself. It does not query Receita Federal for the holder's name or registration status, so pair it with a lookup provider when you need to confirm who owns the CPF.

Brazilian forms usually ask for more than one document. Validate company tax IDs with the [CNPJ Validation API](https://apyhub.com/dam4g/service/check-cnpj), driver's licence numbers with the [CNH Validation API](https://apyhub.com/dam4g/service/check-cnh), and mobile numbers with the [Phone Number Validation API](https://apyhub.com/creightonnick0/service/validate-phone-number).

## 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
