---
title: "Get session and chat history"
method: GET
path: "/api/session/{session_id}"
tags: ["Sessions"]
---

# Get session and chat history

`GET /api/session/{session_id}`

Returns session info and full conversation history (messages array).

## Path parameters

- `session_id` string, required

## Response `200`

Session info

- object
  - `session_id` string
  - `query` string
  - `summary` object
    - `messages` object[]
    - `conversation_turns` integer

## Other responses

- `401` — API key required
- `403` — Invalid API key
- `404` — Session not found

## Changes

> 9 revisions in range; 6 could not be searched.

- **2026-03-17** `2486dd6cc627` — 3 breaking, 2 warning, 5 info
  - added `subschema #1, subschema #2` to the `error` response property `oneOf` list for the response status `404`
  - the `error` response's property type/format changed from `string`/`` to ``/`` for status `404`
  - the `summary` response's property type/format changed from `object`/`` to `string`/`` for status `200`
  - removed the optional property `summary/conversation_turns` from the response with the `200` status
  - …6 more

[Change history](https://skmtc.dev/elixpo/apis/lixsearch-api/changes/api/session/:session_id/get.md)

---

[API](https://skmtc.dev/elixpo/apis/lixsearch-api.md) · [All operations](https://skmtc.dev/elixpo/apis/lixsearch-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/elixpo/lixsearch-api/revisions/c3fcd0edadf8/schema)
