---
title: "Approve or reject an agent review task (#3813)"
method: POST
path: "/accountant/tasks/{taskId}/decision"
tags: ["Accountant Portal"]
---

# Approve or reject an agent review task (#3813)

`POST /accountant/tasks/{taskId}/decision`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/tasks/{taskId}/decision`
- Auth: HTTP bearer

A signed-in person's decision on an `agent_review` task: `approved`, or `rejected` with a `reason`. The reason is required to reject and optional to approve. The same write completes the task and records the decision, the reason, who decided and when. The agent reads them back from GET /accountant/tasks for its next attempt at the item. A task is decided once; a second decision answers 409. Only the task's owner, or a human super-admin, may decide it. Every API key is refused, the agent's service token included, so the agent never decides its own proposal. Any other task type answers 422.

## Path parameters

- `taskId` string, uuid, required

## Request body

- object
  - `decision` 'approved' | 'rejected', required
  - `reason` string: Required when rejecting.

## Response `200`

The task, decided and completed

- object
  - `success` true, required
  - `data` AgentReviewTask, required: An accountant task of type `agent_review` (#3813), as stored.
    - `id` string, uuid, required
    - `companyId` string, uuid, required
    - `accountantId` string, uuid, required: The person the task is assigned to.
    - `title` string, required
    - `description` string, nullable: The proposal and its evidence.
    - `type` 'agent_review', required
    - `sourceKey` string, required
    - `priority` 'critical' | 'high' | 'medium' | 'low'
    - `status` 'pending' | 'in_progress' | 'completed' | 'cancelled', required
    - `dueDate` string, date-time, nullable
    - `completedAt` string, date-time, nullable
    - `decision` 'approved' | 'rejected' | 'null', nullable, required
    - `answer` string, nullable, required: The reason given with the decision.
    - `answeredAt` string, date-time, nullable, required
    - `answeredByUserId` string, uuid, nullable, required
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: Request conflicts with the durable onboarding state
- `422`: Request failed validation

## Changes

- **2026-10-29** `878d022e09c2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/tasks/:taskId/decision/post.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
