Skip to main content

Face Search 1:N API in France: Use Cases and Compliance

Didit Face Search 1:N searches your own enrolled faces and blocklist and returns up to 5 ranked matches for $0.05 per standalone search. In France, biometric processing needs an applicable Article 9 GDPR condition;

Face Search 1:N API in France: Use Cases and Compliance

Contents

In this guide

Jump to the part you need.

Face Search 1:N on Didit answers one question about a selfie: has this face already appeared in your application, or is it on your blocklist? It fits onboarding, duplicate-account detection and returning-user checks for French businesses. The standalone API costs $0.05 per search at list price. The caveat is legal: in France biometric processing needs an applicable Article 9 GDPR condition, a DPIA if Article 35 requires one, and a retention rule.

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

Face Search 1:N on Didit for French deployments
ItemValue
EndpointPOST https://verification.didit.me/v3/face-search/
Authenticationx-api-key header. A missing or invalid key returns 403, never 401
Required inputuser_image: one face, jpg, jpeg, png, tiff or webp, maximum 5 MB
Optional inputsearch_type, save_api_request, vendor_data, idempotency key
Matches returnedUp to 5 above the similarity floor, each with similarity_percentage
Price$0.05 per standalone search (Growth $0.048, Scale $0.045)
SpeedSub-2-second p99 inference
Rate limit300 requests a minute per API key, shared across POST, PATCH and DELETE
Index scopeYour application only. Faces are never pooled across customers
SandboxFree, returns a static Approved payload, no session and no credits consumed
Data locationEU AWS by default, in-country residency on Enterprise
French legal frameAn Article 9 GDPR condition, an Article 35 assessment, retention limits and a working erasure path

Start free in the sandbox at business.didit.me, no sales call. Sandbox keys skip processing and billing, so you can wire the call before you commit to anything. If you want the same API reachable from a coding agent, connect it through the Didit MCP server, and read the full list prices on the pricing page.

What a 1:N search returns, and how it differs from face match

Face Match 1:1 compares two images and tells you whether they show the same person. Face Search 1:N takes one probe image, embeds the largest face it detects, and searches your application's face index. You get ranked matches, each with a similarity percentage, the originating session, the user details captured during that session, and blocklist or allowlist flags. The response is a singular face_search object, not an array, so read face_search.matches rather than looping over a list of results.

Two modes cover most French deployments. search_type=most_similar ranks every enrolled face by similarity and is the mode for deduplication and fraud-ring investigation. search_type=blocklisted_or_approved restricts candidates to blocklisted faces, allowlisted faces, faces from approved sessions and imported profile faces, ranking blocklisted entries first. That is the mode for admission and access decisions. Both modes and the warning codes are documented in the Face Search overview.

The face capture step of a Didit verification flow, where the selfie used as the probe image is taken
The selfie from this step becomes the probe image. Capture quality decides most of the match quality later.

Prerequisites before your first call in France

Legal prerequisites

  • An Article 9 GDPR condition for biometric processing. Explicit consent is the common one, and it has to be specific, informed and withdrawable. This is not legal advice: have your counsel confirm the condition you rely on.
  • An Article 35 assessment. Decide with counsel whether your processing is likely to result in high risk; where a DPIA is required, it should cover purpose, necessity, the retention window, the false-positive rate you accept, and how a person contests a match.
  • Transparency text under Articles 13 and 14, plus a working path for access and erasure requests under Articles 15 and 17. Article 5(1)(e) sets the retention limit you stay accountable for.
  • A data processing agreement with Didit. We act as processor and you remain the controller. Ask for the DPA and the technical and organisational measures at privacy@didit.me.
  • A named human for anything the model cannot settle. A borderline match is a decision about a person, not a flag to auto-reject.

Technical prerequisites

  • An application API key. Sandbox keys validate the request shape and return a mock; live keys process and bill.
  • An index with faces in it. The index contains faces enrolled through the documented session, profile, list and retained-template routes.
  • Images at or under 5 MB in jpg, jpeg, png, tiff or webp. PDFs are rejected, and an image with no detectable face returns 400.

How to run a Face Search 1:N call in seven steps

  1. Pick the mode before you write code. Use most_similar for deduplication and returning users, blocklisted_or_approved for admission and access. The mode changes which candidates are eligible, not only the ranking.
  2. Decide whether the call persists. save_api_request defaults to true, which stores the call as an API session, enrolls the searched face and lets GET /v3/session/{sessionId}/decision/ work with the returned request_id. Set it to false for a one-shot search that stores and enrolls nothing.
  3. Send your own identifier. Put your user id in vendor_data, for example user-123, so a duplicate hit traces back to the right account. Unlike Passive Liveness, this endpoint does not exclude earlier sessions with the same vendor_data from matching, so a person will match their own previous session.
  4. Call the endpoint. One multipart request, one image:
    curl -X POST 'https://verification.didit.me/v3/face-search/' \
    -H 'x-api-key: YOUR_API_KEY' \
    -F 'user_image=@./selfie.jpg' \
    -F 'search_type=most_similar' \
    -F 'save_api_request=true' \
    -F 'vendor_data=user-123'
  5. Read the warnings before the matches. FACE_IN_BLOCKLIST and POSSIBLE_FACE_IN_BLOCKLIST drive status to Declined. DUPLICATED_FACE, POSSIBLE_DUPLICATED_FACE (information) and MULTIPLE_FACES_DETECTED (warning) never decline the call, so your application decides what happens next.
  6. Apply your own duplicate policy. A pure duplicate returns Approved with an informational warning. Whether a second account is merged, blocked or allowed is a product decision, and it belongs in your written policy before it belongs in code.
  7. Wire erasure on day one. A deletion request can remove the session and purge every retained template 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"}'
    privacy_erasure never retains a new template, and combining it with retain_face_embeddings: true is rejected with 400. Retained templates are listable and purgeable through /v3/biometric-templates/{uuid}/.

Expected output

A successful search returns HTTP 200 and consumes one Face Search API credit. The shape below is illustrative: the values come from your own index.

{
  "request_id": "<uuid>",
  "face_search": {
    "status": "Approved",
    "total_matches": 1,
    "matches": [
      {
        "session_id": "<uuid>",
        "session_number": 1024,
        "similarity_percentage": 96.4,
        "source": "session",
        "vendor_data": "user-123",
        "status": "Approved",
        "is_blocklisted": false,
        "is_allowlisted": false
      }
    ],
    "warnings": []
  }
}

source tells you where the match came from: session, imported, list_entry or retained_template. A retained_template hit carries null session fields, because the source session was deleted and only an image-free template remains.

A verification session overview in the Didit Business Console with its warnings listed
The session overview is where a reviewer sees why a match was flagged, next to the warnings the decision carried.

Inputs and outputs

Request fields and response fields for /v3/face-search/
FieldDirectionWhat it does
user_imageRequest, requiredFront-facing face image. The largest detected face wins when several are present
search_typeRequest, optionalmost_similar (default) or blocklisted_or_approved
save_api_requestRequest, optionalDefault true. Persists an API session and enrolls the face. false makes the call one-shot
vendor_dataRequest, optionalYour user identifier, carried into the match
request_idResponseId of the persisted session when save_api_request is true
face_search.statusResponseApproved or Declined. Declined only when a blocklist warning fires
face_search.matches[]ResponseUp to 5 matches with similarity_percentage, source, session fields and list flags
face_search.warnings[]ResponseRisk codes from the face match bucket, listed in the warnings catalogue

Failure cases and recovery

What goes wrong and what to do about it
SymptomCauseRecovery
400 on uploadNo detectable face, a PDF, a wrong extension or a file over 5 MBAsk for a retake in even light, then retry once. Give the person a support path instead of an endless loop
403 with a permission messageMissing or invalid x-api-keyCheck the key belongs to the application whose index you are searching
403 before processingInsufficient credit balanceTop up or move to a plan with credit. Sandbox keys are exempt
429More than 300 write requests a minute on one keyBack off and retry, and keep each key inside the documented 300 requests a minute budget
status: Declined with FACE_IN_BLOCKLISTA hard blocklist hitReject, then follow your appeals path. The blocklist entry survives a session deletion, so manage it through the Lists endpoints
POSSIBLE_FACE_IN_BLOCKLISTBorderline match below the hard thresholdRoute to human review. Never auto-reject on this code
DUPLICATED_FACEThe person was verified under a different vendor_dataMerge, flag or block according to your written policy
MULTIPLE_FACES_DETECTEDTwo or more faces in the probe imageDo not decline on this alone. Retake the image, or accept the largest face and log the warning
The liveness result for a session in the Didit Business Console
Liveness runs alongside the 1:N search. A face that passes liveness is still subject to your blocklist and duplicate rules.

Every 200 response consumes one Face Search API credit at $0.05 list price. The balance check happens before any image processing, so a 403 never leaves you billed for work you did not get. Sandbox calls validate the request and return a static Approved payload with no session persisted and no credits consumed. That is enough to prove your integration works and not enough to tune your thresholds, so plan a small live pilot.

Three things stay outside the API. A human decides what a borderline blocklist match means. A human decides whether a duplicate account is closed or merged. A human decides on an access or erasure request that touches retained templates. That review work is yours to staff and to describe in your Article 35 assessment, not a checkbox the call returns. Blocklist entries are managed through the Lists endpoints, and a face uploaded to a user profile is searchable in the same index.

Use cases that hold up in France

  • Duplicate and multi-account detection. A person tries to open a second account with a new email and a new document, and the 1:N search returns the earlier approved face as a ranked match. Your written policy then decides whether the second account is blocked, merged or allowed.
  • Returning users. Search before asking someone to repeat a full KYC. A hit against an approved session lets you route them to authentication instead of onboarding.
  • Blocklist screening in iGaming. Self-excluded or banned players checked at signup and at re-entry. Age Estimation at $0.10 per check covers the age gate as a separate step.
  • Employee and contractor access. A closed enrolled group, an employment-context consent handled by your counsel, and a log of every search.

What we would not build: a covert camera at a store entrance matched against a biometric list of suspected shoplifters, or a gallery assembled from social media. Both are hard to justify under Article 9 and the EU AI Act, though both get pitched as innovation. A 1:N API makes them technically possible, and that is not a reason to ship them.

What French compliance changes in your design

France applies GDPR through the Loi Informatique et Libertés, with the CNIL as supervisory authority. That is a legal framework you assess with your counsel; what follows is how it shapes the design decisions you make around the API.

  • Purpose limitation. Search for the purpose you documented and nothing else. A gallery enrolled for account deduplication is not a gallery for a different product line.
  • Your index is your own. The search is scoped to your application's index. Didit does not pool faces across customers, so a French deployment never returns a match drawn from another company's users.
  • Erasure is a design element. Default session deletion removes the face embedding with the session. If you opt in to keeping an image-free template you must set a finite window between 1 and 3650 days, and that template is tenant-scoped, never used for model training and never used for cross-customer fraud processing.
  • Consent capture has to be switched on deliberately. Didit can show a biometric consent step before the first face capture. The documented automatic triggers are the US states with biometric statutes, so for French users you either set consent mode to Always, which records trigger: "forced", or collect consent yourself and pass it when creating the session. The step records the answer; your Article 9 basis is still yours to establish.
  • Public-space and police uses are a separate question. Real-time remote biometric identification in publicly accessible spaces for law enforcement is prohibited in principle under the EU AI Act, with narrow exceptions. Search against your own enrolled users is a different activity, and the two should never be described in the same sentence to a regulator.
  • Keep the paper trail. SOC 2 Type 2 and ISO/IEC 27001:2022 certificates, the DPA, the sub-processor list and your Article 35 assessment belong in one folder your DPO can open during a review.

Production concerns worth testing before launch

Two numbers decide whether a demo survives contact with live traffic. Inference runs at sub-2-second p99, and the write budget is 300 requests a minute per API key across all POST, PATCH and DELETE calls. If your signup funnel can burst above that, the 429 handling is part of the design, not an afterthought. Images are compressed to roughly 0.5 MB before processing, so a 4 MB phone photo does not slow the call. Measure your own false-positive rate on real French ID photos, not on stock images, before you set the threshold that triggers a manual review.

Worked cost example

Take a French fintech with 6,000 new users a month, a full ID check on each, and 2,000 standalone face searches a month for returning users and duplicate checks. Borderline matches go to a reviewer your team staffs, so that staffing sits in your own budget and not in this arithmetic.

On list prices (Free plan, paid from credit and top-ups):

  • 6,000 full KYC checks at $0.33 = $1,980.00
  • 2,000 Face Search calls at $0.05 = $100.00
  • Total: $1,980.00 + $100.00 = $2,080.00 a month

On the Scale plan, with its 10% discount applied to every Didit price:

  • 6,000 full KYC checks at $0.297 = $1,782.00
  • 2,000 Face Search calls at $0.045 = $90.00
  • Total: $1,782.00 + $90.00 = $1,872.00 a month, plus the $299 plan fee

The $10 monthly credit on the Free plan buys 200 standalone face searches at $0.05 each, or about 30 full KYC checks at $0.33. Credit does not roll over, so a low-volume pilot on Free should be sized around the month, not the year. The 1:N check that runs during a liveness step inside a verification session is not a separately priced line in the price book, which is why only standalone calls appear in this estimate.

Run it from an AI assistant or coding agent

The Didit MCP server is free on every plan and exposes the same API to a coding agent, so you can generate the first call and then review it line by line. It does not replace the Article 9 assessment or the retention decision.

Client setup is documented at the Didit MCP server page. The hosted server is https://mcp.didit.me/mcp and signs in with OAuth, so there is no key to paste into a chat window.

Sources

The fastest next step is a sandbox key: create your application at business.didit.me, run the curl call above against the mock, then switch the same code to a live key when your Article 9 basis and retention rule are signed off. No sales call is needed to start.

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

Alejandro Rosas

Co-founder and CTO

Alejandro Rosas

Alejandro Rosas

Co-founder and CTO

About Didit

Questions

Frequently asked questions

What is the Face Search 1:N API endpoint and what does it return?

It is POST https://verification.didit.me/v3/face-search/, authenticated with an x-api-key header and sent as multipart form data with a required user_image. It returns a singular face_search object containing status, total_matches, up to 5 ranked matches with similarity_percentage, and a warnings array.

How much does one Face Search 1:N call cost?

$0.05 per standalone search at list price, $0.048 on Growth and $0.045 on Scale. Each HTTP 200 consumes one Face Search API credit, and an insufficient balance returns 403 before any image processing. The automatic 1:N check that runs during a liveness step is part of the verification session rather than a line of its own in the price book.

Is 1:N face search legal in France?

It can be, when you have an applicable Article 9 GDPR condition, clear transparency and a real retention limit, and when you have assessed whether Article 35 requires a DPIA for your processing. A face used to identify a person is biometric data, so processing is prohibited unless an exception applies, and explicit consent is only one of them. It is not lawful for every use: real-time remote biometric identification in public spaces for law enforcement is prohibited in principle under the EU AI Act. Take advice from counsel on your specific case.

Do I need a DPIA for face search in France?

Not automatically. Article 35 GDPR requires a DPIA where processing is likely to result in high risk, and biometric identification against a database can meet that bar, so assess your own processing with counsel. Where a DPIA is required it should state the purpose, the retention window, the false-positive rate you accept and how a person challenges a match.

Is Didit GDPR compliant, and who is the controller?

Didit is GDPR compliant and acts as a data processor; you remain the controller. We process and store data in the EU on AWS by default, with in-country residency available on Enterprise, and we hold SOC 2 Type 2 and ISO/IEC 27001:2022 certifications. Request the DPA and the technical and organisational measures at privacy@didit.me.

How fast is the API and what limits apply?

Inference runs at a sub-2-second p99. The rate limit is a shared write budget of 300 requests a minute per API key across all POST, PATCH and DELETE endpoints, and exceeding it returns 429. Pass a custom idempotency key if your client retries after a network error.

What happens when a searched face is on my blocklist?

A hard hit raises FACE_IN_BLOCKLIST and the response status becomes Declined. A borderline hit raises POSSIBLE_FACE_IN_BLOCKLIST, which should go to human review rather than an automatic rejection. Blocklist entries are not removed when you delete a session, so manage them through the Lists endpoints.

How do I delete a face from the index under the right to erasure?

Call DELETE /v3/session/{session_id}/delete/ with deletion_instruction: privacy_erasure, which purges every retained biometric template for that person and never keeps a new one. The default deletion removes the embedding with the session. If you opt in to retention instead, set retain_face_embeddings: true with face_retention_days between 1 and 3650, and purge the template later through /v3/biometric-templates/{uuid}/.

Who are GDPR-ready facial analytics vendors?

Judge any vendor on evidence rather than a compliance logo: a signed DPA with the technical and organisational measures attached, a documented retention and erasure path, and a clear statement that your biometric index is tenant-scoped to your application. Ask each shortlisted vendor for the same documents and compare them side by side. We document our DPA, retention controls and tenant-scoped processing, and you can request them at privacy@didit.me; our SOC 2 Type 2 and ISO/IEC 27001:2022 certificates are listed on our security and compliance page.

Can I use Face Search for retail theft detection or for police work in France?

Not against a police gallery, and not as a covert store camera matched to a biometric list of suspects. The index contains the faces your application enrolled through the documented session, profile, list and retained-template routes. Covert public-space identification is exactly the activity French and EU rules treat most strictly.

What image formats and sizes does the API accept?

tiff, jpg, jpeg, png and webp up to 5 MB; larger files and PDFs are rejected with 400. The image must contain at least one detectable face, and when several are present the largest bounding box wins. Files are compressed to roughly 0.5 MB before processing.

Does face search run automatically during identity verification?

Yes. During a liveness step in a verification session, the face is automatically compared with your previously verified users and your blocklist. The selfie taken by the front camera during document capture goes through the same 1:N search, and a blocklist match there raises its own front-camera warning codes. You still need the standalone API when you want to search a face outside a verification flow.

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.