[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.

📚

New to tax ID validations? Start with the generic guide. Testing? Use the test CPFs.


Request

A person who isn't in Brinta yet

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

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

FieldNotes
company.tax_registrationnumber 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_birthYYYY-MM-DD. At the top level or inside company, not both.
locations["BR"].
company.typeperson. Optional.

Result

The POST answers right away with the validation id and status in_process. When the validation finishes, Brinta notifies your validation webhook. 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

{
  "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

FieldSource (RFB)Notes
company.legal_nameNomeThe civil name.
company.nameNome socialThe social name when the person has one, otherwise the civil name.
company.business_typeAlways person.
company.date_of_birthNascimentoYYYY-MM-DD.
company.tax_registrations[].activeSituação cadastraltrue only when registration_status.status is active.
company.tax_registrations[].authorityAlways "RFB".
company_validation_result.registration_statusSituação cadastralSee the table below.
company_validation_result.registration_dateData de inscriçãoWhen 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

statuslocal_codelocal_descriptiontax_registrations[].active
active0REGULARtrue
suspended2SUSPENSAfalse
deceased3TITULAR FALECIDOfalse
irregular4PENDENTE DE REGULARIZACAOfalse
cancelled5CANCELADA POR MULTIPLICIDADEfalse
annulled8NULAfalse
cancelled9CANCELADA DE OFICIOfalse

Failed

{
  "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 errorsWhat to do
Date of birth does not match the CPFThe CPF exists but RFB has another date of birth. Check it with the person.
CPF not foundRFB has no person with that CPF. Check it with the person.
Invalid CPF / Invalid date of birthRFB rejected the format. Check both values.
Provider does not return data for minorsRFB 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

MistakeFix
No date_of_birthIt's required: RFB doesn't answer a CPF without it.
date_of_birth as 14/11/1970Send 1970-11-14.
date_of_birth at the top level and in companySend it in one place.
Sending validation_type: "BASIC" with a CPFLeave 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 CNPJ Validation.
🔒

CPF and date of birth are personal data. Store them only where you need them and don't write them to logs.


Did this page help you?