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
  • Confirmation required
POST/api/v2/documents201 Created
{
  "document": {
    "version": "ptp.document/1",
    "blocks": [
      { "type": "heading", "text": "Report" },
      { "type": "paragraph", "text": "..." }
    ]
  }
}

Structured JSON inEditor URL out

A standard destination for generated documents

One endpoint. A complete handoff.

Instead of returning a wall of text, give the user a real document they can inspect and finish in a browser.

01

Agent generates

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

02

PasteToPrint prepares

The API validates the payload, selects a safe template and creates a temporary session.

03

Human finishes

The user reviews the result, confirms the import, then edits text, draws directly on the page, adds shapes or image layers, prints or exports it.

Integration surface

Use the interface your agent already speaks.

Every path converges on the same validated PTDF document and the same human-controlled editor handoff.

Human-controlled output

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

Managed PTDF may fill only an empty editor with Undo; print and export never start automatically.

Technical specification