Get one page of a document as context for a redaction prompt.
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.
| |
|---|
| Scope | documents:read |
| Asynchronous | No |
| MCP tool | get_document_page_context |
| Portal permissions | view_page_ai_context, view_document_content, view_redaction_annotations |
Parameters
| Name | In | Type | Required | Description |
|---|
document_id | path | string | Required | |
page | query | integer | Required | The 1-based page. ≥ -2147483648; ≤ 2147483647 |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
DocumentPageContext
| Field | Type | Required | Description |
|---|
context | object | Required | 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. |
page | integer | Required | ≥ -2147483648; ≤ 2147483647 |