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.
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
| Field | Type | Description |
|---|---|---|
idrequired | string | The session's |
Request body
application/json
| Field | Type | Description |
|---|---|---|
entity_id | string or null | Your id for the customer or account, 1 to 128 characters with no control characters. Spaces around it are dropped. |
Responses
The session, as changed.
| Field | Type | Description |
|---|---|---|
id | string | The session's id, |
site_id | string | The site it belongs to, |
entity_id | string or null | Your own id for the customer or account the session belongs to, or |
status | string | Always |
actor | human, ai_agent, automation, unknown | What the visitor is taken to be: |
operator | string or null | Who runs the agent, such as |
product | string or null | The agent, such as |
category | training_crawler, search_fetcher, user_triggered_agent, other_crawler, generic_automation, null | What kind of agent it is: |
verification | signed, network_verified, claimed, impersonated, none | How far the claim to be an agent was checked: |
confidence | high, medium, low | How sure the verdict is. |
reasons | array of string | What the verdict rests on, as reason codes. New codes can be added. |
network | object | Where the address is. |
ip | string | The visitor's address, from the report the verdict rests on: usually the latest. |
user_agent | string | That report's user agent, cut to 400 characters. |
page | string | The page that sent it: its origin and path, without the query. Path segments that look like a token or a name are |
reports | integer | The number of reports the session has taken. |
visitor_id | string or null | The session's visitor, |
visitor | object or null | The visitor and how this session was matched to it, or |
signals | object | With |
created_at | string | When the session started. |
updated_at | string | When it last reported. |
request_id | string |
|
Where the address is.
| Field | Type | Description |
|---|---|---|
type | data_center, operator, unknown |
|
provider | string or null | The cloud provider or operator, or |
range | string or null | The published range that holds the address, such as |
The visitor and how this session was matched to it, or null with visitor_id.
| Field | Type | Description |
|---|---|---|
id | string | The same as |
match | stored_id, fingerprint, new | How the visitor was recognised: |
confidence | high, medium, low | How sure it is that this session is this visitor's and nobody else's. See Confidence. |
sessions | integer | The number of sessions the visitor has had. |
first_seen_at | string | When the visitor was first seen. |
| Status | Type and when |
|---|---|
400 |
|
401 |
|
404 |
|
429 |
|
Every error has the same shape; see Errors.
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"}'{ "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"}