Skip to main content
POST /v1/prompt requires only prompt. Without a document target, use it for text requests. With a target, select the access the request needs. For a read or comment request that needs an exported document, set export_document: true.

Edit an uploaded document

First upload your file and use its returned ID:
Poll GET /v1/prompt/{id}. The receipt includes status, message, changes, comments, artifacts, usage, and errors. Select an artifact by its variant, such as clean or tracked_changes, rather than assuming array order. A successful prompt can still report incomplete or a stop_reason. Inspect those fields when your workflow requires the entire instruction to be completed.

Continue work

An input is one target with exactly one file_id or eligible artifact_id. The current API supports one target, not a list of reference documents. An artifact with input_eligible: true can be used directly by another unencrypted prompt. previous_prompt_id supports eligible continuation; do not combine it with a new target. Encrypted artifacts cannot be reused directly. A new request with output encryption also cannot use artifact_id or previous_prompt_id, even if its input is plaintext. Download the plaintext and upload it as a new file first. See encryption.

TypeScript

For direct REST-shaped requests, use revise.prompts.create(body) to return immediately or revise.prompts.run(body) to wait for success. For example, a review uses document_access: "comment" and export_document: true; the high-level edit helper always requests edit access.