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 job_history, job_action_history, and
health_snapshots 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 health snapshot records from Postgres, ordered newest first. Each
snapshot captures a point-in-time health assessment of a table — file
statistics, snapshot counts, recommended actions, and maintenance status.
Deletes job history and health snapshot 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.