メインコンテンツまでスキップ

Get a document's extracted text.

GET/api/v1/documents/{document_id}/textdocuments:read
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

The text of the newest extraction of the document's current file, with its page breaks. Needs View Document Text; View Document Versions permits a fallback to an archived file. 404 when the document has no extracted text the caller may read.

スコープdocuments:read
非同期いいえ
MCP ツールget_document_text
Portal の権限view_document_text
会社に必要な機能text

パラメーター​

名前場所型必須説明
document_idpathstring必須
Docwize-Versionheaderstring (date)任意
If-None-Matchheaderstring任意Answers 304 when the representation is unchanged (resources that publish an ETag).

応答​

ステータス説明本文
200Success.application/json DocumentText
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422unsupported_for_tenant, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

DocumentText​

フィールド型必須説明
document_idstring必須
image_namestring必須The stored file the text was extracted from.
is_currentboolean必須Whether that file is the document's current file (the newest extraction is preferred).
page_breaksDocumentTextPageBreak の配列必須
textstring必須

DocumentTextPageBreak​

フィールド型必須説明
endinteger必須≥ -2147483648; ≤ 2147483647
indexinteger必須≥ -2147483648; ≤ 2147483647
startinteger必須≥ -2147483648; ≤ 2147483647