AI Ready · Document API v2

The document endpoint for AI agents.

Your agent creates the content. PasteToPrint turns it into a structured, human-reviewable document — ready to edit, draw on, print or export.

  • Validated against PTDF 1.0
  • Temporary · private · review first
  • You control printing and export
POST/api/v2/documents201 Created
{
  "document": {
    "schemaVersion": "ptp.document/1",
    "blocks": [
      { "type": "heading", "level": 1, "text": "Report" },
      { "type": "paragraph", "text": "..." }
    ]
  }
}

Structured JSON in→Editor URL out

From AI content to an editable document

One endpoint. A complete handoff.

Give users a structured document they can review, edit and finish in their browser.

01

Agent generates

The model emits semantic PTDF blocks: headings, paragraphs, lists, tables and more.

02

PasteToPrint prepares

The API validates the document, applies the requested or default template and creates a temporary session.

03

Human finishes

The user reviews the document, confirms the import when required, then edits text, adds drawings, shapes or images, and chooses when to print or export.

Integration options

Use the interface your agent already supports.

Each integration uses validated PTDF documents and lets the user review and edit the result in PasteToPrint.

Human-controlled output

Let AI create the content.
Let people own the document.

Managed PTDF can fill an empty editor with Undo available. An editor that already contains content requires import confirmation. Printing and export always require a user action.

Integration guide