---
title: "List chat messages"
method: GET
path: "/chats/{chat_id}/messages"
tags: ["Chats"]
---

# List chat messages

`GET /chats/{chat_id}/messages`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/chats/{chat_id}/messages`
- Auth: API key in header `Authorization`

A chat's messages, newest first: what was asked and what the agent answered, without tool calls.

## Path parameters

- `chat_id` string, required

## Query parameters

- `starting_after` string
- `created` union
  - integer: Unix seconds, exact match
  - string: Unix seconds or an ISO 8601 time, exact match
  - object
    - `gt` union
      - integer: Unix seconds
      - string: Unix seconds or an ISO 8601 time
    - `gte` union
      - integer: Unix seconds
      - string: Unix seconds or an ISO 8601 time
    - `lt` union
      - integer: Unix seconds
      - string: Unix seconds or an ISO 8601 time
    - `lte` union
      - integer: Unix seconds
      - string: Unix seconds or an ISO 8601 time
- `limit` integer

## Response `200`

A page of messages

- ListResponseChatMessage
  - `object` 'list', required
  - `data` ChatMessage[], required
    - `object` string, required
    - `id` string, required
    - `role` 'user' | 'assistant', required
    - `content` string, required
    - `created_at` string, required
  - `has_more` boolean, required
  - `url` string, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `429`: Rate limit exceeded — 600 requests per minute per owner on the free tier: every API key and OAuth token one person holds on an account shares one budget, and the account's team keys share another. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

## Changes

- **2026-11-15** `56c22ab9b282`: 6 warning
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `400`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `401`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `403`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `404`
  - …2 more
- **2026-11-13** `4ed07d37608f`: 1 info
  - added the new optional `query` request parameter `created`
- **2026-10-23** `bf736a72ee9c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/crevio/apis/crevio-api-v1/changes/chats/:chat_id/messages/get.md)

---

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