# get_session (/kya/reference/get-session)



See [Verdicts](/kya/verdicts) for how to read it. Anyone can send a `kya_session` cookie: before you rely on a session, check that its `ip` and `user_agent` match the request in front of you.

## GET https://api.finic.ai/v1/kya/sessions/{id}

Gets one session's [verdict](/kya/verdicts): what the visitor's browser is taken to be, how sure that is and why. The session's id is in the `kya_session` cookie on requests to your site, and in `window.kya.session` on the page. A verdict changes as the page is used, so read it when you need it.

Authorization: `Bearer <API key>` (see [Authentication](/authentication)).
- Path parameter `id`: The session's `id`, `ksn_…`.
- Query parameter `signals`: `true` adds `signals`, the snippet's latest report.

### Responses

- **200**: The session.

| Field | Type | Always | Description |
| --- | --- | --- | --- |
| `id` | string | yes | The session's id, `ksn_…`. |
| `site_id` | string | yes | The site it belongs to, `kst_…`. |
| `status` | string | yes | Always `complete`. |
| `actor` | `human`, `ai_agent`, `automation`, `unknown` | yes | 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](/kya/verdicts). |
| `operator` | string or null | yes | Who runs the agent, such as `OpenAI`, or `null`. For an impersonation, the operator it claims. |
| `product` | string or null | yes | The agent, such as `ChatGPT-User`, or `null`. |
| `category` | `training_crawler`, `search_fetcher`, `user_triggered_agent`, `other_crawler`, `generic_automation`, `null` | yes | 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. |
| `verification` | `signed`, `network_verified`, `claimed`, `impersonated`, `none` | yes | How far the claim to be an agent was checked: `signed`, `network_verified`, `claimed`, `impersonated` or `none`. See [Verification](/kya/verdicts#verification). |
| `confidence` | `high`, `medium`, `low` | yes | How sure the verdict is. `low` is a hint, not a decision. See [Confidence](/kya/verdicts#confidence). |
| `reasons` | array of string | yes | What the verdict rests on, as [reason codes](/kya/verdicts#reason-codes). New codes can be added. |
| `network` | object | yes | Where the address is. |
| `ip` | string | yes | The visitor's address, from the report the verdict rests on: usually the latest. |
| `user_agent` | string | yes | That report's user agent, cut to 400 characters. |
| `page` | string | yes | 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 | yes | The number of reports the session has taken. |
| `signals` | object |  | With `signals=true`: the snippet's latest report, as `v`, `sv`, `page`, `env` and `input`. Its fields are listed under [What the snippet collects](/kya/data#what-the-snippet-collects). |
| `created_at` | string | yes | When the session started. |
| `updated_at` | string | yes | When it last reported. |
| `request_id` | string |  | `req_…`, the same as the `X-Request-Id` header. |
| `network.type` | `data_center`, `operator`, `unknown` | yes | `data_center` for a listed cloud provider's address, `operator` for an address in an agent operator's published ranges, `unknown` otherwise. |
| `network.provider` | string or null | yes | The cloud provider or operator, or `null`. |
| `network.range` | string or null | yes | The published range that holds the address, such as `192.0.2.0/24`, or `null`. |

```json
{
  "id": "ksn_01M4Z2K8Q0V7C3N5T9XB6RHDWE",
  "site_id": "kst_01M4Z1X3G5P8D2F6J0YA4SMQNC",
  "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,
  "created_at": "2026-12-01T17:04:11.482913Z",
  "updated_at": "2026-12-01T17:04:19.905127Z",
  "request_id": "req_01M4Z2M1T6W9E3R7Y5VA8PKGHB"
}
```

- **401**: `authentication_error`: the API key is missing, unknown, revoked or expired.

- **404**: `not_found`: no session with this `id` in your organization. Sessions are deleted after 30 days.

- **429**: `rate_limited`: over KYA's [request rate](/kya/reference#limits) for the organization, 50 a second. Retry with backoff.
