Document AI — DMS

Create Document with Creator Agent

Create and store the document of a Creator Agent in the DMS.

post/document_generation/creator-agent-run

Request

  • Base URL: https://api.paperoffice.ai/latest
  • URL: https://api.paperoffice.ai/latest/document_generation/creator-agent-run
  • Auth: HTTP bearer

Request body

agent_idstring required

Creator Agent ID.

preview_tokenstring

Token from po_documents_creator_agent_preview (or from a NEEDS_INPUT / CONFIRMATION_REQUIRED response).

confirmboolean

Must be true to create the document. Only set after the user approved the preview.

variablesobject

Answers to questions or corrections; merged over the preview values.

promptstring

Direct run only: the request.

workspace_idinteger

Target workspace (default: preview/agent configuration).

titlestring

Document title (placeholders allowed).

ai_dms_tier'basic' | 'premium' | 'ultra'

Classify the stored document with AI-DMS at this tier (billed separately).

idempotency_keystring

Direct run in auto mode: retry-safe key. Ignored with preview_token (the token is the key).

accept_open_questionsboolean

Create the document although blocking questions of the preview are unanswered (e.g. leave out an item without price). Only set after the user agreed.

Response

Success

status'success' required
_billingobject

Changes

No recorded changes to this operation across all 1 revision of this API.