---
title: "Congress Ingest"
method: POST
path: "/v1/admin/congress/ingest"
tags: ["admin"]
---

# Congress Ingest

`POST /v1/admin/congress/ingest`

## Request

- Base URL: `https://api.optionwhales.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.optionwhales.io/v1/admin/congress/ingest`
- Auth: none declared

Trigger a congress-data ingest (House PTR PDFs + Senate eFD) into our
Postgres. Default: BACKGROUND (returns immediately; poll /v1/congress/stats).
``wait=true`` runs it synchronously and returns the counts (keep the scope
small so it finishes within the request window). Admin only.

## Query parameters

- `house_days` integer
- `senate_days` integer
- `max_house_pdfs` integer
- `max_senate_ptrs` integer
- `do_house` boolean
- `do_senate` boolean
- `wait` boolean: Run synchronously and return the counts

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/optionwhales/apis/optionwhales-pro-api.md) · [All operations](https://skmtc.dev/optionwhales/apis/optionwhales-pro-api/llms.txt) · [OpenAPI document](https://skmtc.dev/optionwhales/apis/optionwhales-pro-api/revisions/e76bc0d3a770?raw)
