Biometric Templates and Secure Storage: A Business How-To
Didit keeps one image-free face template per user after a session deletion only if you opt in, for 1 to 3650 days. The Biometric Templates API lists, inspects and purges each template.

Contents
In this guide
Jump to the part you need.
This guide fits teams that delete verification sessions but still need duplicate-face and multi-account detection to keep working. Didit lets you opt in to biometric-template retention: the session is deleted, and one image-free face template stays anchored to the user with a finite expiry. Retention has no separate price; you pay for the checks, from $0.33 per full KYC. The caveat is legal: a retained template is biometric data, so your notice and controller instruction must cover it.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Topic | Answer |
|---|---|
| Default behaviour | Deleting a session deletes its face embedding with it |
| Opt-in setting | face_retention_policy set to retain_until_user_deleted instead of delete_with_session |
| Retention window | 1 to 3650 days, required before the setting can be saved |
| What a template holds | The numeric face template plus retention metadata |
| What it never holds | Face image, liveness video, document data, extracted identity fields, the decision, the deleted session id |
| Where you manage it | Business Console under Lists, Biometric templates; API at https://verification.didit.me/v3/biometric-templates/ |
| Authentication | API key in x-api-key. Console user tokens get 403 |
| Purge triggers | Explicit delete, bulk purge, user deletion, privacy_erasure, expiry |
| Price | No price-book line for retention, listing or purging. A full KYC check is $0.33; Face Search 1:N is $0.05 per search |
Start free in the sandbox at business.didit.me (no sales call). Developers connecting an AI assistant can use the Didit MCP server. The unit prices behind every example here are on didit.me/pricing, and the duplicate detection that templates keep alive is documented in Face Search 1:N.
Outcome and the method we recommend
When you finish this guide, deleting a session removes the session, its files, its reviews and its decision, and leaves exactly one image-free face template per user with an expiry date you chose. You can list those templates, count them, filter them by user, inspect one, and purge it. Duplicate-face, multi-account and list matching keep working for that person.
The recommended method is to keep the default and opt in only when you have a reason. Retention solves one narrow problem: you delete sessions soon after a decision but still need to catch a repeat sign-up. If your sessions live for the length of your retention window, the embedding lives with them and you do not need templates at all. Workflows whose Liveness step has automatic Face Search switched off never store the embedding, so retention has nothing to keep for those sessions.

What a template is, and what it is not
A biometric template is a numeric representation of a face, not a picture. Didit keeps one image-free numeric face template per user, plus retention metadata. That template never contains the face image, the liveness video, the document data, the extracted identity fields, the decision or the deleted session's id.
It is still biometric data. It is not anonymous, it is not transient, and it is not deleted with the session. It 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. Every template has a finite expiry date.
Operational session deletion or privacy erasure: how to choose
Use an operational session delete when a verification ends and you want the default behaviour, or the retention your application policy sets. Use privacy_erasure when a person asks you to erase their data: that instruction purges every retained template for that person and never keeps a new one, whatever the application policy says. If a request could be either, treat it as privacy erasure, log the reasoning on the ticket, and keep the ticket id in instruction_id.
Prerequisites
- An application whose workflow captures a face: Liveness, Face Match, Age Estimation, the front-camera selfie of the ID Verification step, or full-session video recording.
- An API key. The Biometric Templates API accepts API keys only, and Console user tokens return 403. The Delete Session endpoint requires the
delete:sessionsprivilege; a template call made with a key that is not allowed returns the same 403. - A linked User on each session, normally the
vendor_datavalue you send at creation. Without it, a retention request returnsineligible_no_vendor_userand nothing is kept. - A retention period between 1 and 3650 days, agreed with your privacy team before you switch anything on.
- Consent covering the capture. For Illinois, Texas and Colorado the flow shows an explicit release before the first face capture, and native SDK 4.10.0 or later is required for that step.
Step by step: retain, inspect and purge templates
Decide whether retention is justified. Write down the purpose, the day count, and the lawful basis. A template outlives the session, so it needs its own justification in your privacy notice.
Set the policy and a finite window. In the Business Console go to App Settings, Data retention, switch on Retain biometric template, enter the number of days and save. The setting cannot be saved without a day count. The same change over the API:
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}'Didit applies the shortest of this day count, your general retention window, and any hard deadline you send on a deletion call.
Record consent where the law asks for it. The consent step appears before the first face capture when the application's mode is Always, or in Auto mode when the person's IP, the issuing state of their ID, or a state you declared points to Illinois, Texas or Colorado. You can also send consent you already collected as
biometric_consentwithgiven_atandtext_versionwhen you create the session.Delete a session and keep the template. If the application policy is already set, omit the body entirely. To override it per deletion:
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}'face_retention_daysis required when you retain unless the application already sets it.face_retention_deadlineadds a hard expiry in ISO 8601.Read the response before you move on.
face_retention_outcomeis the field that tells you what actually happened. Treat anything other thanretained_with_useras a signal to check your user linkage.List and count what you hold. Use the same filters on both calls:
curl -X GET "https://verification.didit.me/v3/biometric-templates/?limit=50&ordering=-retained_at" \ -H "x-api-key: YOUR_API_KEY"curl -X GET "https://verification.didit.me/v3/biometric-templates/count/?status=active" \ -H "x-api-key: YOUR_API_KEY"Filters are
vendor_data(substring, case-insensitive),vendor_user_uuid,status,source_type,retained_from,retained_to, plusorderingonretained_atorexpires_at. Purged templates are not listed.Inspect one template.
GET /v3/biometric-templates/{uuid}/returns why the template exists, which principal retained it, its instruction source, and its expiry.Purge when the reason ends. One template, a filtered batch, or the whole erasure path:
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_data": "user-42"}'For a data-subject erasure request, delete the session with an instruction class instead, which also purges every template held for that person:
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"}'Reconcile against the audit trail. Every retain and purge attempt, including failures, is recorded with the acting principal, the instruction class, the instruction source, your
instruction_idand the outcome. Mapping your own erasure ticket ids to that record is an example of an internal review step you can run on whatever schedule your compliance calendar already uses.
Expected output
A successful deletion returns 200 with the retention outcome spelled out:
{
"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
}
Read the outcome as follows: deleted means the session and its embedding are gone and nothing was kept; retained_with_user means the session is gone and an image-free template stays until its expiry, user deletion, privacy erasure or explicit purge; none means the session had no face embedding, for example a KYB session or a document-only check; ineligible_no_vendor_user means retention was requested but the session has no linked User, so the session and the embedding were deleted.
A single purge returns 200 with {"uuid": "TEMPLATE_UUID", "outcome": "purged"}, or already_purged if the work was done before. A bulk purge returns a results array with one entry per template.

Failure cases and how to recover
| Status | What you see | Cause | Recovery |
|---|---|---|---|
| 400 | template_uuids: This field is required unless delete_all is true | Bulk purge sent without a selector | Send template_uuids or delete_all: true, optionally with narrowing filters |
| 400 | Validation error on the deletion body | privacy_erasure combined with retain_face_embeddings: true, or a missing day count when retaining | Send one intention per call: erase, or retain with a day count |
| 403 | You do not have permission to perform this action. | A Console user token instead of an API key, or a key that is not allowed | Retry with an API key for the application that owns the template. Console user tokens are always rejected |
| 404 | Biometric template not found. | The template is unknown or already purged | Nothing to do. Confirm with the count endpoint using the same filters |
| 503 | External store unavailable, operation retryable | An external store did not answer during the purge | The template moves to purge_failed and is already excluded from matching. Repeat the purge; the audit trail holds both attempts |
One more case deserves its own line: switching the application policy back to delete_with_session does not purge templates you already hold, and does not create new ones. Purge explicitly if you are retiring the feature.
Inputs and outputs
| Where | Field | Type | Notes |
|---|---|---|---|
| Delete Session body | retain_face_embeddings | boolean or null | Overrides the application policy for this deletion. Omit it to follow the policy |
| Delete Session body | face_retention_days | integer 1 to 3650 | Required when retaining unless the application sets a default |
| Delete Session body | face_retention_deadline | ISO 8601 datetime | Optional hard expiry in the future |
| Delete Session body | deletion_instruction | operational_session_delete or privacy_erasure | privacy_erasure purges every retained template for the User and never keeps a new one |
| Delete Session body | instruction_id | string, max 255 | Your durable reference, for example an erasure ticket id, stored on the audit trail |
| Delete Session response | face_retention_outcome | enum | deleted, retained_with_user, none, ineligible_no_vendor_user |
| Delete Session response | biometric_template_uuid, biometric_template_expires_at | string or null | Null when no template is retained |
| Template object | source_type, retention_policy, retained_by_type, retained_at, expires_at, status | mixed | status is one of pending, active, expired, held_out_of_use, purge_pending, purge_failed, purged |
| Matching rule | status and held_out_of_use | derived | Only active templates that are not held out of use, not past expires_at, and whose User still exists take part in matching |
Paid steps and review boundaries
You pay for the checks that create the face data, not for keeping or removing it. A full KYC check is $0.33: ID Verification $0.15, Passive Liveness $0.10, Face Match 1:1 $0.05 and Device and IP Analysis $0.03. Standalone Face Search 1:N is $0.05 per search, Biometric Authentication is $0.10 per authentication with the first 50,000 active users each month free, Active Liveness is $0.15 and Age Estimation is $0.10. Reusable KYC, the workflow orchestrator, the MCP server and the SDKs are free, and the price book has no line for template retention, listing, inspection or purge.
Two boundaries sit outside the API. Didit is the data processor and you are the controller, so the purpose, the notice, the lawful basis and the day count are your decisions; a DPA and TOMs are available from privacy@didit.me. Didit shows the biometric consent step and records the answer as evidence, and it decides when that step appears, but it does not decide whether your user journey satisfies the biometric laws that apply to you. Audit log read-back depends on your plan: 30 days on Free, 1 year on Growth, 3 years on Scale and the contract term on Enterprise, with export on Scale and Enterprise.
Worked cost example
Say 10,000 new users a month, each on a full KYC check, and 500 duplicate-face searches a month driven by templates kept after operational deletions.
- KYC: 10,000 × $0.33 = $3,300.00
- Face Search 1:N: 500 × $0.05 = $25.00
- Monthly total at list price: $3,300.00 + $25.00 = $3,325.00
On Scale the 10% discount applies to Didit prices: 10,000 × $0.297 = $2,970.00 and 500 × $0.045 = $22.50, so $2,992.50 of usage, against the $299 monthly plan fee and its $350 of included credit. Retention, listing and purging add $0.00 in every case, because no price-book line covers them.

Privacy questions to ask, including physical access control buyers
Physical security buyers make the same retention decisions as online onboarding teams, so ask the questions that decide what outlives a session, and ask for answers in writing before you connect a door to a face.
- Does the system store a numeric template or the raw image, video and document? Ask for the field list, not a summary.
- Does anything survive a deletion, and if so, what exactly, with which expiry?
- Is there a programmatic purge, and does an erasure request also reach anything held outside the main session record?
- Is the retention window finite and configurable per application, and who sets it?
- Does the flow capture explicit consent before the first face capture, and is the answer stored as evidence on the record?
- Which region processes and stores the data, and is a data processing agreement available on request?
Our answers on Didit: a retained template holds the numeric face template and retention metadata only, with a finite expiry you set between 1 and 3650 days; TLS 1.3 in transit and AES-256 at rest; data processed and stored in the EU on AWS by default, with in-country processing available for Enterprise accounts; role-based access control and audit logs on every action; SOC 2 Type 2 and ISO/IEC 27001:2022 certified, GDPR compliant as a processor, and iBeta Level 1 and Level 2 under ISO 30107-3 for presentation attack detection. The Spanish Treasury, SEPBLAC, Banco de España and CNMV reported that our NFC plus active liveness flow meets or exceeds in-person verification.
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 and live price feed, read November 26, 2026
- Didit MCP server
- Regulation (EU) 2016/679 (GDPR), EUR-Lex
Next step: create a free application in the sandbox at business.didit.me, run one session with a face step, delete it with retain_face_embeddings and watch the template appear in the console. No sales call is needed to test the full path.
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 a biometric template, and does a retained one contain the face image?
A biometric template is a numeric representation of a face, not a photograph. On Didit a retained template contains the numeric face template and retention metadata only: never the face image, liveness video, document data, extracted identity fields, the decision or the deleted session id. It is still biometric data, tenant-scoped, and used only for your duplicate-face, multi-account, biometric-authentication and list matching. It is never used for model training or cross-customer fraud processing.
Is a retained biometric template deleted when I delete the verification session?
No, and that is the point of opting in. Deleting a session removes the session, its verification attempts, its files, its reviews and its decision, and keeps one separately managed image-free template anchored to the session's User. The template survives until its scheduled expiry, an earlier applicable-law deadline, user deletion, a privacy-erasure request, or an explicit purge.
How long can Didit keep a biometric template?
Between 1 and 3650 days, set as face_retention_days. Didit applies the shortest of that day count, your general data-retention window for the application, and any hard deadline you send on a deletion call. The general retention window is configurable from 1 month to 10 years in the Business Console, with unlimited and custom periods on Enterprise.
How do I delete a biometric template for a GDPR erasure request?
Delete the session with "deletion_instruction": "privacy_erasure" and an instruction_id. That purges every retained biometric template for the session's User and never retains a new one, whatever the application policy says. You can also purge one template with DELETE /v3/biometric-templates/{uuid}/, or delete the owning User with POST /v3/users/delete/, which purges their templates too. Combining privacy_erasure with retain_face_embeddings: true is rejected with 400.
Does switching the retention policy off purge existing templates?
No. Changing face_retention_policy back to the default affects future deletions only; it does not create or purge any existing template. If you are retiring the feature, purge what you hold with a bulk call using delete_all: true plus filters, then confirm the count returns zero.
What does biometric template retention cost?
There is no separate price for storing, listing or purging a template: the public price book has no line for it. You pay for the checks that create the face data, from $0.33 for a full KYC check, and $0.05 for each Face Search 1:N search that uses the template afterwards. Growth and Scale plans discount those prices by 4% and 10%.
Why did my deletion request report ineligible_no_vendor_user?
Retention anchors the template to the session's User, and that session had none, usually because no vendor_data was sent at creation. Didit deletes the session and its face embedding and keeps nothing. Send a stable vendor_data value on every session for that person and the next deletion can retain a template.
Why does my purge return 503, and is the data still in use?
A 503 means an external store did not answer while the purge was executing. The template moves to status purge_failed and is already excluded from matching, so it cannot be used in the meantime. The operation is retryable: repeat the same purge call and the audit trail records both attempts.
Which native SDK version supports the biometric consent step?
Native SDK 4.10.0 and later on iOS, Android, React Native and Flutter. The hosted flow, the Web SDK and WebViews show the step without an SDK upgrade. Older native SDKs process the capture as before but record required: true, status: pending and reason: BIOMETRIC_CONSENT_UNSUPPORTED_SDK on the decision, which is not evidence of consent.
Is Didit the controller of the biometric data?
No. Didit acts as a data processor and you remain the controller, so the notice, purpose, lawful basis and retention period are your decisions. A data processing agreement and TOMs are available from privacy@didit.me. Didit shows the consent step and keeps the answer as evidence, and it does not rule on whether your journey meets the biometric laws that apply to you.
Can a retained template be used for biometric authentication and duplicate detection?
Yes. A retained template keeps duplicate-face matching, multi-account detection, biometric authentication and list matching working for that person after the session is gone. Only templates that are active, not held out of use, not past their expiry, and whose User still exists take part in matching. Biometric Authentication is priced at $0.10 per authentication, with the first 50,000 active users each month free.
How do I check the privacy standards of a biometric provider for physical access control?
Ask for the stored field list, what survives a session deletion and for how long, the processing region, the encryption protocols in transit and at rest, the purge endpoints, how consent is captured and stored, and who the controller is. Didit answers with a numeric template plus retention metadata only, a finite expiry between 1 and 3650 days, EU processing by default, a documented purge API, a consent step recorded on the decision, SOC 2 Type 2, ISO/IEC 27001:2022 and iBeta Level 1 and Level 2 under ISO 30107-3. Get those answers in writing before you connect a door to a face.
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


