IP Anomaly Detection: Wire It Into a Verification Flow
Device and IP Analysis runs inside every Didit verification session for $0.03 per check. Create a session, read the per-session IP analysis report and its LOCATION warnings, then branch on the risk codes.

Contents
In this guide
Jump to the part you need.
IP anomaly detection fits teams that already run identity checks and want network and device signals read inside the same session. On Didit, Device and IP Analysis runs on every verification and costs $0.03 per check, part of the $0.33 full KYC. The caveat matters: it is session-only. There is no standalone IP analysis endpoint, so you build it into a workflow rather than calling a bare API.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Item | Detail |
|---|---|
| Outcome | Each verification session returns IP geolocation, ASN, VPN, proxy and Tor flags, a device fingerprint id and duplicate-device matches for your policy to act on |
| Delivery | Session-only. The Web and Mobile SDKs collect the fingerprint and IP in the hosted flow; the result lands under ip_analyses[] on the session decision |
| Price | Device and IP Analysis $0.03 per check. Full ID check $0.33 = ID $0.15 + passive liveness $0.10 + face match $0.05 + device and IP $0.03 |
| Warnings bucket | LOCATION, not IP_ANALYSIS |
| Console control | Device and IP Analysis is a feature node in the Workflow Builder, with strict-mode rules such as decline on VPN or review on duplicate device |
| Plans | Available on every plan. The sandbox is free on every plan and unlimited. Eligible Free organizations receive $10 of monthly credit; eligibility means the first organization created with a work email for a company domain |
| Standalone API | None documented for IP analysis. Use the session decision or the session.status.updated webhook |
Start free in the sandbox at business.didit.me with no sales call. The sandbox is free on every plan and unlimited. If you drive the work from an AI assistant, connect Didit through the MCP server. The published unit prices behind every number below are on Didit pricing.
What the outcome looks like
After a session finishes, the decision payload carries an ip_analyses[] array with one entry per IP and device collection point in the workflow. Each entry holds the resolved geo (country, region, city and coordinates), the ASN, the VPN, proxy and Tor flags, the device fingerprint id, any duplicate-device matches, and a warnings array. The full field list is on the IP analysis overview in the docs, and every per-check price sits on Didit pricing.
The matching engine compares the current session against earlier sessions from other vendor_data values. The documented checks are duplicated IP, meaning the same address seen across different users; duplicated device fingerprint, meaning exact reuse of the same persistent device identity; and recovered device, a high-confidence match on the v2 fingerprint signal vector. Didit also runs expected IP checks when you supply an allowed IP for the session, and IP blocklist checks configured in your application.
This is a risk surface, not a verdict. The docs list the flags and the checks that produce them; weighing them is implementation guidance from us, not a documented Didit behavior. Our guidance: a VPN flag on its own is weak evidence, and a blocklisted device that also shows a liveness failure is strong evidence. Your job is to decide which combinations move a user to review and which block the session.
Prerequisites
- A Didit organization. The console is at business.didit.me.
- An API key sent in the
x-api-keyheader. Reading decisions needs theread:sessionsprivilege. - No feature toggle is required. Device and IP Analysis runs automatically during every session. Add its feature node in the Workflow Builder only when you need graph placement or configured rules.
- A stable identifier for each user, sent as
vendor_data. Duplicate detection only works across sessions when you send it. - An allowed domain configured for your application if you send an https
callback. Otherwise session creation fails with a 400 oncallback. - A written policy for each risk code: pass, challenge, route to review, or decline.
Step by step: add IP anomaly detection to a workflow
The basic signal set runs automatically during every session and needs no feature toggle, so you can go straight to creating a session. Open the Workflow Builder and add the Device and IP Analysis feature node only when you need graph placement or configured rules. The node fixes where the collection point sits in a multi-step flow and pins the report to that node.
Set strict-mode rules in the console for IP and device results, for example decline on VPN, review on duplicate device, or decline when the IP country does not match the document. Keep the first version of the rules narrow, and widen them after you have seen live traffic.
Publish the workflow. Workflows use draft and publish versioning: publishing creates an immutable version, and past sessions keep the version they were created with. Copy the workflow UUID from
/v3/workflows/.Create the session with a POST to
/v3/session/. Sendvendor_dataso duplicate detection can compare this session against earlier ones.
curl -X POST 'https://verification.didit.me/v3/session/' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"workflow_id": "YOUR_WORKFLOW_ID",
"vendor_data": "user-123",
"callback": "https://yourapp.com/post-kyc"
}'
- Open the returned
session.urlfor the user. The SDK collects the device fingerprint and the IP in-band during the hosted flow. Nothing else is required from your side. - Fetch the decision when the session ends, or subscribe to
session.status.updatedand read the same object from the webhook envelope.
curl https://verification.didit.me/v3/session/<SESSION_ID>/decision/ \
-H "x-api-key: <API_KEY>"
- Read
ip_analyses[]and the warnings attached to each entry. Filter onfeatureequal toLOCATION; the risk codes are not filed under anIP_ANALYSISbucket. - Branch on the risk codes in your own handler. The documented pattern branches on
session_kindfirst, because KYC and KYB sessions share the same feature arrays but not the same downstream logic.
const decision = await (await fetch(url, { headers: { "x-api-key": API_KEY } })).json();
switch (decision.session_kind) {
case "user":
return handleUserDecision(decision);
case "business":
return handleBusinessDecision(decision);
}

Expected output
Every warning in the payload uses the same object shape. The documented example from the data models page is below. A LOCATION warning has the same fields, with a risk code such as VPN_DETECTED instead of DOCUMENT_EXPIRED.
{
"feature": "ID_VERIFICATION",
"risk": "DOCUMENT_EXPIRED",
"additional_data": null,
"log_type": "error",
"short_description": "Document expired",
"long_description": "The document's expiration date has passed, rendering it no longer valid for use.",
"node_id": "first_id_verification"
}
Per entry, ip_analyses[].status is one of Not Started, In Progress, Approved, In Review, Declined, Abandoned or Kyc Expired. The top-level session status uses the wider session enum, which also includes Expired, Resubmitted and Awaiting User. When a reviewer changes the status by hand, status_override records the automatic status it replaced, and decision_trace says who decided and when.
The risk codes and what to do with them
| Risk code | What it tells you | Sensible first response |
|---|---|---|
VPN_DETECTED | The connection is routed through a VPN | Pass, or add a liveness step on higher-value flows |
PROXY_DETECTED | The connection is masked by a proxy | Route to review when the product is geo-restricted |
TOR_DETECTED | The session came through a Tor exit node | Review or challenge, since exit nodes are shared |
DATACENTER_IP | The IP belongs to a hosting range, not a residential or mobile network | Review for signup flows; weak alone |
HIGH_RISK_COUNTRY | The country falls in a risk set you configured | Review, or decline when your policy forbids the jurisdiction |
LOCATION_MISMATCH_WITH_DOCUMENT | The IP country does not match the document issuing country | Route to review |
DUPLICATED_DEVICE | The same device was enrolled under a different vendor_data | Merge accounts or block, per policy |
POSSIBLE_DUPLICATED_DEVICE | A high-confidence fingerprint recovery match | Review before you merge or block |
IMPOSSIBLE_TRAVEL | Two locations the user could not physically reach in the elapsed time | Review, and check the device history |
DEVICE_FINGERPRINT_BLOCKLISTED | The device sits on a blocklist you configured | Apply your fraud policy, such as review or decline |
DEVICE_LINKED_TO_LIVENESS_ATTACK | The device is tied to a previous liveness attack | Decline, or require review |
DEVICE_MODEL_INCONSISTENT | The reported device model does not fit the rest of the fingerprint | Review, since the client may be spoofed |
Inputs and outputs
| Field | Direction | Where it appears | What it is for |
|---|---|---|---|
workflow_id | Input | POST /v3/session/ body | Workflow UUID. Add the Device and IP Analysis node only when you need graph placement or configured rules |
vendor_data | Input | POST /v3/session/ body | Your stable user id. Duplicate detection compares sessions across different values |
callback | Input | POST /v3/session/ body | Where the hosted flow returns the user after the check |
session.url | Output | Create response | The hosted URL you open for the user; fingerprint and IP are collected here |
ip_analyses[] | Output | Decision payload | Geo, ASN, VPN, proxy and Tor flags, fingerprint id, duplicate matches and warnings |
warnings[].risk | Output | Each ip_analyses[] entry | The risk code your policy branches on |
ip_analyses[].status | Output | Decision payload | Lifecycle of that collection point, from Not Started to Declined |
linked_records | Output | Decision payload | Same-face and earlier-verification summaries linked to this session |
status_override, decision_trace | Output | Decision payload | Whether a human changed the automatic status, and how the status was reached |
Failure cases and recovery
| Failure | What you see | Recovery |
|---|---|---|
| The user blocks the fingerprinting script | ip_analyses[] is empty | Decide in advance between failing closed and falling back to soft signals such as phone and email verification |
| VPN, proxy or Tor detected | A warning under LOCATION | Apply your fraud policy: pass, review, decline, or add a liveness step |
| Duplicate device | DUPLICATED_DEVICE on the entry | Merge accounts or block per policy; check vendor_data on both sessions first |
| Location mismatch | LOCATION_MISMATCH_WITH_DOCUMENT | Route to review. Do not auto-decline on a single soft code |
| Wrong session id | 404 with {"detail": "Not found."} | The session does not exist or belongs to another application. Check the id and the key |
| Key without read access | 403 with a permission detail | Use a key that holds read:sessions |
| Callback rejected | 400 on callback | Put the callback on one of the application's allowed domains, or use an app deep link |
| Link expired before the user finished | Session status Expired | Set session_expiration_time between 3600 and 2419200 seconds, or fix the workflow default |
The empty-array case is the one that catches teams. It is not an error and it will not throw. Your code has to treat "no signals" as its own branch, because a user who cannot be fingerprinted is neither clean nor guilty.

Paid steps and review boundaries
Device and IP Analysis is $0.03 per check at list price, $0.0288 on Growth and $0.027 on Scale. It is billed when the check finishes with a result, and a Declined result is still a result, so a session your rules block at the IP stage is not free.
Our recommendation, not a documented Didit behavior: reserve automatic decisions for conditions you can state as a rule and defend in an audit, such as a blocklisted device, a device tied to a liveness attack, or a country your licence excludes, and send everything else to a person. What the docs do define is the record: when a reviewer overrides the automatic status, status_override and decision_trace keep who decided and on what basis.
Worked cost example
Take 10,000 full ID checks a month on the Growth plan. The list price is $0.33 per completed check and Growth takes 4% off every Didit price, so each check costs $0.3168. The device and IP portion is $0.03 at list, or $0.0288 with the same discount.
- Checks: 10,000 x $0.3168 = $3,168.00
- Device and IP portion: 10,000 x $0.0288 = $288.00, about 9% of the bill
- Plan credit applied: $115.00
- Paid from top-up: $3,168.00 - $115.00 = $3,053.00
- Total for the month, plan fee included: $99.00 + $3,053.00 = $3,152.00
At a smaller volume the same unit prices apply. An eligible Free organization receives $10 of monthly credit, which buys about 30 full ID checks at $0.33 each: 30 x $0.33 = $9.90. The device and IP portion of those checks is 30 x $0.03 = $0.90. There is no plan fee, and the sandbox stays free and unlimited for testing before any of that credit is spent.
Sources
- Didit docs: Device Fingerprinting and IP Risk API for KYC
- Didit docs: IP analysis warning catalogue
- Didit docs: data models and the warning object schema
- Didit docs: Create Session API
- Didit docs: Retrieve Session API
- Didit docs: Workflow Builder
- Didit docs: pricing and billing rules
- Didit pricing page and pricing as JSON, read November 26, 2026
- Didit MCP server
The next step is a sandbox session: create an application at business.didit.me, add the Device and IP Analysis node to a workflow, and read a real decision payload in a few minutes. 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
Alejandro Rosas
Co-founder and CTO

Questions
Frequently asked questions
What is IP anomaly detection in a verification flow?
It reads the IP address, its geolocation, ASN and connection type together with the device fingerprint collected during a session, then flags anything that departs from your policy: VPNs, proxies, Tor, hosting ranges, country mismatches and devices already seen under another account. On Didit this is part of Device and IP Analysis, and its warnings arrive in the LOCATION bucket of the session decision.
Does Didit offer a standalone IP analysis endpoint?
No. IP Analysis is session-only. The Web and Mobile SDKs collect the device fingerprint and IP inside the hosted flow, and the result is returned under ip_analyses[] on GET /v3/session/{sessionId}/decision/ or in the session.status.updated webhook. To run it you create a verification session.
How much does IP anomaly detection cost?
Device and IP Analysis is $0.03 per check at list price, $0.0288 on Growth and $0.027 on Scale. It is also one of the four parts of the $0.33 full ID check, alongside ID verification at $0.15, passive liveness at $0.10 and face match at $0.05. You pay when a check finishes with a result.
Which risk code should trigger a decline?
Few codes justify a decline on their own. A single VPN_DETECTED or DATACENTER_IP is weak evidence, so many teams route it to review or add a liveness step. DEVICE_FINGERPRINT_BLOCKLISTED, DEVICE_LINKED_TO_LIVENESS_ATTACK and an exact DUPLICATED_DEVICE match are stronger and commonly justify a block. You set the thresholds yourself in the console.
What happens if a user blocks the fingerprinting script?
ip_analyses[] comes back empty, because the SDK could not collect the signals. Decide in advance whether to fail closed, meaning require another check, or fall back to soft signals such as phone and email verification. Write the choice into your policy so every reviewer applies it the same way.
Can I test IP anomaly detection without real fraud traffic?
Yes. The sandbox is free on every plan and unlimited. Point the workflow at a sandbox application, run sessions, and read the same decision payload you get in production. Published prices and sandbox availability do not establish production availability, so check the product page for supported methods before you launch.
What is the difference between DUPLICATED_DEVICE and POSSIBLE_DUPLICATED_DEVICE?
DUPLICATED_DEVICE is an exact match on the persistent device identifier used for same-device detection. POSSIBLE_DUPLICATED_DEVICE comes from the recovered-device path, which uses the v2 fingerprint signal vector and high-confidence gates so unrelated users are not merged too aggressively. Treat the exact match as stronger evidence and the possible match as a review trigger.
Does IP analysis run on business verification sessions too?
Yes. The retrieve-session documentation lists ip_analyses among the feature arrays shared by both session kinds, so a KYB session returns the same array as a KYC session. Branch on session_kind before you handle the rest of the payload, because the surrounding feature arrays differ.
What does IP analysis add to a full KYC check?
A Didit KYC is three parts in one check: the ID document, biometrics with passive liveness and face match, and device and IP analysis. The IP part tells you where the session came from and whether that device has been seen before. Combined with the document country and the liveness result, it produces the location and device warnings that drive review.
Can IP anomaly detection stop account takeover by itself?
No, it is one signal in a decision. It is strongest when correlated with the document country, the liveness result and duplicate-device history, which is why Didit returns these as arrays on one payload rather than as a separate score. For the login path, pair it with biometric authentication at $0.10 per auth, where the first 50,000 authentication active users each month are free.
How do I move an existing IP rule set onto Didit?
The console can hold strict-mode rules for IP and device results, while your application code consumes the warnings the session returns. Read warnings[].risk and branch on the documented codes in your own handler, publish the workflow as a version so you can roll back, and compare the new automatic decisions against your current ones on a sample before you switch traffic. The IP analysis overview lists the full warning catalogue.

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


