---
title: "Fetch messages from a chatroom the user belongs to."
method: POST
path: "/v1/get_chatroom_messages"
tags: ["Chatrooms"]
---

# Fetch messages from a chatroom the user belongs to.

`POST /v1/get_chatroom_messages`

## Request

- Base URL: `https://partner.mindupload.app`
- URL: `https://partner.mindupload.app/v1/get_chatroom_messages`
- Auth: API key in header `X-Partner-Key`

## Request body

- object
  - `preferred_language` string, nullable: BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages.
  - `page` integer, nullable
  - `page_size` integer: Maximum records requested for one server-capped page.
  - `sort_by` string, nullable
  - `sort_order` integer, nullable: Sort direction; supported values depend on the operation.
  - `use_cursor_pagination` boolean, nullable
  - `cursor_value` string, nullable: Opaque pagination cursor value from the previous page (`next_cursor_value`).
  - `cursor_id` string, nullable: Opaque pagination cursor id from the previous page (`next_cursor_id`).
  - `username` string, nullable: The end-user's username.
  - `password` string, nullable: The end-user's password on first sign-in. After login/register, send the returned session token (JWT) here instead — the field accepts either, and reusing the token keeps raw passwords out of your storage.
  - `chatroom_id` string, nullable: Chatroom id as returned by chatroom operations.
  - `since_value` number, nullable
  - `since_id` string, nullable

## Response `200`

Result envelope — check the success field.

- object
  - `success` boolean: Whether the call succeeded.
  - `error_message` string, nullable: Human-readable reason when success is false.
  - `error_code` string
  - `total_count` integer, nullable
  - `page` integer, nullable
  - `page_size` integer, nullable: Maximum records requested for one server-capped page.
  - `total_pages` integer, nullable
  - `has_next` boolean, nullable: True when another page is available after this response.
  - `has_prev` boolean, nullable
  - `next_cursor_value` string, nullable: Pass as `cursor_value` on the next page request.
  - `next_cursor_id` string, nullable: Pass as `cursor_id` on the next page request.
  - `messages` object[], nullable: Chatroom messages returned by this operation.
  - `media_thumbnails` object, nullable: Mapping from an external media URL in a result to its preferred display URL (normally a retained thumbnail).
  - `media_fallbacks` object, nullable: Mapping from a provably expired signed image URL to a safe legacy display candidate.
  - `since_overflow` boolean, nullable

## Other responses

- `400`: Invalid request payload.
- `401`: Missing or invalid partner key.
- `403`: Partner is not authorized for this operation.
- `429`: Rate limit exceeded — retry later.
- `500`: Internal server error.

---

[API](https://skmtc.dev/mindupload/apis/mind-upload-partner-api.md) · [All operations](https://skmtc.dev/mindupload/apis/mind-upload-partner-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mindupload/apis/mind-upload-partner-api/revisions/0371bdf78533?raw)
