Chief Tools Logo
Backup Chief API v1

Endpoints for the runs of the team's backup jobs: backups and maintenance operations such as retention cleanup, pruning and integrity checks. A backup run is a recovery point, which can be kept forever or expired.


List runs

GET
https://backup.chief.app/api/v1
/runs
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

List the runs of all the team's backup jobs, newest first.

List runs › query Parameters

per_page
​integer · min: 1 · max: 100

Number of results per page.

Default: 50
page
​integer · min: 1

Page number to return.

Default: 1
status
​string | null · enum

Only return runs with this status.

Enum values:
pending
running
complete
partial
failed
cancelled
skipped
unresolved
kind
​string | null · enum

Only return backups, or runs of this maintenance operation.

Enum values:
backup
forget
prune
check_metadata
check_data
snapshot_inventory
trigger
​string | null · enum

Only return runs someone started (manual) or the schedule started (scheduled).

Enum values:
manual
scheduled
job
​string | null

Only return the runs of this backup job.

server
​string | null

Only return the runs on this server.

List runs › Responses

Paginated set of BackupRun

​BackupRun[] · required
​object · required
​object · required

List the runs of a backup job

GET
https://backup.chief.app/api/v1
/jobs/{job}/runs
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

List the runs of one backup job, newest first.

List the runs of a backup job › path Parameters

job
​string · required

List the runs of a backup job › query Parameters

per_page
​integer · min: 1 · max: 100

Number of results per page.

Default: 50
page
​integer · min: 1

Page number to return.

Default: 1
status
​string | null · enum

Only return runs with this status.

Enum values:
pending
running
complete
partial
failed
cancelled
skipped
unresolved
kind
​string | null · enum

Only return backups, or runs of this maintenance operation.

Enum values:
backup
forget
prune
check_metadata
check_data
snapshot_inventory
trigger
​string | null · enum

Only return runs someone started (manual) or the schedule started (scheduled).

Enum values:
manual
scheduled
job
​string | null

Only return the runs of this backup job.

server
​string | null

Only return the runs on this server.

List the runs of a backup job › Responses

Paginated set of BackupRun

​BackupRun[] · required
​object · required
​object · required

Get a run

GET
https://backup.chief.app/api/v1
/runs/{run}
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Get one run with its outcome, figures and the result per repository, including diagnostics of failures.

Get a run › path Parameters

run
​string · required

Get a run › Responses

BackupRun

​BackupRun · required

Get the log of a run

GET
https://backup.chief.app/api/v1
/runs/{run}/log
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Return the complete log the agent uploaded for the run, as plain text. Logs are kept for a limited time; has_log on the run tells whether one is available.

Get the log of a run › path Parameters

run
​string · required

Get the log of a run › Responses

The run log.

string

Cancel a run

POST
https://backup.chief.app/api/v1
/runs/{run}/cancel
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Ask the agent to stop a pending or running run. The agent stops it the next time it checks in; follow the run's status. Asking again while a cancellation is pending changes nothing.

Cancel a run › path Parameters

run
​string · required

Cancel a run › Responses

The cancellation was queued.

​BackupRun · required

Retry a maintenance run

POST
https://backup.chief.app/api/v1
/runs/{run}/retry
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Run a finished maintenance operation again with the plan it was started with, such as a retention cleanup that failed for an extra copy. Backups are not retried this way: run the job again instead. The response is the original run; the retry shows up as a new run of the job.

Retry a maintenance run › path Parameters

run
​string · required

Retry a maintenance run › Responses

The retry was queued.

​BackupRun · required

Keep a recovery point forever

PUT
https://backup.chief.app/api/v1
/runs/{run}/keep-forever
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Exclude a backup run and all its snapshots from the job's retention policy, so automatic cleanup never removes them. The job must be active on an enrolled server and every snapshot of the run must still be restorable.

Keep a recovery point forever › path Parameters

run
​string · required

Keep a recovery point forever › Responses

BackupRun

​BackupRun · required

Stop keeping a recovery point forever

DELETE
https://backup.chief.app/api/v1
/runs/{run}/keep-forever
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Put a recovery point that was kept forever back under the job's retention policy, which may then remove it at its next cleanup.

Stop keeping a recovery point forever › path Parameters

run
​string · required

Stop keeping a recovery point forever › Responses

BackupRun

​BackupRun · required

Expire a recovery point

POST
https://backup.chief.app/api/v1
/runs/{run}/expire
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Ask the agent to remove a backup run's snapshots from its repositories now, regardless of the retention policy. This cannot be undone: the data can no longer be restored once the agent removed it. The newest complete recovery point and recovery points kept forever cannot be expired.

Expire a recovery point › path Parameters

run
​string · required

Expire a recovery point › Responses

The removal was queued.

​BackupRun · required