---
title: "Run DMS document analysis"
method: POST
path: "/documents/document-analysis"
tags: ["Document AI — DMS"]
---

# Run DMS document analysis

`POST /documents/document-analysis`

## Request

- Base URL: `https://api.paperoffice.ai/latest`
- URL: `https://api.paperoffice.ai/latest/documents/document-analysis`
- Auth: HTTP bearer

Document Analysis DMS General document classification and metadata extraction. Fields: document_type, date, sender, recipient, subject, keywords## Request parameters Authenticate with your Bearer token.

## Response `200`

Success

- object: DMS document analysis — classification and metadata
  - `status` 'success' | 'error', required: HTTP-Level Status
  - `job_id` string, required
  - `message` string: Human-readable status message
  - `pipeline` string: Name of the executed pipeline
  - `operation` string: Executed operation
  - `processing_time` string: Total processing time including queue (format: 123.45ms)
  - `result` object, required: The actual processing result
    - `status` 'completed' | 'failed' | 'timeout': Job-Level Status
    - `message` string: Pipeline-specific status message
    - `duration_ms` string: Pure pipeline processing time in ms
    - `output` object: Output
      - `document_keywords` string[]
      - `document_name` string
      - `document_type_classification` string
      - `document_save_paths` string[]
      - `document_summary_short` string

## Other responses

- `4XX`: Error
- `5XX`: Error

---

[API](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api.md) · [All operations](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/revisions/c6a6228a4509?raw)
