---
title: "Emita um e-CPF com o seu rosto"
product: "Amplia"
slug: "issue-an-ecpf-with-your-face"
language: "pt"
canonical_url: "https://try.lacunasoftware.com/pt/amplia/issue-an-ecpf-with-your-face"
docs_url: "https://docs.lacunasoftware.com/pt-br/articles/amplia"
samples: []
samples_repo: null
trace_recorded: null
last_generated: "2026-10-12T15:24:28Z"
---

# Emita um e-CPF com o seu rosto

Digite seus dados e mostre o seu rosto: o Datavalid do Serpro o compara com a foto da sua CNH, pelo Lacuna Bio no Rest PKI Core, e o Amplia emite um e-CPF de teste para você.

Live demo: [https://try.lacunasoftware.com/pt/amplia/issue-an-ecpf-with-your-face](https://try.lacunasoftware.com/pt/amplia/issue-an-ecpf-with-your-face). It runs against Lacuna's real products; this page describes it for AI coding agents.

## Call sequence

No call sequence has been recorded for this demo yet, so none is shown here: this page doesn't guess calls. The docs and samples below show the calls; the live demo makes them.

## Patterns to copy

- Run Serpro's Datavalid `pf-basica` check before any face capture, returning users included: the name must match exactly, the birth date match, the CPF be regular, and a CNH exist, since Datavalid compares the face with the CNH photo.
- Enroll with the CPF's digits as the Subject identifier and `VerifyFaceIdentityExternally = true`; on `BioSubjectAlreadyEnrolled`, start a Face authentication instead, never replacing the enrollment. The Demo uses a Rest PKI Core subscription of its own for these faces.
- Datavalid's result is not in the completion status: read it with `GetSessionDetailsAsync(sessionId)`, which needs an API key allowed to view bio sessions.
- Treat the session URL and the widget's ticket as credentials: never log or show them.
- Once the face passes, issue the e-CPF from a CSR, as in the e-CNPJ flow, with no Amplia issue page and no return trip. Never turn on the Serpro client's sensitive-data logging: it would log the CPF, name and birth date.

## Links

- Live demo: https://try.lacunasoftware.com/en/amplia/issue-an-ecpf-with-your-face (Portuguese: https://try.lacunasoftware.com/pt/amplia/issue-an-ecpf-with-your-face)
- Docs: https://docs.lacunasoftware.com/pt-br/articles/amplia
- Every demo: https://try.lacunasoftware.com/llms.txt and https://try.lacunasoftware.com/demos.json
