Skip to main content

Biometric Template Protection: Retention and Purge How-To

Didit keeps one image-free face template after a session deletion only if the application opts in, with a finite expiry. The live price feed lists no separate price for retaining, listing, counting, inspecting or purging a.

Biometric Template Protection: Retention and Purge How-To

Contents

In this guide

Jump to the part you need.

Biometric template protection on Didit is a per-application retention setting: when you delete a verification session you can keep one image-free face template so duplicate-face, multi-account and list matching keep working. It fits teams that delete sessions soon after approval but still need to catch repeat sign-ups. The live price feed lists no separate price for retaining, listing, counting, inspecting or purging a template. The caveat: a retained template is biometric data, not anonymous, and it does not go away with the session.

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

Biometric template retention on Didit at a glance
QuestionAnswer
What it isOne image-free face biometric template anchored to the deleted session's User, kept after that session is deleted.
Who it fitsApplications that delete sessions quickly and still need duplicate-face and multi-account detection.
Default behaviourdelete_with_session. The face embedding is deleted with the session.
How to opt inSet face_retention_policy to retain_until_user_deleted and a finite face_retention_days between 1 and 3650.
What it never holdsThe face image, liveness video, document data, extracted identity fields, the decision, or the deleted session id.
Where to manage itBusiness Console, Lists, Biometric templates, and the Biometric Templates API.
PriceThe live price feed lists no separate price for retaining, listing, counting, inspecting or purging a template. The face checks that create one are billed.
Hard rulePurge it explicitly, delete the owning User, send a privacy erasure instruction, or let it expire. Switching the policy back does not purge existing templates.

Start free in the sandbox at business.didit.me with no sales call. Developers can connect Didit to an AI assistant through the MCP server. List prices and plan discounts are on the pricing page, and the face capture these templates come from is covered on the free KYC product page.

What you get, and how to run it

By default, deleting a verification session also deletes the face embedding that powered Face Search 1:N and duplicate detection for that session. An application can opt in to biometric template retention. Didit then deletes the session and all of its data as usual and keeps one separately managed, image-free face template anchored to the session's User. The template keeps duplicate-face, multi-account, biometric-authentication and list matching working for that person.

Opt in per application. Set a retention period shorter than your general data-retention window, delete sessions on your normal schedule, and drive every erasure through one of the documented purge points instead of editing records by hand. Do not keep your own copy of a face embedding. The retained template covers the documented matching uses: duplicate-face detection, multi-account detection, biometric authentication and list matching.

Two conditions decide whether anything is kept. The session must have a linked User through vendor_data; without one, the delete call returns ineligible_no_vendor_user and the session and its embedding are deleted. And the template expires at the earliest of three dates: the face_retention_days you set, the application's general data-retention window, and any face_retention_deadline you send on the deletion call.

Didit serves 4,000+ companies.

What a biometric template actually contains

A verification session captures a face and an algorithm turns it into a numeric template. The image is one thing, the template is another. A Didit template holds the numeric face template plus retention metadata: uuid, vendor_user_uuid, vendor_data resolved live, source_type, retained_at, expires_at, status, and who retained it. It never contains the face image, the liveness video, document data, extracted identity fields, the decision, or the deleted session's id.

The threats this setting changes

  • Over-retention. The most common biometric risk is keeping data longer than the law and your privacy notice allow. A finite expires_at on every template makes that visible and enforceable.
  • Exposure of retained data. A template never holds the face image, the liveness video, document data, extracted identity fields, the decision, or the deleted session id. Every retain and purge attempt, including failures, is recorded on the audit trail with the acting principal and the outcome.
  • Presentation attacks. Liveness detection is a separate control from retention, and a retained template keeps no liveness video to replay. Didit is iBeta Level 1 and Level 2 certified under ISO 30107-3.
  • Cross-tenant use. Templates are tenant-scoped and used only for your duplicate-face, multi-account, biometric-authentication and list matching. They are never used for model training or cross-customer fraud processing.

What protection looks like in practice

Data is encrypted in transit with TLS 1.3 and at rest with AES-256. Each template belongs to an application and to a User, and every retain and purge attempt, including failures, is recorded with the acting principal, instruction class, instruction_source, instruction_id and outcome. The same records are visible in the Business Console under Lists, Biometric templates, and on the owning User's profile.

The face capture step a user sees before a template is created
The face capture step. A template is created from this capture, and retention decides whether anything survives the session.

Prerequisites

  • A session with a face embedding and a linked User through vendor_data. Workflows whose Liveness step has automatic Face Search switched off never store the embedding, so there is nothing to retain.
  • A session linked to a User through vendor_data. Retention without a linked User returns ineligible_no_vendor_user and nothing is kept.
  • An API key. The Biometric Templates API accepts API keys only; Console user tokens get a 403.
  • The delete:sessions privilege for the Delete Session call.
  • A controller instruction and a privacy notice that cover biometric retention. A retained template is biometric data, not anonymous and not transient.
  • A retention period between 1 and 3650 days. The Console setting cannot be saved without one.

Step by step

Step 1. Turn on retention for the application

In the Business Console go to App Settings, then Data retention, and turn on Retain biometric template. Choose Retain until scheduled expiry or earlier deletion, enter the number of days, and save. The policy applies to deletions from that point on. To set the same policy from code, patch the webhook settings:

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}'

Step 2. Delete a session and keep one template

Send retain_face_embeddings as true with a finite period, or omit the body to follow the application policy you set in step 1. A template is created only when the session has a linked User through vendor_data.

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}'

Step 3. List and count what you hold

Filters are vendor_data (substring, case-insensitive), vendor_user_uuid, status, source_type, retained_from, retained_to, plus ordering (retained_at, -retained_at, expires_at, -expires_at). Purged templates are not listed.

curl "https://verification.didit.me/v3/biometric-templates/?vendor_data=user-42&ordering=-retained_at&limit=20&offset=0" \
  -H "x-api-key: YOUR_API_KEY"

curl "https://verification.didit.me/v3/biometric-templates/count/?status=active" \
  -H "x-api-key: YOUR_API_KEY"

Step 4. Inspect one template

Fetch a single template and read status, expires_at, held_out_of_use and retention_policy before you decide to keep or purge it. Only templates with status active that are not held out of use, not past expires_at, and whose User still exists take part in matching.

curl https://verification.didit.me/v3/biometric-templates/<TEMPLATE_UUID>/ \
  -H "x-api-key: YOUR_API_KEY"

Step 5. Purge one template or a filtered set

Both calls remove the template from matching and delete the stored template.

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, "status": "expired", "retained_to": "2026-01-01T00:00:00Z"}'

Step 6. Handle an erasure request in one instruction

A privacy_erasure instruction deletes the session and purges every retained template for that person, and it never retains a new one, whatever the application policy says. Put your ticket id in instruction_id so the audit trail carries it.

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"}'

Two more purge points need no template call: deleting the owning User with POST /v3/users/delete/, and automatic expiry at expires_at.

Expected output

The deletion call returns a body that tells you what happened to the face data.

{
  "session_id": "<uuid>",
  "session_number": 1024,
  "face_retention_outcome": "retained_with_user",
  "biometric_template_uuid": "<uuid>",
  "biometric_template_expires_at": "<ISO 8601>",
  "deleted_child_verifications": 0
}

A template object, as returned by the list and detail endpoints:

{
  "uuid": "<template id>",
  "vendor_user_uuid": "<User id>",
  "vendor_data": "user-42",
  "source_type": "session_delete",
  "provenance_reference": "<opaque UUID>",
  "retention_policy": "retain_until_user_deleted",
  "retained_at": "<ISO 8601>",
  "expires_at": "<ISO 8601>",
  "retained_by_type": "API_KEY",
  "instruction_class": "operational_session_delete",
  "instruction_source": "api",
  "held_out_of_use": false,
  "status": "active",
  "purged_at": null
}

A purge returns a per-template outcome, so a retry is safe:

{"results": [{"uuid": "<uuid>", "outcome": "purged"}]}
{"uuid": "<uuid>", "outcome": "already_purged"}
A liveness check inside a Didit session, showing what the session holds before deletion
The session detail view. Deleting the session removes all of this, and a retained template keeps only the numeric face template.

Failure cases and recovery

What each failure means and what to do next
Status or outcomeMessageRecovery
400{"template_uuids": ["This field is required unless delete_all is true."]}Send either template_uuids or delete_all as true. Nothing was purged.
400Invalid filter valueCheck the ISO 8601 date format and the status or source_type value against the template object.
400Erasure combined with retentionprivacy_erasure with retain_face_embeddings true is rejected. Send the erasure instruction alone.
403{"detail": "You do not have permission to perform this action."}You are using a Console user token or a key without the privilege. Use an application API key.
404{"detail": "Biometric template not found."}Treat the 404 as unknown or already purged. Check the audit trail, or list what your application still holds with GET /v3/biometric-templates/.
503{"detail": "The biometric-template operation could not finish because an external store is unavailable. The operation is retryable."}The template is already out of matching, with status purge_failed. Repeat the purge; the retry is recorded on the audit trail.
200already_purgedNothing to do. The purge points are idempotent.
ineligible_no_vendor_userRetention requested on a session with no linked UserSend vendor_data on Create Session so the template can anchor to a User.
noneThe session had no face embeddingExpected for a KYB session, a document-only KYC session, or a workflow without Face Search.

One more trap: changing the application policy back to delete_with_session does not purge templates you already retained. Purge them explicitly, or leave them to their expiry date.

Inputs and outputs

Every call in this flow, its inputs and its output
CallInputsOutput
PATCH /v3/webhook/face_retention_policy, face_retention_days (1 to 3650)Saved policy for future deletions
DELETE /v3/session/{session_id}/delete/retain_face_embeddings, face_retention_days, face_retention_deadline, deletion_instruction, instruction_idface_retention_outcome, biometric_template_uuid, biometric_template_expires_at, deleted_child_verifications
GET /v3/biometric-templates/Filters plus limit and offsetPaginated list of templates, purged ones excluded
GET /v3/biometric-templates/count/The same filters{"count": n}
GET /v3/biometric-templates/{uuid}/Template uuidOne template object
DELETE /v3/biometric-templates/{uuid}/Template uuid{"uuid": "...", "outcome": "purged"} or already_purged
POST /v3/biometric-templates/delete/template_uuids or delete_all plus narrowing filters{"results": [...]}

You pay for the verification that creates a template and for the face searches that use it. Current list prices: full ID check (KYC) $0.33 per completed check, ID document verification $0.15, passive liveness $0.10, active liveness $0.15, Face Match 1:1 $0.05, Face Search 1:N $0.05 per search, Biometric Authentication $0.10 per authentication, device and IP analysis $0.03. Deleting a session does not refund credits already consumed by the verification.

Our boundary is the processing. Didit acts as a data processor; you remain the data controller and decide the retention period, the lawful basis and whether your notice covers biometric retention. Didit shows the biometric consent step and records the answer, and that record is not a legal opinion. Have your counsel review the journey. For a DPA, TOMs or other attestations, email privacy@didit.me. The SOC 2 Type 2 report is available to enterprise customers under NDA, and we hold ISO/IEC 27001:2022 certification.

Illinois (BIPA), Texas (CUBI) and Colorado require a notice and an explicit release before a business collects face geometry. Didit can show a consent step before the first face capture and keep the answer on the session as evidence. The step appears when the workflow captures a face and the application's consent mode asks for it: Auto mode when a trigger applies, Always mode for every session. The triggers are declared_state, ip_state, ip_unknown and document_issuer.

When you already hold consent, send it on Create Session so the flow does not ask twice:

{
  "workflow_id": "YOUR_WORKFLOW_ID",
  "vendor_data": "user-42",
  "user_state": "US-IL",
  "biometric_consent": {
    "given_at": "2026-10-13T09:12:00Z",
    "text_version": "consent-v3"
  }
}

Native SDKs below 4.10.0 cannot show the step. If a session required consent and an older SDK captured a face, the decision carries biometric_consent.status as pending with reason BIOMETRIC_CONSENT_UNSUPPORTED_SDK. Upgrade to 4.10.0 or later if you verify people in Illinois, Texas or Colorado in a native app.

Biometric authentication flow, where a returning user verifies with a selfie
Biometric authentication is one of the flows a retained template keeps working after the original session is deleted.

Worked cost example

Take a consumer app that runs 10,000 full ID checks a month and 2,000 Face Search 1:N lookups against retained templates, all at list price:

  • 10,000 full ID checks at $0.33 = $3,300.00
  • 2,000 Face Search 1:N searches at $0.05 = $100.00
  • Retention, listing, counting, inspection and purge have no separate price in the live price feed.
  • List-price usage subtotal = $3,400.00

On Scale, every Didit price carries a 10% discount: 10,000 checks at $0.297 = $2,970.00 and 2,000 searches at $0.045 = $90.00, so $3,060.00 of usage. Add the $299.00 monthly plan fee and subtract the $350.00 monthly credit: $3,060.00 + $299.00 - $350.00 = $3,009.00 net payable.

On Growth, the discount is 4%: 10,000 checks at $0.3168 = $3,168.00 and 2,000 searches at $0.048 = $96.00, so $3,264.00 of usage. Add the $99.00 monthly plan fee and subtract the $115.00 monthly credit: $3,264.00 + $99.00 - $115.00 = $3,248.00 net payable.

Plan credit is added each month and does not roll over, so unused credit expires at the end of the plan month. The live price feed lists no separate price for session deletion or template purge.

How Didit billing works, showing credits, auto-recharge and volume discounts
Billing is per completed check from prepaid credit, and plan credit is applied before top-ups.

Sources

Next step: create an application in the sandbox at business.didit.me, run one deletion with retain_face_embeddings set to true, then purge it. No sales call, and sandbox testing 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

What is a biometric template in Didit?

It is a numeric representation of a face that Didit creates from a captured selfie, plus retention metadata. It powers duplicate-face, multi-account, biometric-authentication and list matching. It does not contain the face image, the liveness video, document data, extracted identity fields, the decision, or the session id it came from.

Does deleting a KYC session delete the face biometric data?

By default, yes. The session, its files and its face embedding are deleted together, and the person can verify again without being flagged as a duplicate. If the application opted in to biometric template retention, or you send retain_face_embeddings as true on the delete call, one image-free template stays anchored to the User until its expiry date.

How long can Didit keep a biometric template?

Between 1 and 3650 days, set as face_retention_days on the application policy or on an individual deletion. The template expires at the earliest of three things: that retention period, your general data-retention window, and any face_retention_deadline you send on the deletion call. The Console cannot save the retention setting without a finite period.

Is a retained biometric template anonymous?

No. Didit's documentation states it plainly: a retained template is biometric data, it is not anonymous, it is not transient, and it is not deleted with the session. Enable retention only when your controller instruction and privacy notice cover it.

How do I turn on biometric template retention in Didit?

In the Business Console, open App Settings, then Data retention, turn on Retain biometric template, choose Retain until scheduled expiry or earlier deletion, enter the number of days and save. From code, patch /v3/webhook/ with face_retention_policy set to retain_until_user_deleted and a face_retention_days value. The policy applies to deletions from that point on.

How do I purge every biometric template for one person?

Send a Delete Session call for that person's session with deletion_instruction set to privacy_erasure. It deletes the session and purges every retained template for the User, and it never retains a new one. Deleting the User with POST /v3/users/delete/ also purges their templates.

What happens if I switch the policy back to delete_with_session?

Nothing happens to templates you already hold. The setting only changes what future deletions do. Purge existing templates with DELETE /v3/biometric-templates/{uuid}/, with a bulk purge, or let them reach expires_at.

Which sessions cannot keep a template?

Three cases. A session with no linked User returns ineligible_no_vendor_user. A session with no face embedding, such as a KYB session or a document-only KYC session, returns none. A workflow whose Liveness step has automatic Face Search switched off never stores the embedding in the first place.

Is there a price for biometric template retention?

The live Didit price feed lists no separate price for retaining, listing, counting, inspecting or purging a template. The verification that creates a template and the Face Search 1:N call that uses it are billed at their own list prices, currently $0.33 for a full ID check and $0.05 per face search.

Does Didit use retained templates for model training or cross-customer checks?

No. A retained template is tenant-scoped and used only for your duplicate-face, multi-account, biometric-authentication and list matching. Didit's documentation states it is never used for model training or cross-customer fraud processing.

What does a purge return when an external store is down?

A 503 with a message saying the operation is retryable. The template moves to status purge_failed and is already excluded from matching, so you repeat the purge and the retry is recorded on the audit trail.

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.