Harness Scans API

Access and modify Security Test Scans

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /sto/api/v2/scans List security test scans · Scans#List scans #
Ask an LLM
“What security scans have run in my Harness STO account?”
“Can I list only the scans from one pipeline execution?”
Tell an agent
List security test scans in account {account}.
Show scans from pipeline execution {execution} in account {account}.
POST /sto/api/v2/scans Record a new security test scan · Scans#Create scan #
Ask an LLM
“How do I register a new security scan record for a pipeline step?”
“What do I need to supply when creating a scan, such as scanner product and target variant?”
Tell an agent
Create a scan for execution {execution}, product {product}, target variant {target} in account {account}.
Record a new {status} scan for pipeline {pipeline} step {step} in account {account}.
DELETE /sto/api/v2/scans/{id} Delete a security test scan · Scans#Delete scan #
Ask an LLM
“How do I remove a security scan record I no longer need?”
“Can I delete a scan by its ID?”
Tell an agent destructive · confirm first
Delete scan {scan} in account {account}.
Remove security test scan {scan} from account {account}.
GET /sto/api/v2/scans/{id} Get a security test scan by ID · Scans#Find scan by id #
Ask an LLM
“What are the details and status of a particular security scan?”
“Can I look up one scan record by its ID?”
Tell an agent
Get scan {scan} in account {account}.
Show the status and target of security scan {scan} for account {account}.
PUT /sto/api/v2/scans/{id} Update an existing security test scan · Scans#Update scan #
Ask an LLM
“How do I mark a running security scan as succeeded or failed?”
“Can I attach an artifact fingerprint to a scan after it has been created?”
Tell an agent
Update scan {scan} in account {account} to status {status}.
Set artifact fingerprint {fingerprint} on existing scan {scan} (account {account}).
GET /sto/api/v2/scans/{id}/issue/{issueId} Get one issue found by a scan · Scans#Scan issue #
Ask an LLM
“What are the details of one vulnerability a security scan reported?”
“Can I view a single issue within a scan's findings?”
Tell an agent
Get issue {issue} from scan {scan} in account {account}.
Show the details of finding {issue} reported by scan {scan} (account {account}).
GET /sto/api/v2/scans/{id}/issue/{issueId}/occurrences List occurrences of a scan issue · Scans#Scan issue occurrences #
Ask an LLM
“Where in the code or image does a scan issue occur, and how many times?”
“Can I filter an issue's occurrences by exemption status?”
Tell an agent
List occurrences of issue {issue} in scan {scan}, account {account}.
Show {exemption_status} occurrences of issue {issue} in scan {scan} (account {account}).
GET /sto/api/v2/scans/{id}/issues List the issues found by a scan · Scans#Scan issues #
Ask an LLM
“What vulnerabilities did a particular security scan find?”
“Can I include or exclude exempted issues when listing a scan's findings?”
Tell an agent
List issues found by scan {scan} in account {account}.
Show only exempted issues for scan {scan} (account {account}).
GET /sto/api/v2/scans/{id}/issues/counts Count active issues in a scan by severity · Scans#Scan issue counts #
Ask an LLM
“How many active critical and high issues did this scan report?”
“What's the issue count breakdown for a security scan?”
Tell an agent
Get active issue counts for scan {scan} in project {project}, org {org}, account {account}.
Count the open security issues in scan {scan} (account {account}, org {org}, project {project}).
GET /sto/api/v2/scans/latest Get the latest scans for a target variant · Get Latest Scans #
Ask an LLM
“What is the most recent successful scan for each scanner on this target?”
“Can I get the latest scan for one scanner product and subproduct only?”
Tell an agent
Get the latest successful scans for target variant {target} in account {account}.
Show the most recent {product} scan for target variant {target} (account {account}).

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/harness:harness-scans-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

harness-scans-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harness Scans API
  version: '1.0'
  description: The Harness Software Delivery Platform uses OpenAPI Specification v3.0.
  contact:
    name: API Support
    email: contact@harness.io
    url: https://harness.io/
  x-logo:
    url: https://mma.prnewswire.com/media/779232/Harnes_logo_horizontal.jpg?p=facebook
    altText: Harness
  termsOfService: https://harness.io/terms-of-use/
servers:
- url: https://app.harness.io
  description: Harness host URL
- url: https://{vanity}
  description: Vanity URL
  variables:
    vanity:
      default: app.harness.io
security:
- x-api-key: []
tags:


# --- truncated at 32 KB (224 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/openapi/harness-scans-api-openapi.yml