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. 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. Only this call sets it: the snippet can't, so a browser can't claim to be someone else's session. 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 you set one. The snippet never sets it.

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.

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.

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.

sessionsinteger

The number of sessions the visitor has had.

first_seen_atstring

When the visitor was first seen.

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",  "status": "complete",  "actor": "human",  "operator": null,  "product": null,  "category": null,  "verification": "none",  "confidence": "high",  "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",    "confidence": "high",    "sessions": 7,    "first_seen_at": "2026-11-18T09:41:07.120443Z"  },  "created_at": "2026-12-01T17:04:11.482913Z",  "updated_at": "2026-12-01T17:04:19.905127Z",  "request_id": "req_01M4Z2R6B3K9T1W5X8NC7DGHJQ"}