---
title: "Get Visitor Context"
method: GET
path: "/api/livechat/visitor-context/{thread_id}"
tags: ["livechat", "livechat"]
---

# Get Visitor Context

`GET /api/livechat/visitor-context/{thread_id}`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/livechat/visitor-context/{thread_id}`
- Auth: none declared

Get visitor context for a livechat thread (for operators).

Returns page context, language, timezone, and current page URL.
Requires authentication - operators can only see their own threads.

## Path parameters

- `thread_id` integer, required

## Response `200`

Successful Response

- VisitorContextResponse: Response with visitor context information.
  - `visitor_id` string, nullable
  - `page_context` object, nullable
  - `page_url` string, nullable
  - `created_at` string, nullable
  - `session_active` boolean
  - `session_expired` boolean
  - `location` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
