---
title: "Admin Intake Prequalify Backlog"
method: POST
path: "/v1/admin/intake/prequalify-backlog"
---

# Admin Intake Prequalify Backlog

`POST /v1/admin/intake/prequalify-backlog`

## Request

- Base URL: `https://api.storyflo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.storyflo.com/v1/admin/intake/prequalify-backlog`
- Auth: none declared

Pre-qualify the existing render-job backlog by cancelling jobs whose
source article body falls below ``min_words``. PR #184 added an intake-
side gate, but the queue still holds thousands of pre-gate stubs that
would render into 8-second clickbait. This endpoint sweeps them in
bounded batches; call repeatedly with ``dry_run=false`` until
``would_cancel`` drops to zero.

Body:
    min_words: int (optional; default INTAKE_MIN_WORDS env, then 500)
    dry_run: bool (default true)
    limit: int (default 5000) — max render_jobs rows examined per call
    status_filter: list[str] (default ["queued", "deferred"])

Jobs with a NULL ``article_id`` (e.g. forwarded-newsletter chunks with
no 1:1 article row) are skipped — we only judge jobs we can word-count.

## Headers

- `x-storyflo-email-token` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/storyflo/apis/storyflo-inference-router.md) · [All operations](https://skmtc.dev/storyflo/apis/storyflo-inference-router/llms.txt) · [OpenAPI document](https://skmtc.dev/storyflo/apis/storyflo-inference-router/revisions/c3a1a735ac7a?raw)
