メインコンテンツへスキップ
GET
/
datasets
/
{dataset_id}
/
documents
/
{document_id}
/
segments
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "position": 123,
      "document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "content": "<string>",
      "answer": "<string>",
      "word_count": 123,
      "tokens": 123,
      "keywords": [
        "<string>"
      ],
      "index_node_id": "<string>",
      "index_node_hash": "<string>",
      "hit_count": 123,
      "enabled": true,
      "disabled_at": 123,
      "disabled_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "<string>",
      "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": 123,
      "indexing_at": 123,
      "completed_at": 123,
      "error": "<string>",
      "stopped_at": 123
    }
  ],
  "doc_form": "<string>",
  "has_more": true,
  "limit": 123,
  "total": 123,
  "page": 123
}

Authorizations

Authorization
string
header
required

APIキー認証。すべてのAPIリクエストにおいて、Authorization HTTPヘッダーにAPIキーを含めてください。形式:Bearer {API_KEY}。APIキーの漏洩を防ぐため、APIキーはクライアント側で共有または保存せず、サーバー側で保存することを強くお勧めします。

Path Parameters

dataset_id
string<uuid>
required

ナレッジベースのID。

document_id
string<uuid>
required

ドキュメントのID。

Query Parameters

keyword
string

コンテンツでセグメントをフィルタするキーワード。

status
string

インデックス化ステータスでセグメントをフィルタ。

Example:

"completed"

page
integer
default:1

ページネーションのページ番号。

limit
integer
default:20

1ページあたりに返すアイテム数。

Required range: 1 <= x <= 100

Response

200 - application/json

セグメントのページネーションリスト。

data
object[]
doc_form
string
has_more
boolean
limit
integer
total
integer
page
integer