---
title: "Get Messages"
method: GET
path: "/companies/{company_id}/chat/messages"
tags: ["chat"]
---

# Get Messages

`GET /companies/{company_id}/chat/messages`

## Request

- Base URL: `https://api.nanocorp.so` (the document declares no server; this is the origin it was published from)
- URL: `https://api.nanocorp.so/companies/{company_id}/chat/messages`
- Auth: HTTP bearer

Get message history for a company's chat thread.

## Path parameters

- `company_id` string, uuid, required

## Response `200`

Successful Response

- MessageListResponse
  - `messages` ChatMessageResponse[], required
    - `id` string, required
    - `role` string, required
    - `content` string, required
    - `tool_calls` ToolCallInfo[], nullable
      - `name` string, required
      - `input` object, required
      - `result` union
        - object
        - string
    - `token_count_input` integer, nullable
    - `token_count_output` integer, nullable
    - `cost_usd` number, nullable
    - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/nanocorp/apis/nanocorp-api.md) - [All operations](https://skmtc.dev/nanocorp/apis/nanocorp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nanocorp/apis/nanocorp-api/revisions/291bb76b720b?raw)
