Biometric Template Protection: Retention, Purge, Proof
Didit deletes the face embedding with the session by default. Opted-in applications keep one image-free template anchored to the User, with a finite expiry and purge calls you can run at any time.

Contents
In this guide
Jump to the part you need.
This guide fits teams that delete verification sessions soon after a decision but still need duplicate-face and multi-account detection to keep working. Didit does it with an opt-in, image-free biometric template anchored to the User. The paid units on the path are the checks, not the retention: a full KYC check is $0.33 and a standalone face search is $0.05. The caveat: a retained template is biometric data, not anonymous, and not deleted with the session.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Question | Default | When you opt in |
|---|---|---|
| What happens to the face embedding when a session is deleted | Deleted with the session (delete_with_session) | One image-free template kept, anchored to the User (retain_until_user_deleted) |
| What the retained template contains | Nothing survives | Numeric face template plus retention metadata |
| What it never contains | Not applicable | The face image, liveness video, document data, extracted identity fields, the decision, or the deleted session id |
| How long it lives | Ends with the session | A finite expires_at, set from 1 to 3650 days |
| How you revoke it | Not applicable | Purge one template, bulk purge, delete the User, send privacy_erasure, or let it expire |
| What it is used for | Nothing | Your duplicate-face, multi-account, biometric authentication and list matching only |
Start free in the sandbox at business.didit.me, no sales call. Developers who want an AI assistant to drive the API can connect Didit over MCP at didit.me/developers/mcp. Face Search is on the Face Search product page and documented at the Face Search API page; every published unit price is on didit.me/pricing.
Keep two instructions separate. An operational session deletion follows your retention policy and may keep one template. A privacy erasure instruction overrides that policy, purges every retained template for the person, and never retains a new one.
The outcome and the recommended method
Default behaviour first. Deleting a verification session deletes the session and every verification attempt it holds: the decision, the extracted data, the feature records, reviews, activity log and stored files, including the face embedding that powered Face Search 1:N and duplicate detection. A person whose session you deleted can verify again without being flagged as a duplicate.
That default breaks two fraud checks. If you delete sessions right after approval and someone re-registers under a new account, nothing remains to compare the new selfie against. Biometric template retention fixes that. When the application opts in, Didit deletes the session exactly as before and keeps one separately managed, image-free face template anchored to the session's User.
The template is tenant-scoped, used only for your duplicate-face, multi-account, biometric authentication and list matching, and never used for model training or cross-customer fraud processing. It has a finite expires_at. Every template is visible in the Business Console under Lists, Biometric templates, and on the owning User's profile. Didit is SOC 2 Type 2 and ISO/IEC 27001:2022 certified, acts as data processor while you stay the controller, and serves 4,000+ companies.
Choose the default delete_with_session when you verify once, keep no biometric data after the decision, and do not need duplicate detection across deleted sessions. Choose retain_until_user_deleted when you delete sessions soon after approval but still need to catch a second sign-up, a multi-account attempt, or a returning user later. If your workflow has no face capture, or automatic Face Search is off, neither setting creates a template because no embedding is stored.

What the documented controls cover
A biometric template is the numeric representation of a face, not the photo. It cannot be reissued like a password, so a leaked template can create long-term privacy and matching risk. Didit's documented controls are operational and auditable: an explicit retention policy, a finite expiry you must type in, purge endpoints you can call at any time, a privacy erasure instruction that overrides everything else, biometric consent for Illinois, Texas and Colorado sessions, and an audit trail that records every retain and purge attempt with the acting principal and the outcome.
Revocable storage of biometric templates
Revocable storage is the property that matters after an incident: you delete the stored template and the person keeps working, because the template was never the credential. With Didit there are four documented revocation points, and all of them remove the template from matching and delete the stored template:
DELETE /v3/biometric-templates/{uuid}/for one template, orPOST /v3/biometric-templates/delete/for a bulk purge.POST /v3/users/delete/for the owning User.- Any session deletion for that User sent with
deletion_instruction: "privacy_erasure". - Automatic expiry at
expires_at.
One trap: switching the application policy back to delete_with_session does not purge templates you already hold. The setting applies to deletions from now on. Purge explicitly.
When a Face Search match comes from a retained template, the response sets source to retained_template, returns biometric_template_id, and leaves the session fields null. Use that id with GET /v3/biometric-templates/{uuid}/ to inspect the template, then DELETE /v3/biometric-templates/{uuid}/ to purge it.
Prerequisites
- A Didit application with a workflow that captures a face: a Liveness, Face Match or Age Estimation step, the silent selfie the ID Verification step takes, or full-session video recording. Workflows whose Liveness step has automatic Face Search switched off never store the embedding, so there is nothing to retain.
- An API key sent in the
x-api-keyheader. Console user tokens get a 403 on these endpoints. - The
delete:sessionsprivilege for the session delete call. vendor_dataon the session so the template has a User to anchor to. A session with no linked User returnsineligible_no_vendor_userand nothing is retained.- A privacy notice and a controller instruction that cover biometric retention. Didit shows the consent step and records the answer. Whether your journey meets BIPA, CUBI or Colorado law is your decision, with your counsel.
- A finite retention period, 1 to 3650 days. The console will not save the setting without it.
Step by step: retain, inspect and revoke
- Set the policy in the console. Open Business Console, App Settings, Data retention. Turn on Retain biometric template, choose Retain until scheduled expiry or earlier deletion, enter the number of days, save. Each change lands in the audit log.
- Or set the same policy by API. The documented call is a PATCH on the webhook settings with the two retention fields.
curl -X PATCH https://verification.didit.me/v3/webhook/ \ -H 'x-api-key: <API_KEY>' \ -H 'Content-Type: application/json' \ -d '{"face_retention_policy": "retain_until_user_deleted", "face_retention_days": 365}' - Delete a session and retain the template. This call works once the application is opted in, or as a one-off override.
curl -X DELETE https://verification.didit.me/v3/session/<SESSION_ID>/delete/ \ -H 'x-api-key: <API_KEY>' \ -H 'Content-Type: application/json' \ -d '{"retain_face_embeddings": true, "face_retention_days": 365}' - Read the response before you trust it.
face_retention_outcomereports what actually happened. See the expected output below. - List what you hold. Filter by
vendor_data,vendor_user_uuid,status,source_typeand the retained date range.GET /v3/biometric-templates/count/returns the number with the same filters.curl 'https://verification.didit.me/v3/biometric-templates/?status=active&limit=50' \ -H 'x-api-key: <API_KEY>' - Check matching eligibility. Only templates with status
active, notheld_out_of_use, not pastexpires_at, and whose User still exists take part in matching. Everything else is still yours to manage and to delete. - Purge. Delete one template, or send a bulk purge with an explicit selector.
curl -X DELETE https://verification.didit.me/v3/biometric-templates/<TEMPLATE_UUID>/ \ -H 'x-api-key: <API_KEY>' curl -X POST https://verification.didit.me/v3/biometric-templates/delete/ \ -H 'x-api-key: <API_KEY>' \ -H 'Content-Type: application/json' \ -d '{"delete_all": true, "vendor_user_uuid": "<USER_UUID>"}' - Run an erasure request. Delete the session with
privacy_erasureand your own ticket reference. This purges every retained template for that User and never retains a new one.curl -X DELETE https://verification.didit.me/v3/session/<SESSION_ID>/delete/ \ -H 'x-api-key: <API_KEY>' \ -H 'Content-Type: application/json' \ -d '{"deletion_instruction": "privacy_erasure", "instruction_id": "dsar-2026-0142"}' - Confirm on the audit trail. Every retain and purge attempt, including failures, is recorded with the acting principal, instruction class, instruction source, instruction id and outcome.

Expected output
A successful retain call answers 200 with a body in this shape:
{
"session_id": "<uuid>",
"session_number": 1024,
"face_retention_outcome": "retained_with_user",
"biometric_template_uuid": "<uuid>",
"biometric_template_expires_at": "<ISO 8601 datetime>",
"deleted_child_verifications": 0
}
deleted: the session and its face embedding are gone. This is the default.retained_with_user: the session is gone, one image-free template stays anchored to the User until its expiry, User deletion, erasure or an explicit purge.none: the session had no face embedding, for example a KYB session or a document-only KYC session.ineligible_no_vendor_user: you asked for retention but the session had no linked User, so nothing could anchor the template. The session and its embedding are deleted.
A purge answers 200 with {"uuid": "...", "outcome": "purged"}, or already_purged if it was gone. A bulk purge returns a results array with one entry per template.
Failure cases and recovery
| Symptom | Cause | Recovery |
|---|---|---|
400 with template_uuids: "This field is required unless delete_all is true." | Bulk purge sent with no selector | Send template_uuids, or delete_all true plus filters |
400 on a delete that combines privacy_erasure with retain_face_embeddings: true | The two instructions contradict each other | Pick one: retain for that person, or erase for that person |
| 400 on a retain call without a duration | face_retention_days missing and the application sets no default | Send a value from 1 to 3650, or set the application policy first |
| 403 "You do not have permission to perform this action." | Console user token, or a key without the needed privilege | Use an application API key |
| 404 "Biometric template not found." | Unknown or already purged template id | Re-list with GET /v3/biometric-templates/. Purged templates are never listed |
503 with status purge_failed | An external store was unavailable | The template is already excluded from matching. Repeat the purge; the operation is retryable |
Outcome ineligible_no_vendor_user | The session carried no linked User | Send vendor_data when you create sessions for people you may need to retain |
| Templates still listed after you switch the policy back | The policy only applies to future deletions | Purge explicitly with the endpoints above |
Inputs and outputs
| Field | Direction | What it does |
|---|---|---|
retain_face_embeddings | request | true keeps an image-free template for this deletion, false deletes the embedding, omit or null follows the application policy |
face_retention_days | request | 1 to 3650 days. Required when retaining unless the application already sets it |
face_retention_deadline | request | Optional hard expiry in ISO 8601. The template expires at the earliest of this deadline, the retention days and the application retention window |
deletion_instruction | request | operational_session_delete by default, or privacy_erasure, which purges every retained template for the User |
instruction_id | request | Your durable reference, up to 255 characters, stored on the audit trail and on any retained template |
session_id, session_number | response | The session that was deleted |
face_retention_outcome | response | deleted, retained_with_user, none or ineligible_no_vendor_user |
biometric_template_uuid | response | The handle you use with GET and DELETE on /v3/biometric-templates/ |
biometric_template_expires_at | response | When the retained template is deleted. Null when nothing is retained |
deleted_child_verifications | response | For a KYB session, how many key-people and owner verifications were deleted with it. Always 0 for KYC |
Paid steps and review boundaries
Every paid unit on this path is a check. A full ID check is $0.33: ID document verification $0.15, passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03. A standalone face search is $0.05 per search. Biometric authentication is $0.10 per authentication. The published price book lists checks, not retention: deleting a session does not refund the credits its verification consumed.
Four boundaries stay on your side of the line:
- Didit shows the biometric consent step and records the answer on the session as evidence. Your counsel decides whether the journey meets the law that applies to your users, and whether your privacy notice covers retention.
- Didit acts as data processor. You are the controller and you choose the retention window, so a longer window is your decision to defend, not ours.
- Face Search returns Declined only on a blocklist hit. A pure duplicate returns Approved and is informational, so the merge-or-block decision is your policy. A possible blocklist match belongs in your manual review queue.
- A person without a linked User cannot be retained. Fix that when you create the session.

Worked cost example
Say you run 10,000 full KYC checks a month and 2,000 standalone face searches against the faces you already enrolled. At list price: 10,000 x $0.33 = $3,300.00, and 2,000 x $0.05 = $100.00, for $3,400.00 in total.
On Scale, at $299 a month with $350 of monthly credit and 10% off every Didit price: $3,300.00 x 0.90 = $2,970.00; $100.00 x 0.90 = $90.00; combined $3,060.00; minus the $350.00 credit leaves $2,710.00; plus the $299.00 plan fee gives $3,009.00 for the month. Turning retention on or off changes none of those numbers. It changes what you still hold after the session is gone.
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: Face Search 1:N
- Didit docs: Face Search API reference
- Didit Face Search product page
- Didit pricing page and live price feed, read November 26, 2026
- Didit MCP server setup
- Regulation (EU) 2016/679 (GDPR), EUR-Lex
Open the sandbox at business.didit.me, turn retention on in one test application, delete a session, then purge the template you just created. Doing it in that order means you have proof of revocation before the feature ever touches production. No sales call.
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
What is biometric template protection?
In Didit, it is the documented set of controls around a retained face template: an explicit retention policy, a finite expiry, purge endpoints, a privacy erasure instruction, biometric consent for covered US states, and an audit trail. A template is the numeric representation used for matching, not the photo.
Does Didit keep a biometric template when I delete a session?
No, not by default. Deleting a verification session deletes the session and all of its data, including the face embedding that powered duplicate detection and Face Search 1:N, so the person can verify again without a duplicate flag. Applications that opt in to biometric-template retention keep one separate, image-free template anchored to the session's User.
Can a retained biometric template be revoked?
Yes. Purge one template with DELETE /v3/biometric-templates/{uuid}/ or bulk purge with POST /v3/biometric-templates/delete/; deleting the owning User or sending deletion_instruction: "privacy_erasure" on a session deletion also removes templates for that person, and scheduled expiry removes the rest. Each path excludes the template from matching and deletes the stored template.
How long can Didit keep a retained template?
You set a finite period from 1 to 3650 days, and the console will not save the retention setting without one. The template expires at the earliest of that period, your application's general data-retention window, and any face_retention_deadline you send on a deletion call. There is no unlimited option on this setting.
Does a retained template contain the face image or the document?
No. The template holds the numeric face template plus retention metadata. It never contains the face image, the liveness video, document data, extracted identity fields, the decision, or the deleted session's id, and the provenance field is an opaque UUID rather than the session id. It is tenant-scoped and used only for your own matching.
What happens to retained templates on a GDPR erasure request?
Send the session deletion with deletion_instruction: "privacy_erasure" and your ticket id in instruction_id. That purges every retained biometric template for that User and never retains a new one, regardless of the application policy. Combining it with retain_face_embeddings: true is rejected with a 400.
Why did retention come back as ineligible_no_vendor_user?
The session had no linked User because you did not send vendor_data, so there was nothing to anchor the template to. The session and its face embedding were deleted as usual. Send vendor_data when you create sessions for people you may need to keep matching against.
Is biometric template retention billed separately?
The published price book lists checks, not retention. The billable units around this workflow are the checks themselves: a full ID check at $0.33, a standalone face search at $0.05, biometric authentication at $0.10. Deleting a session does not refund credits already consumed by its verification.
What happens if a purge fails with a 503?
The template moves to status purge_failed and is already excluded from matching, so it cannot produce a hit in the meantime. The documented operation is retryable: repeat the purge call. Every failure is also written to the audit trail with the acting principal and the outcome.
Does template retention actually stop duplicate accounts?
It is what makes duplicate detection survive session deletion. A face search match whose source is retained_template comes from a template kept after the source session was deleted; the response identifies the User with vendor_data and vendor_user_id and gives biometric_template_id for inspection or purge. Pure duplicate matches return an Approved status, so your application applies the merge-or-block policy.
Can I see retained templates in the console?
Yes. Every template appears under Lists, Biometric templates, and on the owning User's profile in the Business Console, alongside the API views. The API keys only: Console user tokens are refused with a 403 on the biometric-template endpoints, and an audit trail entry records each retain and purge attempt.
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


