Document AI — DMS

Batch-process documents (AI-DMS)

Triggers AI-DMS processing for multiple documents simultaneously. Max 50 POFIDs per batch. Each document is processed asynchronously via OCR, Entity Extraction, Classification, etc.

post/documents/document-batch-process

Request

  • Base URL: https://api.paperoffice.ai/latest
  • URL: https://api.paperoffice.ai/latest/documents/document-batch-process
  • Auth: HTTP bearer

Request body

pofidsstring[] required

Array of POFIDs to process (max 50)

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

AI-DMS processing tier: basic (OCR + classification), premium (+ entity extraction), ultra (+ deep analysis)

confirmboolean

Required for bulk (>5 POFIDs) or mode=instant — MCP matches the API.

confirm_tier_downgradeboolean

Required when ai_dms_tier is lower than the document's current tier (downgrade). MCP ≡ API.

confirm_reprocessboolean

Required when ai_dms_tier equals the current tier and the document was successfully processed before (same-tier reprocess). MCP ≡ API.

processing_lane'no_sla' | 'sla_24h' | 'sla_12h' | 'sla_6h' | 'sla_1h' | 'instant'

Start-SLA lane (wait-to-start guarantee, not completion). Values: no_sla (fair use ×1), sla_24h (×1.5), sla_12h (×2), sla_6h (×3), sla_1h (×4), instant (×5 interactive start). Prefer this over legacy numeric priority. If omitted: workspace default_processing_lane, else no_sla.

Response

Success

status'success' | 'partial_success' | 'error'
messagestring
ai_dms_tierstring

Tier used (basic, premium, ultra)

queued_countinteger

Number of queued documents

reset_countinteger

Number of reset documents (re-processing)

not_foundstring[]

POFIDs not found

not_found_countinteger
error_countinteger
processing_timestring
skipped_legal_hold_countinteger

Count of documents skipped due to legal hold

Changes

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