---
title: "history"
method: GET
path: "/api/chats/{id}/history"
tags: ["Chat"]
---

# history

`GET /api/chats/{id}/history`

## Path parameters

- `id` string, required

## Response `200`

createArtifact call creates an artifact

- object
  - `data` object[], required
    - `input` string, nullable
    - `at` string, required
    - `tool` object, nullable
      - `id` string, required
      - `functionName` string, required
      - `functionArguments` string, required
      - `content` string, required
      - `status` string, required
      - `output` object
        - `name` string, required
      - `targetKnowledgeBase` object
        - `id` string, required
        - `name` string, required
      - `targetFunction` string
      - `toolTarget` object
        - `id` string, required
        - `type` string, required
        - `name` string, required
      - `targetAgent` object
        - `id` string, required
        - `name` string, required
      - `newChat` object
        - `id` string, required
    - `output` object, nullable
      - `name` string, required
      - `content` string, required
    - `content` string, nullable
    - `artifact` object, nullable
      - `id` string, required
      - `output` string, required
      - `chatId` string, required
      - `contentType` string, required
      - `artifactType` string, required
      - `chatFilePathPrefix` string
      - `experimentalArtifactId` string
    - `reasoning` string, nullable

---

[API](https://skmtc.net/treasure/apis/llm-api.md) · [All operations](https://skmtc.net/treasure/apis/llm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/treasure/llm-api/revisions/56f275763358/schema)
