---
title: "Get History"
method: GET
path: "/api/v1/agents/{system}/{entity_id}/history"
tags: ["v1", "Agent Chat", "agent-chat"]
---

# Get History

`GET /api/v1/agents/{system}/{entity_id}/history`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/agents/{system}/{entity_id}/history`
- Auth: none declared

Get conversation history from PostgresSaver checkpoint. Returns empty list for new threads or on checkpointer errors.
For shop, thread is resolved from session (shop_id + user + instance_id query).

By default, AI messages tagged ``skip_in_history=True`` are omitted.
These are responses the agent flagged at write time as poison
candidates (apology after a tool-side error). They remain in the
LangGraph checkpoint state for audit; pass ``include_skipped=true``
to see them.

## Path parameters

- `system` string, required
- `entity_id` string, required

## Query parameters

- `instance_id` string: Chat instance id (default 'default'). Shop: per-user tab. Estimator/project_manager: additional tabs on the same quote/project.
- `include_skipped` boolean: Admin/debug only. When true, surface AI messages tagged additional_kwargs.skip_in_history=True (typically tool-error apologies hidden from normal users to prevent pattern-anchoring in future turns). Default false.

## Response `200`

Successful Response

- HistoryResponse
  - `messages` object[], required
  - `legacy_notice` string, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-20** `9eebba4f395d`: 1 info
  - added the optional property `legacy_notice` to the response with the `200` status

[Operation history](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/changes/api/v1/agents/:system/:entity_id/history/get.md)

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
