---
title: "Record a replay pass for one company and action type (F8)"
method: POST
path: "/admin/agent-replay-passes"
tags: ["Admin"]
---

# Record a replay pass for one company and action type (F8)

`POST /admin/agent-replay-passes`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/admin/agent-replay-passes`
- Auth: none required

The replay job only, under its own credential (`Authorization: Bearer <PENNY_REPLAY_JOB_TOKEN>`): a request carrying an API key gets 404, any other caller 401. Not mounted unless the deployment sets PENNY_REPLAY_JOB_TOKEN. Requires a canonical immutable digest ref (`replay:penny-replay-gate-v1:<64-hex-report-sha256>:logic=<64-hex-logic-sha256>[:src=<40-hex-source-sha>]`). The same report again changes nothing (200); another report replaces the pass, withdraws its approval, and under A-09 returns an actively approved Live capability to shadow (`live_approval_required`) with an audit row (201). Pre-existing legacy Live rows with no prior approval are left untouched. 404 when the company does not exist.

## Request body

- object
  - `companyId` string, uuid, required
  - `actionType` 'categorize' | 'documents' | 'transfers.pairs' | 'revenue' | 'bills' | 'close', required
  - `replayReportRef` string, required

## Response `200`

The record already on record, unchanged

- object
  - `success` boolean, required
  - `data` object, required
    - `approval` AgentLiveApprovalRecord, required
      - [`AgentLiveApproval`](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b/schema?at=%2Fcomponents%2Fschemas%2FAgentLiveApproval)
      - object
        - `companyId` string, uuid, required
        - `actionType` 'categorize' | 'documents' | 'transfers.pairs' | 'revenue' | 'bills' | 'close', required
    - `created` boolean, required

## Other responses

- `201`: Recorded
- `401`: Authentication required
- `404`: Resource not found
- `422`: Request failed validation

## Changes

- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/admin/agent-replay-passes/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)
