---
title: "Complete task"
method: POST
path: "/workflow_tasks/complete"
tags: ["Document AI — Tasks & Substitutes"]
---

# Complete task

`POST /workflow_tasks/complete`

## Request

- Base URL: `https://api.paperoffice.ai/latest`
- URL: `https://api.paperoffice.ai/latest/workflow_tasks/complete`
- Auth: HTTP bearer

Complete a workflow or human task. Identify the task with one of task_uuid, task_id or uuid. Optional: result (object, stored as the task result), comment (audit trail) and claim_session_id (when the task is claimed).

## Response `200`

Success

- object: Aufgabe abschliessen
  - `status` 'success' | 'error', required: HTTP-Level Status
  - `job_id` string, required
  - `message` string: Menschenlesbare Statusmeldung
  - `pipeline` string
  - `operation` string: Ausgefuehrte Operation
  - `processing_time` string: Gesamte Verarbeitungszeit inkl. Queue (Format: 123.45ms)
  - `result` object, required: Das eigentliche Verarbeitungsergebnis
    - `status` 'completed' | 'failed' | 'timeout': Job-Level Status
    - `message` string: Pipeline-spezifische Statusmeldung
    - `duration_ms` string: Reine Pipeline-Verarbeitungszeit in ms
    - `output` object
      - `completed` boolean
      - `task_id` string
      - `decision` string: Entscheidung (approve/reject/custom)
      - `workflow_continued` boolean

## 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)
