Biometric Template Protection: A Deep Dive (4)
Didit deletes the face embedding with the session by default. Opt in to retention to keep an image-free template anchored to the deleted session's User, audit it with the Biometric Templates API, and purge it on request.

Contents
In this guide
Jump to the part you need.
Biometric template retention is for teams that delete verification sessions quickly but still need duplicate-face detection to keep working afterwards. A full ID check costs $0.33 and retention adds no line to our published price book. The caveat is legal: a retained template is biometric data, not a transient artefact, so keep it only when your privacy notice and controller instruction cover it.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
Biometric template retention at a glance
| Item | What you get |
|---|---|
| Default after a session delete | The session and its face embedding are deleted. Nothing is kept. |
| Opt-in policy | face_retention_policy set to retain_until_user_deleted, with face_retention_days between 1 and 3650. |
| What is kept | An image-free face template anchored to the deleted session's User, plus retention metadata. |
| What is never kept | Face image, liveness video, document data, extracted identity fields, the decision, the deleted session id. |
| Lifetime | Always finite: the earliest of the retention days you set, your application retention window, and any deadline you send. |
| When it is used | Only while status is active, not held_out_of_use, not past expires_at, and the User still exists. |
| Price | No published line for retention, listing or purge. You pay for the checks that create the template. |
| API surface | GET /v3/biometric-templates/, DELETE /v3/biometric-templates/{uuid}/, POST /v3/biometric-templates/delete/. |
| Console surface | Lists, then Biometric templates, and the owning User's profile. |
Start free in the sandbox at business.didit.me, with no sales call. Per-check prices sit on the pricing page, and developers can connect Didit to an AI assistant through the MCP server.
What a biometric template is, and what Didit keeps
Biometric systems rarely store a fingerprint image or a selfie. They extract distinctive features, turn them into a numeric template, and match templates instead of pictures. That reduces storage and speeds up comparison, but a template is still personal data.
Didit follows the same pattern. A KYC session with a liveness selfie carries a face embedding that powers duplicate detection and Face Search 1:N. By default that embedding dies with the session. If you opt in, Didit deletes the session and all of its data as usual, then keeps one separately managed, image-free template anchored to the session's User. The template stays useful for duplicate-face checks, multi-account detection, biometric authentication and list matching, and it is never used for model training or cross-customer fraud processing.
The full rule set is in the Biometric Templates API documentation and in the data retention guide. The short version: a template anchored to the session's User, a finite expiry, an audit trail entry for every retain and purge attempt, and a purge path you control.

Operational deletion and privacy erasure are different instructions
Every Delete Session call uses deletion_instruction, defaulting to operational_session_delete when omitted, and the two values are not interchangeable. operational_session_delete is the default: it removes the session and its data, and keeps or drops the face template according to your application policy and the flags on that call. It is housekeeping, not a legal decision.
privacy_erasure is a different instruction. It deletes the session, purges every retained biometric template for that person and never retains a new one, whatever the application policy says. Combining it with retain_face_embeddings: true is rejected with 400. Both instructions land on the audit trail with the instruction class, the instruction source and your instruction_id, which is how you defend the difference later. Use operational deletion for routine cleanup and the erasure instruction for data-subject requests.
How Didit protects a retained template
A retained template is a small record: the numeric face template plus retention metadata such as the owning User, retained_at, expires_at and the instruction that created it.
We keep it tenant-scoped and use it only for your duplicate-face, multi-account, biometric-authentication and list matching. It is never used for model training or cross-customer fraud processing. Data is encrypted in transit with TLS 1.3 and at rest with AES-256, access is role-based, every action is written to the audit trail, and processing is in the EU by default, with in-country processing available to Enterprise under contract.
The platform holds SOC 2 Type 2, ISO/IEC 27001:2022 and iBeta Level 1 and Level 2 under ISO 30107-3. The details are in security and compliance. None of that replaces deletion: a template you no longer need should be purged, not protected indefinitely, which is why expiry is finite and the purge endpoints exist.
Prerequisites
- An application with a workflow that captures a face: Liveness, Face Match, Age Estimation, or the front-camera selfie inside ID Verification.
- A linked User on the session, sent as
vendor_data. Without it there is nothing to anchor a template to, and retention is skipped. - An API key in the
x-api-keyheader. The Biometric Templates API accepts API keys only; Console user tokens get 403. - A decision on retention length between 1 and 3650 days, plus the privacy notice and controller instruction that justify it.
- Consent handling reviewed for Illinois, Texas and Colorado if you verify people there.
How to set up biometric template retention and deletion
Step 1: Confirm you need retention
If your Liveness step has automatic Face Search switched off, no embedding is stored in the first place, so there is nothing to retain. If you keep sessions for years, the embedding already lives with the session. Retention only earns its place when you delete sessions soon after the decision but still need to catch repeat sign-ups.
Step 2: Set the policy
In the Console, open App Settings, then Data retention, turn on Retain biometric template, enter a number of days, and save. The setting cannot be saved without a finite period. The same policy is available programmatically on the webhook settings endpoint:
curl -X PATCH https://verification.didit.me/v3/webhook/ \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"face_retention_policy": "retain_until_user_deleted", "face_retention_days": 365}'
The policy applies to deletions from that point on. Changing it does not create or purge existing templates.
Step 3: Check that consent covers the retention
Didit can show a biometric consent step before the first face capture for people covered by Illinois BIPA, Texas CUBI and Colorado, and it records the answer on the session. Modes are Auto, Always and Never, and the decision exposes biometric_consent.status and biometric_consent.trigger. You can also send consent you already collected with biometric_consent.given_at and text_version on Create Session. We show the step and keep the evidence; you decide whether the journey matches the law that applies. Read biometric consent for BIPA, CUBI and Colorado before you switch retention on.
Step 4: Delete a session and keep one template
This is the call most teams automate. It deletes the session and everything attached to it, and keeps one template for a stated period. The instruction_id is your own reference and lands on the audit trail and on the template, which makes a later purge easy to defend.
curl -X DELETE https://verification.didit.me/v3/session/SESSION_ID/delete/ \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"retain_face_embeddings": true, "face_retention_days": 365, "instruction_id": "signup-dedupe-2026-11"}'
Omit the body entirely and the call follows your application policy. Send retain_face_embeddings: false to override it for one deletion, or add face_retention_deadline to impose an earlier hard expiry. The scenario is spelled out in Delete Session.
Step 5: Read the response and record the template
The call returns once the deletion has completed. Check face_retention_outcome before you treat the job as done:
{
"session_id": "SESSION_ID",
"session_number": 1024,
"face_retention_outcome": "retained_with_user",
"biometric_template_uuid": "TEMPLATE_UUID",
"biometric_template_expires_at": "2027-11-26T09:12:00Z",
"deleted_child_verifications": 0
}
Four outcomes are possible. deleted means the session and its embedding are gone. retained_with_user means the session is gone and one template stays until expiry, User deletion, privacy erasure or an explicit purge. none means the session never had a face embedding, for example a KYB session or a document-only KYC. ineligible_no_vendor_user means you asked for retention but the session had no linked User, so both the session and the embedding were deleted.

Step 6: Audit what you hold
Retention you cannot see is retention you cannot defend. List active templates with filters, or just count them:
curl "https://verification.didit.me/v3/biometric-templates/?status=active&limit=50" \
-H "x-api-key: YOUR_API_KEY"
curl "https://verification.didit.me/v3/biometric-templates/count/?vendor_data=user-42" \
-H "x-api-key: YOUR_API_KEY"
Filters cover vendor_data, vendor_user_uuid, status, source_type, retained_from, retained_to and ordering. Purged templates are not listed. The same records are visible in the Console under Lists, then Biometric templates, and on the User profile.
Step 7: Purge on request or at end of life
The API provides three direct purge routes. Purge one template, purge a batch, or send a privacy erasure instruction that purges every retained template for that person and never retains a new one.
curl -X DELETE https://verification.didit.me/v3/biometric-templates/TEMPLATE_UUID/ \
-H "x-api-key: YOUR_API_KEY"
curl -X POST https://verification.didit.me/v3/biometric-templates/delete/ \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"delete_all": true, "vendor_user_uuid": "USER_UUID"}'
curl -X DELETE https://verification.didit.me/v3/session/SESSION_ID/delete/ \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"deletion_instruction": "privacy_erasure", "instruction_id": "dsar-2026-0142"}'
Deleting the owning User also purges their templates, and expiry purges them on schedule, so those are additional exits beyond the three direct routes. Switching the policy back to delete_with_session does not purge anything you already hold. Every retain and purge attempt, including failures, is written to the audit trail with the acting principal, instruction class, instruction source, instruction id and outcome.

Failure cases and recovery
| Response | What it means | Recovery |
|---|---|---|
| 400 | Bulk purge sent without template_uuids or delete_all: true, an invalid filter value, or privacy_erasure combined with retain_face_embeddings: true. | Send a selector. Drop the retention flag from erasure calls. |
| 403 | Console user token, or an API key without the required privilege. | Use an API key authorized for the requested Biometric Templates API operation. The Delete Session endpoint separately requires delete:sessions. |
| 404 | Template unknown or already purged, or the session was already deleted. | If the template was already purged, confirm its status in your records or audit trail. For an unknown identifier, investigate before treating the purge as complete. |
| 503 | An external store is unavailable. The template moves to purge_failed and is already excluded from matching. | Repeat the purge. The operation is retryable. |
ineligible_no_vendor_user | Retention requested, but the session had no linked User. | Send vendor_data on Create Session so future sessions can anchor a template. |
none | The session carried no face embedding. | Nothing to purge. Check whether the workflow captures a face. |
Inputs and outputs
Inputs
| Field | Where it goes | Values |
|---|---|---|
retain_face_embeddings | Delete Session body | true, false, or omit to follow the application policy |
face_retention_days | Delete Session body | Integer 1 to 3650, required when retaining unless the application already sets it |
face_retention_deadline | Delete Session body | ISO 8601 datetime in the future, applied as a hard cap |
deletion_instruction | Delete Session body | operational_session_delete (default) or privacy_erasure |
instruction_id | Delete Session body | Your reference, up to 255 characters, stored on the audit trail |
face_retention_policy | PATCH /v3/webhook/ | delete_with_session or retain_until_user_deleted |
template_uuids or delete_all | POST /v3/biometric-templates/delete/ | One selector is required, plus optional narrowing filters |
Outputs
| Field | Meaning |
|---|---|
face_retention_outcome | deleted, retained_with_user, none or ineligible_no_vendor_user |
biometric_template_uuid | Identifier for the retained template, or null when none was kept |
biometric_template_expires_at | When the retained template will be deleted, or null |
retained_at, expires_at | Creation time and scheduled expiry on the template record |
status | pending, active, expired, held_out_of_use, purge_pending, purge_failed or purged |
source_type | session_delete, automatic_retention or backfill |
retained_by_type | API_KEY, CONSOLE_USER or SYSTEM |
deleted_child_verifications | For a KYB session, how many linked verifications were deleted with it. Always 0 for KYC. |
What is billable, and where review stops
You pay for the checks, not for the template housekeeping. Retention is a template-retention setting on your application, not a separately priced product, and we publish no housekeeping fee for retention, listing or purge. The published module prices that matter here are $0.33 for a full ID check, made up of ID document verification at $0.15, passive liveness at $0.10, Face Match 1:1 at $0.05 and device and IP analysis at $0.03. Biometric Authentication is $0.10 per authentication and Face Search 1:N is $0.05 per search. Confirm current terms on the pricing page. Credits already consumed by a verification are not refunded when you delete the session.
Review boundaries matter as much as prices. Didit is the data processor and you are the controller. We show the consent step and record the answer, and we purge when you send a privacy erasure instruction, but we do not decide whether your notice or your retention period satisfies the law that applies to your users. The template record holds metadata and the numeric template only, so a reviewer can confirm what is held, why and until when, but cannot inspect a face image because none is stored.

Worked cost example
Take 20,000 completed KYC checks a month, retention switched on, and a Face Search 1:N run on every new sign-up at list prices:
- KYC: $0.33 x 20,000 = $6,600.00
- Face Search 1:N: $0.05 x 20,000 = $1,000.00
- Retention, listing and purge calls: $0.00, because no published line covers them
- Monthly total at list price: $6,600.00 + $1,000.00 = $7,600.00
The Scale plan's published 10% usage discount applies to every Didit price. The figures below exclude carrier and pass-through charges, which are billed at cost and are not discounted. The KYC check becomes $0.33 x 0.90 = $0.297, so 20,000 checks cost 0.297 x 20,000 = $5,940.00. Face Search becomes $0.05 x 0.90 = $0.045, so 20,000 searches cost 0.045 x 20,000 = $900.00. The new total is $5,940.00 + $900.00 = $6,840.00, before the $299 monthly plan fee, which also brings $350 of monthly credit that usage consumes first.
How to answer an employee who is hesitant about biometric data
Employees usually worry about two different things at once: the biometric sign-in on their own device, and a server somewhere that checks faces against documents. Keep the answer concrete and stay inside what we document.
- The retained template holds no image. The check turns the face into a numeric template, and the template never contains the face image, the liveness video or the document data. Session images are deleted with the session under your retention policy.
- Didit retains an image-free numeric face template, encrypted in transit and at rest, with role-based access and a finite expiry.
- The expiry is a real date. It is returned as
biometric_template_expires_at, and the record can be listed, read or purged on request. - Applicable law may provide notice, access and erasure rights. Explain the process in your privacy notice and apply requests according to the law that governs your processing.
- Every retain and purge attempt, including failures, is on the audit trail with the acting principal and instruction id.
Hi NAME, thanks for raising this. Here is how it works in practice. The retained biometric template does not contain your face image, and session images and other session data are deleted according to the applicable deletion policy. The check turns your face into a numeric template that never contains the face image, the liveness video or the document data. It is encrypted in transit and at rest, access is role-based, and it has a fixed expiry date. Where the law gives you the right to ask what we hold, or to ask us to delete it, our privacy notice explains how to make that request. I am happy to walk through that notice with you before you enrol.
Sources
- Didit docs: Biometric Templates API
- Didit docs: Delete Session API
- Didit docs: Data Retention and Deletion
- Didit docs: Biometric consent for BIPA, CUBI and Colorado
- Didit docs: Security and Compliance
- Didit docs: Face Search 1:N
- Didit pricing page, prices checked November 26, 2026
- Didit MCP server
- Regulation (EU) 2016/679 (GDPR), EUR-Lex
Next step: open the sandbox at business.didit.me, delete one test session with retention on, and read the response. No sales call is needed, and you can see the per-check prices on the pricing page before you run a single production check.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
Is a Didit biometric template the same as my user's selfie?
No. The retained template holds the numeric face template plus retention metadata only. It never contains the face image, the liveness video, document data, extracted identity fields, the decision or the deleted session's id.
Where can I see the biometric templates my application holds?
In the Business Console under Lists, then Biometric templates, and on the owning User's profile. Programmatically, call GET /v3/biometric-templates/ to list them or GET /v3/biometric-templates/count/ for a count with the same filters.
How long can Didit keep a biometric template?
Between 1 and 3650 days, and the period cannot be unlimited. The template expires at the earliest of the retention days you set, your application's data-retention window, and any face_retention_deadline you send on a deletion call. The expiry is returned as biometric_template_expires_at.
Does deleting a session delete the biometric template?
By default yes: the session and its face embedding are deleted together. If you have opted in to biometric-template retention, the session is still deleted but one image-free template stays anchored to the User until expiry, User deletion, a privacy erasure request or an explicit purge.
How do I handle a GDPR erasure request for a face template?
Delete the session with deletion_instruction set to privacy_erasure. That purges every retained biometric template for that User and never retains a new one, regardless of the application policy. Deleting the User purges all retained templates for that User, while a direct purge removes the specific template you select.
Does switching the policy back to delete_with_session purge existing templates?
No. Changing the policy only affects future deletions. Templates you already hold stay until their expiry, User deletion, a privacy erasure request or an explicit purge through the Biometric Templates API.
What does face_retention_outcome ineligible_no_vendor_user mean?
It means you asked to retain a template but the session had no linked User, usually because vendor_data was not sent. Nothing can anchor the template, so the session and its embedding are deleted and nothing is retained.
How much does biometric template retention cost?
There is no published line for retention, listing or purge. You pay for the checks that create the template: a full ID check is $0.33, Biometric Authentication is $0.10 and Face Search 1:N is $0.05 per search.
Which key can call the Biometric Templates API?
An API key sent in the x-api-key header. Console user tokens get a 403. Use a key authorized for the requested Biometric Templates API operation; the Delete Session endpoint separately requires delete:sessions.
Do we need a consent step in Illinois, Texas or Colorado?
Didit can show a biometric consent step before the first face capture and record the answer on the session, in Auto, Always or Never mode. We provide the step and the evidence; you decide whether your journey meets the law that applies and confirm it with your counsel.
What do I tell an employee who is worried about biometric data?
Explain that the face is converted into a numeric template and that no image is stored with it. Add that Didit keeps the template encrypted in transit and at rest, with role-based access, a fixed expiry date and an audit trail entry for every retain and purge attempt. Then point the person to your privacy notice for how to ask what is held and how to request erasure under the law that applies.
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.
Your obligations · 3 regions
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.
- 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.
Didit Academy


