Перейти к содержимому

GET /api/v1/chat/messages

Статус: GA Доступ: по токену контракт API: 0.3.0 · capability 2026-09-03.1 Открыть как Markdown Открыть в Claude Открыть в ChatGPT

List Messages

Work-chat archive — the conversational context behind a task or defect.

Read-only. is_full=false on a row means the message text is TRUNCATED (the log and the message store could not be joined) — never quote such a row as verbatim.

Авторизация: нужен Authorization: Bearer <token>

Окно терминала
curl -sS -X GET "https://entherium.duckdns.org:8443/api/v1/chat/messages" \
-H "Authorization: Bearer <token>"

В контракте нет примера для этого ответа; схема: ChatMessageListResponse. Поля — в интерактивном обозревателе.

ChatMessageListResponse — Successful Response

ПолеТипОписание
itemsмассив ChatMessageRead
limitinteger (opt.)
offsetinteger (opt.)
totalinteger
ПараметрГдеОбязателенТипПо умолчаниюОграниченияОписание
chatqueryнетstring | null——chat alias: work (the team work chat, default) or agents; or a raw chat_id
authorqueryнетstring | null——substring of the author’s display name
since_daysqueryнетinteger | null—min 1; max 365only messages from the last N days
qqueryнетstring | null——substring to search for in the message text
limitqueryнетinteger100min 1; max 500
offsetqueryнетinteger0min 0
КодСмыслТело
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError

Тело любой ошибки — {detail, code?, request_id, doc_url}: request_id — что цитировать, doc_url ведёт в Справочник ошибок.