Skip to main content
Jobs are the scheduled tasks InfraAudit uses to run drift detection, vulnerability scans, compliance assessments, and billing syncs. The jobs endpoints let you inspect scheduled jobs, trigger them manually, and view execution history. Base path: /api/v1/jobs

GET /jobs — list jobs

Returns all configured jobs with their schedules and last execution status.

Response

type
string
Job type: drift_detection, vulnerability_scan, compliance_assess, or billing_sync.
schedule
string
Cron expression for the job’s schedule.

GET /jobs/ — get job

Returns details for a single job.

POST /jobs//trigger — trigger manual run

Runs the job immediately regardless of its schedule. Returns 202 Accepted with an execution ID.

Response 202


GET /jobs//executions — list execution history

Returns past executions for a job.

Query parameters

status
string
Filter by execution status: running, succeeded, or failed.
page
integer
default:"1"
Page number.
per_page
integer
default:"20"
Results per page.

Response

findings_count
integer
Number of new findings created during this execution (drifts, vulnerabilities, etc.).

GET /jobs//executions/ — get execution detail

Returns the full execution record including a log excerpt.