---
title: "Trigger Ingestion"
method: POST
path: "/api/admin/run-ingestion"
---

# Trigger Ingestion

`POST /api/admin/run-ingestion`

## Request

- Base URL: `https://www.awardflightdaily.com` (the document declares no server; this is the origin it was published from)
- URL: `https://www.awardflightdaily.com/api/admin/run-ingestion`
- Auth: none declared

Trigger an ingestion run in the background.
Uses existing require_admin() from app.py for auth.

JSON body (all optional):
  sources:      list of program slugs (default: all programs)
  max_budget:   max API calls (default: 900)
  max_pages:    max pages per program (default: auto)
  skip_gaps:    skip gap fill phase (default: false)
  skip_refresh: skip rolling refresh phase (default: false)
  start_date:   filter results from this date, e.g. "2026-05-24" (default: auto)
  end_date:     filter results up to this date, e.g. "2026-07-21" (default: auto)
  take:         rows per API page (default: 1000)

Returns immediately with status. Poll /api/admin/ingestion-status for progress.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/awardflightdaily/apis/award-flight-database.md) · [All operations](https://skmtc.dev/awardflightdaily/apis/award-flight-database/llms.txt) · [OpenAPI document](https://skmtc.dev/awardflightdaily/apis/award-flight-database/revisions/93e62de446f9?raw)
