Documents

文書の取得

反映の状態は current_revision(公開中の版)と head_revision(最新の版)で確かめる。書き込みの応答の revision_id が current_revision.id になれば公開されている

get/knowledge/documents/{document_id}

Request

  • Base URL: https://api.leafchat.app/api/v1
  • URL: https://api.leafchat.app/api/v1/knowledge/documents/{document_id}
  • Auth: HTTP bearer

Path parameters

document_idstring required
Example:p3l8n1b6v9c2x5z7m0q4w8e1

Response

文書

idstring required
source_idstring required
external_idstring nullable required
folder_idstring nullable required

null はフォルダに割り当てる前に登録した文書。サイト別の出し分けを有効にすると既定のフォルダに入る

filenamestring required
mimestring nullable required
sizeinteger nullable required
status'processing' | 'pending' | 'ready' | 'error' required
created_atstring date-time required
updated_atstring date-time required

内容の更新日時。公開中の版(無ければ head_revision)の内容を受け付けた時刻。フォルダの移動・状態の変化・システムの取り込み直しでは変わらない

Example response

{
  "current_revision": {
    "created_at": "2026-09-29T02:31:07.000Z"
  },
  "head_revision": {
    "created_at": "2026-09-29T02:31:07.000Z"
  },
  "created_at": "2026-09-29T02:31:07.000Z",
  "updated_at": "2026-09-29T02:31:07.000Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.