メインコンテンツへスキップ
GET
/
messages
Error
A valid request URL is required to generate request examples
{
  "limit": 123,
  "has_more": true,
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "inputs": {},
      "query": "<string>",
      "answer": "<string>",
      "message_files": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "type": "<string>",
          "url": "<string>",
          "belongs_to": "user"
        }
      ],
      "feedback": {
        "rating": "like"
      },
      "retriever_resources": [
        {
          "position": 123,
          "dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "dataset_name": "<string>",
          "document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "document_name": "<string>",
          "segment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "score": 123,
          "content": "<string>"
        }
      ],
      "created_at": 123
    }
  ]
}

承認

Authorization
string
header
必須

API キー認証。

クエリパラメータ

conversation_id
string
必須

会話 ID。

user
string
必須

ユーザー識別子。注意: Service API は WebApp で作成された会話を共有しません。API を通じて作成された会話は、WebApp インターフェースで作成された会話とは分離されています。

first_id
string

現在のページの最初のチャット記録の ID(ページネーション用)。

limit
integer
デフォルト:20

1ページあたりのアイテム数。

レスポンス

200 - application/json

会話履歴を正常に取得しました。

limit
integer
has_more
boolean
data
object[]