---
title: "File an agent review task for one held item (#3813)"
method: POST
path: "/accountant/companies/{customerId}/review-tasks"
tags: ["Accountant Portal"]
---

# File an agent review task for one held item (#3813)

`POST /accountant/companies/{customerId}/review-tasks`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/review-tasks`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

The bookkeeping service files one task for each item it holds instead of posting. Only the service token may file (a signed-in person gets 403 `REVIEW_TASK_FILER_NOT_SERVICE`). The task goes to the company's primary assigned person, or else the earliest assigned, never to the service that filed it; a company with no assigned person answers 409 `REVIEW_TASK_NO_ACCOUNTANT`, also for a key already filed. The task's description carries the proposal and its evidence. Filing is idempotent per `sourceKey`: 201 when this call filed the task, 200 with the task already filed for the item, decided or not. A filed task's text never changes, so a person always decides exactly what they read. The same key with other content answers 409 `REVIEW_TASK_SOURCE_KEY_REUSED`, and a new attempt at an item uses a new `sourceKey`. A pending, undecided task moves to the current primary person only when its owner is no longer assigned to the company.

## Path parameters

- `customerId` string, uuid, required

## Request body

- object
  - `sourceKey` string, required
  - `title` string, required
  - `proposal` string, required: What the agent will do on approval.
  - `evidence` string, required: The rows, documents and rules it relied on.
  - `priority` 'critical' | 'high' | 'medium' | 'low'

## Response `200`

The task already filed for this item, unchanged

- 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

- `201`: The task this call filed
- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `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/companies/:customerId/review-tasks/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)
