Skip to main content

Runs (Scans)

Create a New Scan

Execute a workflow against a target. Basic scan with flow workflow:
Basic scan with module workflow:
Scan with custom parameters:
Scan with priority and timeout:
Scan with Docker runner:
Scan with SSH runner:
Request Body Parameters: * One of flow or module is required. ** One of target, targets, or target_file is required. Response:

Multi-Target Scanning

Scan multiple targets with concurrency control:
Response:

Scan from Uploaded Target File

Use an uploaded target file (from /osm/api/upload-file) for running:
This is similar to CLI’s -T flag: osmedeus run -m port-scan -T targets.txt

List Runs

Get a paginated list of all runs.
Query Parameters: Response:
Note: The current_pid field shows the process ID of the currently running command. This can be used to identify and cancel the running process. When the run completes, this field is cleared (set to 0 or omitted).

Get Run Details

Get details of a specific run by ID.
Response:
Note: You can use either the numeric id or the run_uuid to fetch run details.

Cancel Run

Cancel a running workflow execution. This will terminate all running processes associated with the run.
Response (processes killed successfully):
Response (using database PID fallback):
Response (no active processes found):
Kill Methods:
  • registry - Processes were tracked in memory and killed via the run registry (API-initiated runs)
  • database_pid - Process was killed using the PID stored in the database (fallback method)

Get Run Steps

Get all step results for a specific run.
Response:

Get Run Artifacts

Get all output artifacts for a specific run.
Response:
Artifact Types:
  • report - Generated reports from the workflow’s reports section
  • state_file - State files like run-state.json, run-execution.log
  • output - General output files from steps
  • screenshot - Screenshots captured during the scan
Content Types:
  • json, jsonl, yaml, html, md, log, pdf, png, txt, zip, folder, unknown

Duplicate Run

Create a copy of an existing run with the same configuration.
Response:

Start Run

Start a pending run that was created but not yet started.
Response:

Get Job Status

Get the status of a job (a group of runs from the same request). This is useful for tracking multi-target scans.
Response:

Priority Levels

Runs can be assigned a priority level to control execution order when multiple runs are queued. Note: Priority defaults to normal when not specified in the request