API referenceIdentify

update_session

PATCH /v1/identify/sessions/{id} sets or clears a session's entity_id, your own id for the customer the session belongs to.

Send entity_id once you know whose session it is, such as after sign-in. Send null or "" to clear it. Either way the session's entity_source becomes server, and an id your page names from the browser no longer changes it. list_sessions with entity_id then lists that customer's sessions.

PATCH
/v1/identify/sessions/{id}

Sets or clears a session's entity_id: your own id for the customer or user account the session belongs to. Send a string to set it, and null or "" to clear it. What this call sets or clears stands: the session's entity_source becomes server, and an id the page names through the snippet no longer changes it. Nothing else of the session changes, its verdict and updated_at included.

Path parameters

FieldTypeDescription
idrequiredstring

The session's id, ksn_….

Request body

application/json

FieldTypeDescription
entity_idstring or null

Your id for the customer or account, 1 to 128 characters with no control characters. Spaces around it are dropped. null or "" clears it. Without it, nothing changes.

Responses

The session, as changed.

FieldTypeDescription
idstring

The session's id, ksn_….

site_idstring

The site it belongs to, kst_….

entity_idstring or null

Your own id for the customer or account the session belongs to, or null until one is set: by your page (data-entity or finic.identify()) or by your server (update_session).

entity_sourceserver, browser, null

Who set entity_id. server: your API key, which you can rely on. browser: your page, through the snippet, which is only the page's claim. null with no entity id.

statusstring

Always complete.

actorhuman, ai_agent, automation, unknown

What the visitor is taken to be: human (the page was used the way a hand uses it), ai_agent, automation, or unknown (nothing for or against yet, as on a page that has only loaded). See Verdicts.

operatorstring or null

Who runs the agent, such as OpenAI, or null. For an impersonation, the operator it claims.

productstring or null

The agent, such as ChatGPT-User, or null.

categorytraining_crawler, search_fetcher, user_triggered_agent, other_crawler, generic_automation, null

What kind of agent it is: training_crawler, search_fetcher, user_triggered_agent (it acts for a person who asked) or other_crawler; generic_automation for an HTTP library or automation tool; null when unknown.

verificationsigned, network_verified, claimed, impersonated, none

How far the claim to be an agent was checked: signed, network_verified, claimed, impersonated or none. See Verification.

confidencehigh, medium, low

How sure the verdict is. low is a hint, not a decision. See Confidence.

confidence_scorenumber

confidence as a number from 0 to 1, to two decimals: high is 0.85 to 0.99, medium 0.50 to 0.84, low 0.01 to 0.49, and unknown is 0. It is worked out from the same rules as the verdict and isn't a measured probability. See Confidence score.

reasonsarray of string

What the verdict rests on, as reason codes. New codes can be added.

networkobject

Where the address is.

ipstring

The visitor's address, from the report the verdict rests on: usually the latest.

user_agentstring

That report's user agent, cut to 400 characters.

pagestring

The page that sent it: its origin and path, without the query. Path segments that look like a token or a name are *.

reportsinteger

The number of reports the session has taken.

visitor_idstring or null

The session's visitor, kvi_…: the same id for every session of the same browser. null until the browser has been identified, usually within a second of the page loading, and when the tag has data-visitor="off".

visitorobject or null

The visitor and how this session was matched to it, or null with visitor_id.

incognitoboolean or null

Whether the browser is in a private window; null where it gives no way to tell. This and the fields down to suspect_score are the session's smart signals.

vpnboolean or null

Whether the visitor seems to be behind a VPN: the browser's clock is in another time zone than its address. null without a location for the address or a time zone from the browser.

vpn_confidencehigh, medium

With vpn: true: high when the address is also a cloud provider's or a Tor exit node, else medium.

vpn_origin_timezonestring

With vpn: true: the browser's own time zone, such as America/Toronto.

vpn_methodsobject

With a VPN verdict: what it rests on.

virtual_machineboolean

Whether the browser's graphics are a virtual machine's.

tamperingboolean

Whether the browser contradicts itself about what it is.

tampering_detailsobject
developer_toolsboolean

Whether the DevTools protocol is attached: open DevTools, or a tool driving the browser.

privacy_settingsboolean

Whether the browser hides its fingerprint: Brave, or Firefox resisting fingerprinting.

ip_infoobject

The session's address, under v4 or v6.

ip_blocklistobject
velocityobject

How busy the session's visitor was in the 5 minutes, hour and 24 hours up to the session's start, this session included. Only from get_session, and only when the session has a visitor.

suspect_scoreinteger

The smart signals added up, each by a weight. 0 is nothing unusual.

signalsobject

With signals=true: the snippet's latest report, as v, sv, page, env, input and fp. Its fields are listed under What the snippet collects.

created_atstring

When the session started.

updated_atstring

When it last reported.

request_idstring

req_…, the same as the X-Request-Id header.

Where the address is.

FieldTypeDescription
typedata_center, operator, unknown

data_center for a listed cloud provider's address, operator for an address in an agent operator's published ranges, unknown otherwise.

providerstring or null

The cloud provider or operator, or null.

rangestring or null

The published range that holds the address, such as 192.0.2.0/24, or null.

The visitor and how this session was matched to it, or null with visitor_id.

FieldTypeDescription
idstring

The same as visitor_id.

matchstored_id, fingerprint, new

How the visitor was recognised: stored_id (the id the browser kept), fingerprint (its fingerprint and network, with no stored id) or new (first seen in this session). See How a visitor is matched.

confidencehigh, medium, low

How sure it is that this session is this visitor's and nobody else's. See Confidence.

foundboolean

Whether the visitor had been seen before this session: false when match is new.

confidence_scorenumber

confidence as a number: how sure it is that the session was given the right visitor and not another browser's. 1 for stored_id and new; for fingerprint, 0.90 to 0.99 when high, 0.60 to 0.89 when medium, 0.30 to 0.59 when low, higher the more of the fingerprint agreed. Not a measured probability. See Confidence.

sessionsinteger

The number of sessions the visitor has had.

first_seen_atstring

When the visitor was first seen.

last_seen_atstring or null

When the visitor's last session before this one started. null for a new visitor.

With a VPN verdict: what it rests on.

FieldTypeDescription
timezone_mismatchboolean

The browser's time zone differs from its address's.

FieldTypeDescription
anomaly_scorenumber

The share of the five consistency checks that failed.

The session's address, under v4 or v6.

FieldTypeDescription
v4object

Where an address is and whose network it is on.

v6object

Where an address is and whose network it is on.

Where an address is and whose network it is on.

FieldTypeDescription
addressstring
geolocationobject or null

Where the address is, as near as its network says; null without a GeoIP database.

asnstring or null

The network's number, such as 64500.

asn_namestring or null
asn_networkstring or null

The range the address is in, such as 198.51.100.0/24.

datacenter_resultboolean

Whether the address is a listed cloud provider's.

datacenter_namestring or null

Where the address is, as near as its network says; null without a GeoIP database.

FieldTypeDescription
accuracy_radiusinteger

In kilometres.

latitudenumber
longitudenumber
postal_codestring
timezonestring
city_namestring
country_codestring
country_namestring
continent_codestring
continent_namestring
subdivisionsarray of object

FieldTypeDescription
iso_codestring
namestring

Where an address is and whose network it is on.

FieldTypeDescription
addressstring
geolocationobject or null

Where the address is, as near as its network says; null without a GeoIP database.

asnstring or null

The network's number, such as 64500.

asn_namestring or null
asn_networkstring or null

The range the address is in, such as 198.51.100.0/24.

datacenter_resultboolean

Whether the address is a listed cloud provider's.

datacenter_namestring or null

Where the address is, as near as its network says; null without a GeoIP database.

FieldTypeDescription
accuracy_radiusinteger

In kilometres.

latitudenumber
longitudenumber
postal_codestring
timezonestring
city_namestring
country_codestring
country_namestring
continent_codestring
continent_namestring
subdivisionsarray of object

FieldTypeDescription
iso_codestring
namestring

FieldTypeDescription
tor_nodeboolean

Whether the address is a Tor exit node.

How busy the session's visitor was in the 5 minutes, hour and 24 hours up to the session's start, this session included. Only from get_session, and only when the session has a visitor.

FieldTypeDescription
eventsobject

One count over three spans of time.

distinct_ipobject

One count over three spans of time.

distinct_entity_idobject

One count over three spans of time.

One count over three spans of time.

FieldTypeDescription
5_minutesinteger
1_hourinteger
24_hoursinteger

One count over three spans of time.

FieldTypeDescription
5_minutesinteger
1_hourinteger
24_hoursinteger

One count over three spans of time.

FieldTypeDescription
5_minutesinteger
1_hourinteger
24_hoursinteger

Examples

curl -X PATCH 'https://api.finic.ai/v1/identify/sessions/string' \  -H "Authorization: Bearer $FINIC_API_KEY" \  -H 'Content-Type: application/json' \  -d '{  "entity_id": "user_123"}'
Example Response
{  "id": "ksn_01M4Z2K8Q0V7C3N5T9XB6RHDWE",  "site_id": "kst_01M4Z1X3G5P8D2F6J0YA4SMQNC",  "entity_id": "user_123",  "entity_source": "server",  "status": "complete",  "actor": "human",  "operator": null,  "product": null,  "category": null,  "verification": "none",  "confidence": "high",  "confidence_score": 0.9,  "reasons": [    "human_like_input"  ],  "network": {    "type": "unknown",    "provider": null,    "range": null  },  "ip": "198.51.100.24",  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",  "page": "https://www.example.com/checkout",  "reports": 4,  "visitor_id": "kvi_01M4Z2Q7B3X9K5W1E8TN6GHPAD",  "visitor": {    "id": "kvi_01M4Z2Q7B3X9K5W1E8TN6GHPAD",    "match": "stored_id",    "found": true,    "confidence": "high",    "confidence_score": 1,    "sessions": 7,    "first_seen_at": "2026-11-18T09:41:07.120443Z",    "last_seen_at": "2026-11-30T20:15:42.004118Z"  },  "created_at": "2026-12-01T17:04:11.482913Z",  "updated_at": "2026-12-01T17:04:19.905127Z",  "request_id": "req_01M4Z2R6B3K9T1W5X8NC7DGHJQ"}