---
title: "Chat Messages"
method: GET
path: "/v1/chat/messages"
tags: ["chat", "chat"]
---

# Chat Messages

`GET /v1/chat/messages`

## Request

- Base URL: `https://api.vlm.run` (the document declares no server; this is the origin it was published from)
- URL: `https://api.vlm.run/v1/chat/messages`
- Auth: HTTP bearer

Get the chat messages or history for a session.

Supports both authenticated and public (unauthenticated) requests.
- Authenticated users can access their own chats or public chats
- Guest users can only access public chats
- Superusers can access any chat
- Token-bearing sessions require a matching session_token for non-owner access

## Query parameters

- `session_id` string, required

## Headers

- `X-Session-Token` string, nullable

## Response `200`

Successful Response

- ChatHistory
  - `messages` Message[], required
    - `role` 'user' | 'assistant' | 'system' | 'developer' | 'tool'
    - `content` union
      - string
      - MessageContent[]
        - `type` 'text' | 'image_url' | 'video_url' | 'audio_url' | 'file_url' | 'input_file', required
        - `text` string, nullable
        - `image_url` union
          - MessageContentImageUrl
            - `url` string, required
            - `detail` 'auto' | 'low' | 'high'
          - string
        - `video_url` MessageContentVideoUrl
          - `url` string, required
        - `audio_url` MessageContentAudioUrl
          - `url` string, required
        - `file_url` MessageContentFileUrl
          - `url` string, required
        - `file_id` string, nullable
    - `name` string, nullable
    - `tool_call_id` string, nullable
    - `tool_calls` ChatCompletionMessageFunctionToolCallParam[], nullable
      - `id` string, required
      - `function` Function, required: The function that the model called.
        - `arguments` string, required
        - `name` string, required
      - `type` 'function', required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `media_token` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/vlm/apis/vlm-run-unified-server.md) · [All operations](https://skmtc.dev/vlm/apis/vlm-run-unified-server/llms.txt) · [OpenAPI document](https://skmtc.dev/vlm/apis/vlm-run-unified-server/revisions/4a68ab36546b?raw)
