assessment

Poll run status

Fetch a run's status. Optionally compute a pass/fail verdict by supplying min_severity.

get/api/v1/run/{run_id}

Request

  • Base URL: https://api.enokilabs.ai
  • URL: https://api.enokilabs.ai/api/v1/run/{run_id}
  • Auth: none declared

Path parameters

run_idstring required

Query parameters

min_severitystring nullable

Severity threshold for verdict: critical, high, medium, low.

Headers

Authorizationstring nullable

Bearer token with API key

Response

Successful Response

run_idstring required
model_idstring required
statusstring required
verdict'pass' | 'fail' nullable
started_atstring required
completed_atstring nullable
findings_countinteger required
ingest_incompleteboolean required

True when part of this run's results is missing, because it could not be read or a safety test never ran, so findings_count may be lower than it should be and a release gated on it should not trust it.

findings_above_thresholdinteger nullable
categories_plannedstring[] required

The categories the run was asked to cover. Empty where the workspace's plan withholds a run's breakdown; read status to tell a cancelled run from one that finished.

categories_completedstring[] required

The categories the run finished. Empty where the workspace's plan withholds a run's breakdown; read status to tell a cancelled run from one that finished.

Changes

No recorded changes to this operation across all 1 revision of this API.