---
updatedAt: 2026-11-25T23:32:34.000Z
agentTools:
  projectIndex: https://docs.brinta.com/llms.txt
---

# [BR] CPF Validation

Check an individual's CPF against Receita Federal (RFB) and get back their name, date of birth and registration status. RFB only answers when the CPF **and** the date of birth match, so a successful validation confirms both.

* `succeeded` means the CPF exists and the date of birth matches. Read `company_validation_result.registration_status` to know whether it is regular.
* `failed` means the CPF doesn't exist or the date of birth doesn't match. `errors` tells you which.

A CPF that is suspended, cancelled, null or belongs to a deceased person still returns `succeeded`: the lookup worked. The registration status is in the result.

<Callout icon="📚" theme="default">
  ### **API reference:** [Create a Tax ID validation](https://docs.brinta.com/reference/tax-id-validation-post) · [Get a Tax ID validation](https://docs.brinta.com/reference/get-a-validation) · [Tax ID validation: Brazil](https://docs.brinta.com/reference/tax-id-validation-brazil) · [Validation webhooks](https://docs.brinta.com/reference/validation-webhooks)

  New to tax ID validations? Start with the <Anchor target="_blank" href="https://docs.brinta.com/docs/tax-id-validation-how-to">generic guide</Anchor>. Testing? Use the [test CPFs](https://docs.brinta.com/docs/br-test-cnpjs).
</Callout>

***

## Request

### A person who isn't in Brinta yet

```bash
curl -X POST https://api.brinta.com/tax-id-validations/ \
  -H "Authorization: Bearer $BRINTA_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "locations": ["BR"],
    "date_of_birth": "1970-11-14",
    "company": {
      "type": "person",
      "tax_registration": {
        "number": "40442820135",
        "type": "CPF",
        "level": "country",
        "location": "BR"
      }
    }
  }'
```

`date_of_birth` can also go inside `company`. Send it in one place only: both at once returns `400`.

### A person already in Brinta

```bash
curl -X POST https://api.brinta.com/tax-id-validations/ \
  -H "Authorization: Bearer $BRINTA_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "locations": ["BR"],
    "company_id": "2f0e5d75-959b-4791-a201-b88ada67b3f6",
    "update_company": true
  }'
```

Brinta validates the CPF stored on the company with the company's `date_of_birth`. If you send `date_of_birth` at the top level, it wins over the stored one. With `update_company: true`, a successful validation also saves RFB's data on the company: name, date of birth and the CPF's active flag.

### Required fields

| Field                      | Notes                                                                                                                                                                          |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `company.tax_registration` | `number` is the CPF, 11 digits. Dots and dash are optional: `404.428.201-35` and `40442820135` are the same. Also send `type: "CPF"`, `level: "country"` and `location: "BR"`. |
| `date_of_birth`            | `YYYY-MM-DD`. At the top level or inside `company`, not both.                                                                                                                  |
| `locations`                | `["BR"]`.                                                                                                                                                                      |
| `company.type`             | `person`. Optional.                                                                                                                                                            |

***

## Result

The `POST` answers right away with the validation `id` and status `in_process`. When the validation finishes, Brinta notifies your [validation webhook](https://docs.brinta.com/reference/validation-webhooks). Read the result with `GET /tax-id-validations/{id}`, and poll it every few seconds until `status` is `succeeded` or `failed`. The CPF check usually finishes in a few seconds.

### Succeeded

```json
{
  "id": "tiv2-c1579a2f-a7d3-4a24-aa5b-62726439eab8",
  "status": "succeeded",
  "periods": ["2026-11"],
  "data": [
    {
      "location": "BR",
      "status": "succeeded",
      "company": {
        "legal_name": "RONE RODRIGUES",
        "name": "Rodrigues",
        "type": "person",
        "date_of_birth": "1972-11-20",
        "tax_registrations": [
          {
            "number": "58136053391",
            "type": "CPF",
            "level": "country",
            "location": "BR",
            "authority": "RFB",
            "active": true
          }
        ]
      },
      "company_validation_result": {
        "registration_status": {
          "status": "active",
          "local_code": "0",
          "local_description": "REGULAR"
        },
        "registration_date": "1972-11-24"
      },
      "registry_lists": []
    }
  ]
}
```

### What each field means

| Field                                           | Source (RFB)       | Notes                                                                 |
| ----------------------------------------------- | ------------------ | --------------------------------------------------------------------- |
| `company.legal_name`                            | Nome               | The civil name.                                                       |
| `company.name`                                  | Nome social        | The social name when the person has one, otherwise the civil name.    |
| `company.business_type`                         |                    | Always `person`.                                                      |
| `company.date_of_birth`                         | Nascimento         | `YYYY-MM-DD`.                                                         |
| `company.tax_registrations[].active`            | Situação cadastral | `true` only when `registration_status.status` is `active`.            |
| `company.tax_registrations[].authority`         |                    | Always `"RFB"`.                                                       |
| `company_validation_result.registration_status` | Situação cadastral | See the table below.                                                  |
| `company_validation_result.registration_date`   | Data de inscrição  | When the CPF was issued, `YYYY-MM-DD`. Sometimes RFB doesn't send it. |

RFB doesn't return an address, email or phone for a CPF. With `update_company: true`, the company's stored address is not touched.

### Registration status

| `status`    | `local_code` | `local_description`          | `tax_registrations[].active` |
| ----------- | ------------ | ---------------------------- | ---------------------------- |
| `active`    | `0`          | REGULAR                      | `true`                       |
| `suspended` | `2`          | SUSPENSA                     | `false`                      |
| `deceased`  | `3`          | TITULAR FALECIDO             | `false`                      |
| `irregular` | `4`          | PENDENTE DE REGULARIZACAO    | `false`                      |
| `cancelled` | `5`          | CANCELADA POR MULTIPLICIDADE | `false`                      |
| `annulled`  | `8`          | NULA                         | `false`                      |
| `cancelled` | `9`          | CANCELADA DE OFICIO          | `false`                      |

### Failed

```json
{
  "id": "tiv2-d6e31b84-c0f9-4e6e-b2cf-8545acaf4600",
  "status": "failed",
  "periods": ["2026-11"],
  "data": [
    {
      "location": "BR",
      "status": "failed",
      "errors": ["Date of birth does not match the CPF"],
      "registry_lists": []
    }
  ]
}
```

| Message in `errors`                        | What to do                                                                  |
| ------------------------------------------ | --------------------------------------------------------------------------- |
| `Date of birth does not match the CPF`     | The CPF exists but RFB has another date of birth. Check it with the person. |
| `CPF not found`                            | RFB has no person with that CPF. Check it with the person.                  |
| `Invalid CPF` / `Invalid date of birth`    | RFB rejected the format. Check both values.                                 |
| `Provider does not return data for minors` | RFB doesn't return data for people under 18.                                |
| `Provider unavailable: {code}`             | RFB's service didn't answer. Send the validation again in a few minutes.    |

***

## Common mistakes

| Mistake                                           | Fix                                                                                                                                                                         |
| ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| No `date_of_birth`                                | It's required: RFB doesn't answer a CPF without it.                                                                                                                         |
| `date_of_birth` as `14/11/1970`                   | Send `1970-11-14`.                                                                                                                                                          |
| `date_of_birth` at the top level and in `company` | Send it in one place.                                                                                                                                                       |
| Sending `validation_type: "BASIC"` with a CPF     | Leave `validation_type` out for a CPF.                                                                                                                                      |
| Treating `succeeded` as "the CPF is regular"      | Check `company_validation_result.registration_status.status`, or `tax_registrations[].active`.                                                                              |
| Sending a CNPJ with `type: "CPF"`                 | A CNPJ has 14 characters and belongs to a company. Use <Anchor target="_blank" href="https://docs.brinta.com/update/docs/br-cnpj-validation-full">CNPJ Validation</Anchor>. |

<Callout icon="🔒" theme="default">
  ### **CPF and date of birth are personal data.** Store them only where you need them and don't write them to logs.
</Callout>