Skip to main content

Technical

Brazil CPF Database Validation: SERPRO route and gov.br wallet guide

Didit Database Validation checks a Brazilian CPF, name and date of birth against the Receita Federal (SERPRO) record, either as one server-to-server call or inside a session.

Brazil CPF Database Validation: SERPRO route and gov.br wallet guide

Contents

In this guide

Jump to the part you need.

For product and compliance teams checking a Brazilian CPF, Didit Database Validation confirms the CPF, name and date of birth against the Receita Federal (SERPRO) record in one server request. It is priced per service, with a published floor of $0.05 per check. gov.br is a separate digital ID wallet marked coming soon, not this CPF route. The caveat: a match confirms the fields you sent match the source record, not that a document is authentic.

Prices checked against the live Didit price feed on November 26, 2026.

Ways to check a Brazilian identity with Didit, November 2026
RouteWhat it provesWhat you needPrice
Database Validation, standalone APIThe CPF, name and date of birth match the record the source holds for BrazilA Didit API key, and consent when the selected service requires itVariable per service, published floor $0.05 per check
Database Validation inside a sessionThe same match, recorded on the session under your workflow rulesA workflow with the DATABASE_VALIDATION feature, an API key, consent where requiredVariable per service
gov.br wallet sign-inA cryptographic result from a digital identity provider, when availableA workflow with the wallet method enabled for Brazil, when gov.br is availableComing soon, no production availability
Non-document ID lookupA data_match tier result. For Brazil the source also checks a selfie itself and returns a verdictAn ID Verification step with the lookup method enabled for BrazilListed per country in the pricing docs
ID document routeThe document is genuine, the person is live and the face matchesNothing from any government source$0.15 ID + $0.10 liveness + $0.05 face match + $0.03 device and IP = $0.33

Start free in the sandbox at business.didit.me, no sales call. Developers who want an AI assistant to drive the checks can connect the Didit MCP server. The call itself is documented on the Database Validation page, and every unit price sits on the pricing page.

SERPRO CPF lookup and the gov.br wallet are different routes

Brazil CPF Database Validation uses the documented Receita Federal (SERPRO) route. The gov.br digital ID wallet is a separate wallet method, marked Coming soon in Didit's wallet catalog, so it is not available in production today. Use the CPF database route for a data match now, and treat gov.br as a future wallet sign-in option, not a replacement for the CPF lookup.

What a Brazil database check actually proves

Database Validation is one of the identity methods Didit documents. The user types their national ID number and a few personal details, and we send those fields to the authoritative source for that country. The result carries the assurance tier data_match: the details matched a record the source holds. No document was inspected, so nothing about a document's authenticity is being claimed.

Provenance is the part most teams skip. Most countries resolve to a government register. In Canada, France, Indonesia, the Netherlands, Norway, Singapore, the United Kingdom and the United States the reachable record is a credit-bureau, financial-services, utility or residential-records file instead. That difference decides what the match proves, which consent regime the query runs under and what you can tell a regulator. The docs name the exact source for every country in one column and treat that column as the only statement of provenance to rely on. Read it before you switch a country on.

The end user never sees the source name, the price or the assurance tier. The source name is on the session payload, in the console and in the exports, for you and your auditors.

What the Database Validation API returns

Each call returns a per-field match for identification_number, first_name, last_name, date_of_birth and, when the service uses them, address fields. Those aggregate into one match_type, plus the underlying record details when the source supplies them. The aggregated values are full_match, partial_match and no_match.

For Brazil, send the CPF in identification_number and let issuing_state=BRA map it to the right service. Didit maps that one parameter to CPF, RUT, CURP or DNI by country, so the same request shape works across the catalogue.

The outcome and the method we recommend

The response contains service-reported fields and a match result. Your organisation applies its own approval policy: it makes the approval, review or decline decision and records why. You should reach that point with a single server call and know what to do with every answer.

We recommend the standalone Database Validation API when you already hold the identity data, and the session route when you also need liveness, face match, AML screening or a document fallback attached to the same record. Both run on one API key and one price list.

Prerequisites

  • A Didit account and an API key from the console. The sandbox is free and unlimited.
  • The CPF as 11 digits, the full name as registered, and the date of birth.
  • A consent record. A service flagged requires_consent=true in the catalog returns HTTP 400 until you send consent=true.
  • A decision policy that says what a partial match, a no match and a provider error mean for your product.
  • A plan for the user whose CPF does not match, whether that is a document capture fallback or a decline.

Step by step: check a Brazilian CPF with the API

  1. Create the account and copy the key. Sign up at business.didit.me, open the console and copy the API key. The Free plan adds $10 of credit each month for organisations that sign up with a work email.

  2. Collect the three fields the source matches on: the CPF in identification_number, the name in first_name and last_name, and date_of_birth as YYYY-MM-DD. Record consent in the same step when the service requires it.

  3. Send the call. Omit services to run the country's default service, or pass services=["bra_cpf"] to name it. This is the documented Brazil example.

    curl -X POST 'https://verification.didit.me/v3/database-validation/' \
    -H "x-api-key: $DIDIT_API_KEY" \
    -F "issuing_state=BRA" \
    -F "identification_number=00000000191" \
    -F "first_name=Jane" \
    -F "last_name=Doe" \
    -F "date_of_birth=1990-01-15" \
    -F "vendor_data=user-1234"
  4. Read match_type first. full_match means the fields matched the record. partial_match means some matched and some did not. no_match means the record is not in the registry.

  5. Read validations[] for the per-field detail. Each entry carries the service, its status, the matched_fields and, when the source supplies them, the record_details.

  6. Apply your policy. Continue on full_match. Route partial_match to a person. Treat no_match as synthetic-identity risk and decline, or fall back to document capture in the same session.

  7. Add the checks that surround the CPF. AML screening costs $0.20 per check against 1,300+ lists, and ongoing monitoring costs $0.07 per person a year.

  8. Write down what the call is allowed to decide. The API returns a match result. The organisation makes the decision, and the workflow action you configure for a partial or a no match is what moves the session status.

lookup form
The typed lookup: the CPF, name and date of birth go in as fields, and no document photograph is involved.

Expected output

The call returns a request id and a database_validation object. The example below is illustrative: it shows the documented fields and enum values, not a guaranteed approved response. The score and the record details are whatever the service reports for that CPF.

{
  "request_id": "per call",
  "database_validation": {
    "match_type": "full_match",
    "validation_type": "bra_cpf",
    "services_used": ["bra_cpf"],
    "match_score": "reported per service",
    "validations": [
      {
        "service": "bra_cpf",
        "status": "Approved",
        "matched_fields": ["identification_number", "first_name", "last_name", "date_of_birth"],
        "record_details": "when the source supplies them"
      }
    ],
    "warnings": []
  }
}

Inputs and outputs

Fields on the Database Validation call
FieldDirectionDetail
issuing_stateInputISO 3166-1 alpha-3 code. BRA for Brazil.
identification_numberInputThe CPF as 11 digits. Didit maps it to CPF, RUT, CURP or DNI by issuing_state.
first_name, last_name, date_of_birthInputThe fields the Brazilian source matches on. Date as YYYY-MM-DD.
vendor_dataInputYour own user reference, returned with the result.
servicesInputOptional. Omit for the country default, or name services such as bra_cpf. Several services mean several usage events.
consentInputSend true for services flagged requires_consent=true.
selfie and genderInputOnly for the biometric services arg_renaper and pan_sib, not for the Brazil CPF service.
match_typeOutputfull_match, partial_match or no_match.
match_score, validation_type, services_usedOutputHow close the match was, what kind of validation ran, and which services answered.
validations[]OutputPer service: status, matched_fields, record_details.
warnings[]OutputRisk codes such as DATABASE_VALIDATION_NO_MATCH and COULD_NOT_PERFORM_DATABASE_VALIDATION.

Run the same check inside a session

  1. Add the DATABASE_VALIDATION feature to a workflow in the Business Console, or with POST /v3/workflows/. Optionally pin specific services per country.
  2. Create a session with POST /v3/session/ and the fields workflow_id, vendor_data and callback.
  3. Open session.url for the user, or mount the Web or Mobile SDK.
  4. Fetch the decision with GET /v3/session/{sessionId}/decision/, or subscribe to session.status.updated. The result arrives as an entry in database_validations[].

You do not have to put an ID Verification step in front of it. Fields are fed into the registry lookup from whichever steps you do include: ID Verification, NFC, Liveness, Phone or Email Verification, Proof of Address, Document AI or a Questionnaire. The session status becomes Approved, In Review or Declined according to the partial-match and no-match actions you configured.

Failure cases and recovery

What each failure means and what to do next
What you seeWhat it meansRecovery
HTTP 400A service id is not eligible for that issuing state, a required field is missing, or consent is missing for a service that requires it.Fix the request. Do not retry it unchanged.
HTTP 502 with validation_errors[]Every selected upstream service failed. The request is not billed and a COULD_NOT_PERFORM_DATABASE_VALIDATION log is written.Retry later, or fall back to document capture. Do not charge the user for the failure.
match_type=no_matchThe record is not in the registry.Treat it as synthetic identity under your policy, or offer the document route.
match_type=partial_matchSome fields matched and others did not, for example the date of birth matches and the name does not.Send it to review with the matched fields attached.
BIOMETRIC_NO_MATCH on a biometric serviceThe selfie or fingerprint did not match the face on record.Decline or review. Do not auto-approve.
Session status In ReviewYour workflow action for a partial match is set to review.A person decides. Do not approve on the API result alone.
  • Billing happens when a service returns a result. A multi-service request can produce several usage events, so name only the services you need.
  • A 502 where every upstream service failed is not billed.
  • Some no-match lookups and retries are billable according to the pricing docs. Budget for them rather than assuming silence is free.
  • Database Validation is priced per service, not per country, so read the rate for bra_cpf in the per-service pricing table before you commit to a number.
  • Human review belongs at: partial match, no match, biometric no match, any AML hit, and any case where the user contradicts the record.
AML screening result for a session in the Didit Business Console
An AML screening result on the same session as the CPF check, which is where the review decision is made.

Worked cost example

Take 10,000 Brazilian users a month on the document route, with AML screening. ID document $0.15 + passive liveness $0.10 + face match $0.05 + device and IP $0.03 = $0.33 per full ID check. Add AML screening at $0.20, so $0.53 per user. At list price, 10,000 x $0.53 = $5,300. On the Scale plan every Didit price is 10% lower: $0.297 + $0.18 = $0.477 per user, and 10,000 x $0.477 = $4,770, which is $530 less.

The data-match lookup is priced per service and per country and is not in that sum, because its rate varies with the service you call. Read the rate for bra_cpf in the per-service table, then add 10,000 x that rate to whichever route you pick. This example uses only steps that carry a published list price.

Limits and fallbacks in Brazil

  • People without a CPF. If a user has no matching CPF record, use document capture as the fallback: passport or residence permit, NFC chip reading at $0.15 where the document carries a chip, passive liveness and face match.
  • Minors. The match needs the fields the source holds, and an age check needs the date of birth collected from the user either way.
  • No reference face. The Brazil CPF service is a data check with no selfie, so a later Face Match step needs a reference from elsewhere in the workflow. Didit's docs warn that a Face Match step reached only through methods that leave no photo cannot pass anyone automatically: it reports FACE_MATCH_NOT_COMPUTED with a null score rather than declining.
  • Consent. Where the source runs under a different consent regime, the service is flagged in the catalog and the call fails without consent=true. Do not treat consent as a default you can switch on for every country.
face scanning
A selfie capture step. Document capture with liveness and face match covers users with no usable CPF record.

Sources

Next step: create the account at https://business.didit.me/, copy the API key and run the Brazil example above against a test CPF. No sales call, and the sandbox is free.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

How do I check a Brazilian CPF against the Receita Federal record?

Send one POST to https://verification.didit.me/v3/database-validation/ with the header x-api-key and form fields issuing_state=BRA, identification_number set to the 11-digit CPF, first_name, last_name and date_of_birth. Didit queries the Brazilian source and returns a per-field match plus an aggregated match_type. You can also run the same check inside a workflow with a session, if you want it recorded next to other steps.

What does Didit Database Validation return for a Brazilian CPF?

A match_type of full_match, partial_match or no_match, a match score, the services used, and a validations[] array with the service name, status, matched fields and record details when the source supplies them. Warnings such as DATABASE_VALIDATION_NO_MATCH arrive in the same payload. The end user never sees any of it.

How much does a Brazilian CPF database check cost?

Database Validation is priced per service, and the range runs from a published floor of $0.05 per check up to the highest specialist source. Billing rules vary. Some no-match lookups and retries are billable. A 502 where every selected upstream service fails is not billed. Read the exact rate for bra_cpf in the per-service pricing table before you budget.

Is consent required to run a database validation?

Only for services the catalog flags requires_consent=true. Send consent=true with the request for those services, or the API answers HTTP 400. Consent is not a blanket requirement across every country, so check the flag on the service you actually call.

Do I need a Brazilian digital certificate to check a CPF with Didit?

The documented prerequisites do not include a Brazilian digital certificate. They are a Didit API key, the identity fields the source matches on, and consent when the selected service requires it.

What happens when the CPF is not found?

no_match means the record is not in the registry. Treat it as synthetic-identity risk under your policy, decline, or fall back to document capture in the same session. The warning code is DATABASE_VALIDATION_NO_MATCH, and the decision itself stays with your organisation.

Can I verify a Brazilian user without their date of birth?

The lookup matches on the fields the source holds, and the date of birth is one of them, so leaving it out weakens the match or fails the request. Collect it from the user and validate the answer against the record. For age checks you need the date either way.

Does a registry match prove the document is genuine?

No. A registry match confirms that the submitted fields match the source record. It does not establish document authenticity or resolve every fraud risk. If document authenticity matters for your flow, add the ID document check at $0.15 with liveness and face match, or route the user to it as a fallback.

What happens when the upstream source fails?

You get HTTP 502 with a validation_errors[] array when every selected service failed, a COULD_NOT_PERFORM_DATABASE_VALIDATION log is written and the request is not billed. Retry later or fall back to document capture. Do not present that failure to the user as a failed identity check.

Can I test a Brazilian CPF check for free?

Yes. Create an account at business.didit.me. The sandbox is free and unlimited, and the Free plan adds $10 of credit each month for eligible work emails. Send the documented Brazil example with a test CPF and read the payload.

Is there a fallback for someone with no CPF?

Yes. Document capture covers passports, ID cards, driver licences and residence permits, priced at $0.15 per check, and you can add passive liveness at $0.10 and face match at $0.05. It needs nothing from any government source, so it works for people who have no record to match against.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.