---
title: "Draw a week's blind sample for one action type (F20)"
method: POST
path: "/accountant/companies/{customerId}/agent/blind-samples"
tags: ["Accountant Portal"]
---

# Draw a week's blind sample for one action type (F20)

`POST /accountant/companies/{customerId}/agent/blind-samples`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/agent/blind-samples`
- Auth: HTTP bearer

A super-admin only (403 SUPER_ADMIN_REQUIRED). Draws from Penny's applied writes of the week (periodStart is a Monday, UTC; 422 otherwise), weighted by amount: at least 50 rows, or 5% of the week's writes when more; every write and `short: true` when fewer than 50 exist (reported, never a pass). 409 AGENT_BLIND_SAMPLE_EXISTS when the week is already drawn. Both service keys get 404.

## Path parameters

- `customerId` string, uuid, required

## Request body

- object
  - `actionType` 'categorize', required
  - `periodStart` string, date, required

## Response `201`

Drawn

- object
  - `success` boolean, required
  - `data` AgentBlindSampleResult, required
    - `id` string, uuid, required
    - `companyId` string, uuid, required
    - `actionType` string, required
    - `periodStart` string, date, required
    - `periodEnd` string, date, required
    - `drawnAt` string, date-time, required
    - `drawnByUserId` string, uuid, nullable, required
    - `candidateCount` integer, required
    - `rowCount` integer, required
    - `short` boolean, required
    - `completedAt` string, date-time, nullable, required
    - `wrongRows` integer, nullable, required
    - `wrongBps` integer, nullable, required
    - `sentBackToShadow` boolean, required
    - `markedRows` integer, required

## 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-11-26** `4a2098becaf9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/agent/blind-samples/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)
