---
title: "Get Chat"
method: GET
path: "/api/v1/chat-explore/chats/{id}"
tags: ["Chat Explore"]
---

# Get Chat

`GET /api/v1/chat-explore/chats/{id}`

Retrieves a chat by id.

## Path parameters

- `id` string, required

## Query parameters

- `image_format` 'base64_png' | 'plotly_json'

## Response `200`

Successful Response

- ApiBaseChatRecord
  - `_owner` string, required — Foreign key to the user this object belongs to.
  - `_org` string, required — Foreign key to the organization this object belongs to.
  - `messages` APIChatMessage[], required — List of messages in the chat.
    - `role` 'user' | 'assistant', required
    - `content` string, required — The text content of this message.
    - `images` union[] — List of images for this message (potentially of length zero). May be exposed either as a base64 string or as stringified Plotly JSON, typically if the user requested it as such.
      - union
        - string
        - object
    - `table` object[], nullable — If there exists a table for this message, this will be set to a list of objects/records, where each record has a key of the column name and a value for that row's corresponding value for the column.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/akkio/apis/fastapi.md) · [All operations](https://skmtc.net/akkio/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akkio/fastapi/versions/6662a407c637/schema)
