The history endpoints provide access to durable records stored in Postgres. While
the Jobs endpoints expose the operational jobs table, the history
endpoints query the long-lived jobs, job_actions, and table health
assessment tables that retain data for 90+ days.
List job history
GET /jobs/history
Returns completed job records from Postgres, ordered newest first. These records
persist long after the operational jobs table rows have been pruned, making
this the go-to endpoint for auditing past maintenance runs.
Query parameters
Parameter
Type
Default
Description
table
string
—
Filter by table in database.table_name format.
status
string
—
Filter by status: completed, failed, cancelled, etc.
Returns split health assessment payloads from Postgres, ordered newest first.
Each assessment captures health status and issues for a point-in-time table
status snapshot. It does not include maintenance policy fields or recommended
actions; use /tables/{database}/{table}/maintenance/recommendation for action
intent.
Deletes job history, legacy health snapshots, split table status snapshots,
split table health assessments, and orchestrator run records older than the
specified retention window. Use this for manual retention cleanup; the default
retention period is 90 days.
Query parameters
Parameter
Type
Default
Description
retention_days
int
90
Delete records older than this many days. Minimum is 1.
Response — 200 OK
{
"deleted": 142
}
Field
Type
Description
deleted
int
Total number of records removed across all tables.