How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Harness Test Targets API

Access and modify Scan Targets

Harness Test Targets API is one of 488 APIs that Harness publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Test Targets. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a getting-started guide, authentication docs, and rate-limit docs.

This API exposes 13 operations across 9 paths, and defines 21 schemas. It is described by OpenAPI 3.2.0, at version 1.0.

Requests are made against 2 base URLs: https://app.harness.io, https://{vanity}.

13 operations 9 paths 21 schemas 1 DELETE9 GET1 PATCH1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0
Base URL
https://app.harness.io
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

Harness Test Targets API declares 1 security scheme for authenticating requests. An API key is passed in the header as x-api-key (x-api-key). By default, every request must be authenticated.

  • x-api-key — API key is a token provided while making the API calls. This is used to authenticate the client at the exposed endpoint.

Paths & Operations 13

Across 9 paths, the API surfaces 13 operations — 1 DELETE, 9 GET, 1 PATCH, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Test Targets 13

Access and modify Scan Targets

GET
/sto/api/v2/targets
TargetsList targets
Targets#ListTargets 7 params → 200400401403404429500
POST
/sto/api/v2/targets
TargetsCreate target
Targets#CreateTarget 4 params body → 200400401403429500
DELETE
/sto/api/v2/targets/{id}
TargetsDelete target
Targets#DeleteTarget 4 params → 204400401403404429500
GET
/sto/api/v2/targets/{id}
TargetsFind target by id
Targets#FindTargetById 5 params → 200400401403404429500
PATCH
/sto/api/v2/targets/{id}
TargetsPatch target
Targets#PatchTarget 5 params body → 200400401403404429500
PUT
/sto/api/v2/targets/{id}
TargetsUpdate target
Targets#UpdateTarget 5 params body → 200400401403404429500
GET
/sto/api/v2/targets/{id}/executions
List target executions
Targets#ListTargetExecutions 9 params → 200400401403404429500
GET
/sto/api/v2/targets/{id}/executions/{executionId}
Get target execution metadata
Targets#GetTargetExecution 5 params → 200400401403404429500
GET
/sto/api/v2/targets/{id}/executions/{executionId}/occurrences
List target execution findings
Targets#ListTargetExecutionOccurrences 10 params → 200400401403404429500
GET
/sto/api/v2/targets/{id}/executions/{executionId}/occurrences/{occurrenceInternalId}
Get target execution occurrence
Targets#GetTargetExecutionOccurrence 7 params → 200400401403404429500
GET
/sto/api/v2/targets/{id}/overview
Get target overview
Targets#TargetOverview 5 params → 200400401403404429500
GET
/sto/api/v2/targets/{id}/sbom
Get target SBOM
Targets#TargetSbom 10 params → 200400401403404429500
GET
/sto/api/v2/targets/{id}/sca/packages
Get target SCA packages
Targets#TargetScaPackages 11 params → 200400401403404429500

Schemas 21

The contract defines 21 schemas that model the data the API accepts and returns. The most detailed are TargetOverviewResult (22 properties), ScaPackage (16 properties), TargetExecution (13 properties), StoTarget (11 properties). Each schema is shown below with its type and property counts.

StoTarget
object
11 properties 7 required
ShiftLeftPackageCounts
object
OSS and container package counts from Qwiet streamlined scan.
5 properties 5 required
StoPagination
object
5 properties 4 required
UpdateTargetRequestBody
object
6 properties 4 required
TargetExecutionMetadata
object
Header fields for the target scan history detail page.
7 properties 7 required
TargetExecution
object
A single pipeline execution / build row on the target scan history page.
13 properties 11 required
IDResult
object
1 property 1 required
CreateTargetRequestBody
object
6 properties 5 required
ScaScanRef
object
2 properties 2 required
RepositorySeverityCounts
object
Counts by severity, sourced from targetsummary.
6 properties 6 required
TargetScaPackagesResult
object
Qwiet SCA packages response for a target scan.
6 properties 4 required
TargetsListTargetsResponseBody
object
2 properties 2 required
TargetFindingsMatrixRow
object
Findings or issues for one issue type, broken down by severity.
3 properties 3 required
PatchTargetRequestBody
object
6 properties
NotFound
object
2 properties 1 required
TargetsListTargetExecutionOccurrencesResponseBody
object
2 properties 2 required
TargetsListTargetExecutionsResponseBody
object
2 properties 2 required
TargetFindingsMatrix
object
Cross-tab of counts by issue type and severity, with column totals and grand total.
3 properties 3 required
TargetExecutionOccurrenceSummary
object
An occurrence summary for one scan within a target execution.
7 properties 6 required
ScaPackage
object
16 properties
TargetOverviewResult
object
Target detail overview: identity, findings/issues tiles, scan coverage, and severity matrices.
22 properties 11 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

harness-test-targets-api-openapi.yml Raw ↑

Other APIs Harness publishes across the network.

Harness Continuous Integration API
Harness Continuous Delivery and GitOps API
Harness Feature Management and Experimentation API
Harness Cloud Cost Management API
Harness Chaos Engineering API
Harness Security Testing Orchestration API
Harness Internal Developer Portal API
Harness Code Repository API
Harness Service Reliability Management API
Harness Infrastructure as Code Management API
Harness Supply Chain Security API
Harness Software Engineering Insights API
Where this information came from

This is an independent, third-party profile of Harness Test Targets API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.