---
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

- **2026-04-06** `1b4365f47b75` — 3 breaking, 2 warning, 3 info
  - the `error` response's property type changed from no type to `string` for status `404`
  - removed the required property `summary/messages/items/content` from the response with the `200` status
  - removed the required property `summary/messages/items/role` from the response with the `200` status
  - removed the optional property `request_id` from the response with the `200` status
  - …4 more
- **2026-04-05** `7b79b2e349e9` — 1 breaking
  - the `summary/messages/items/content/oneOf[subschema #2]/items/image_url/url` response's property format changed from `uri` to no format for status `200`
- **2026-03-22** `2d0846e42ad4` — 1 breaking, 1 warning, 2 info
  - the `summary` response's property type changed from `string` to `object` for status `200`
  - removed the optional property `rag_stats` from the response with the `200` status
  - added the optional property `summary/conversation_turns` to the response with the `200` status
  - added the optional property `summary/messages` to the response with the `200` status
- …earlier changes not shown

[Full 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)
