---
title: "Backfill Pbx Staff Legs Endpoint"
method: POST
path: "/developer/transfer-metrics/backfill-recordings"
tags: ["Developer", "Developer - Transfer Metrics"]
---

# Backfill Pbx Staff Legs Endpoint

`POST /developer/transfer-metrics/backfill-recordings`

Enqueue the staff-leg RECORDING backfill for historical answered
transfers: fetch the queue recording from the PBX (read-only), transcribe,
and stitch onto the AI leg — presentation only, the calls' pipelines are
NOT re-run (pipeline_rerun=false rows).

## Request body

- TransferFlowBackfillRequest
  - `customer_id` string, uuid, required
  - `days_back` integer
  - `limit` integer
  - `dry_run` boolean

## Response `200`

Successful Response

- TransferFlowBackfillResponse
  - `candidates` integer, required — Transferred calls in range missing a transfer_flow snapshot
  - `enqueued` boolean, required — Whether the backfill task was dispatched (false for dry runs)

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/openintake/apis/fastapi.md) · [All operations](https://skmtc.dev/openintake/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintake/fastapi/revisions/b642b91e0a5c/schema)
