---
title: "加载消息历史"
method: GET
path: "/messages/{session_id}/load"
tags: ["消息"]
---

# 加载消息历史

`GET /messages/{session_id}/load`

加载会话的消息历史，支持分页和时间筛选

## Path parameters

- `session_id` string, required

## Query parameters

- `limit` integer
- `before_time` string
- `resource_urls` 'handle' | 'public'

## Response `200`

消息列表

- object

## Other responses

- `400` — 请求参数错误

## Changes

- **2026-08-05** `c6545df0245a` — 1 info
  - added the new optional `query` request parameter `resource_urls`
- **2026-08-04** `b7f2bdf06b82` — 1 warning
  - deleted the `query` request parameter `resource_urls`
- **2026-08-04** `d64e4f1231f6` — 1 info
  - added the new optional `query` request parameter `resource_urls`
- **2025-12-22** `e625bcd5b8b9` — 1 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
- **2025-12-16** `edf61e68559d` — 1 info
  - the endpoint scheme security `ApiKeyAuth` was removed from the API

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/messages/:session_id/load/get.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/a5ce73ad8921/schema)
