---
title: "Get Chat Messages"
method: GET
path: "/api/chats/{chat_id}/messages"
tags: ["chatbot"]
---

# Get Chat Messages

`GET /api/chats/{chat_id}/messages`

Get messages for a specific chat

Args:
    chat_id: The chat ID
    current_user: Authenticated user from dependency injection
    recent: If True, returns the most recent N messages. If False (default), returns oldest N messages.
    limit: Maximum number of messages to return (default 100)

## Path parameters

- `chat_id` string, required

## Query parameters

- `recent` boolean
- `limit` integer

## Headers

- `x-user-id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/usecreed/apis/creed-api.md) · [All operations](https://skmtc.net/usecreed/apis/creed-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usecreed/creed-api/revisions/39e293adecd1/schema)
