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

Get one page of a document as context for a redaction prompt.

GET/api/v1/documents/{document_id}/page-contextdocuments:read
注記

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

The page's image (base64 PNG, existing redactions drawn on), its text blocks with normalised boxes and a coordinate hint: what the Auto Redact chat shows a model for a follow-up prompt. The page is the page query member, from 1. A document with no file or no PDF is 409. Needs View Page Ai Context, View Document Content, View Redaction Annotations and access to the document.

スコープdocuments:read
非同期いいえ
MCP ツールget_document_page_context
Portal の権限view_page_ai_context, view_document_content, view_redaction_annotations

パラメーター​

名前場所型必須説明
document_idpathstring必須
pagequeryinteger必須The 1-based page. ≥ -2147483648; ≤ 2147483647
Docwize-Versionheaderstring (date)任意
If-None-Matchheaderstring任意Answers 304 when the representation is unchanged (resources that publish an ETag).

応答​

ステータス説明本文
200Success.application/json DocumentPageContext
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
409conflictapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

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

スキーマ​

DocumentPageContext​

フィールド型必須説明
contextobject必須The Portal's page context, format document_page_context: the page image (base64 PNG) with the existing redactions drawn on, the text blocks with normalised boxes (0 to 1), the page count and a coordinate hint.
pageinteger必須≥ -2147483648; ≤ 2147483647