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 Spaces API

The Spaces API from Harness — 8 operation(s) for spaces.

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

Tagged areas include Spaces and Space. 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 14 operations across 8 paths, and defines 23 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}.

14 operations 8 paths 23 schemas 2 DELETE7 GET2 PATCH2 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 Spaces 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 14

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

Spaces 14
GET
/har/api/v1/spaces/{space_ref}/artifact/stats
Get artifact stats
GetArtifactStatsForSpace 3 params → 200400401403404500
GET
/har/api/v1/spaces/{space_ref}/artifacts
List artifacts
GetAllArtifacts 10 params → 200400401403404500
GET
/har/api/v1/spaces/{space_ref}/details
Get storage details for given space
GetStorageDetails 1 param → 200400401403404500
GET
/har/api/v1/spaces/{space_ref}/labels
Registrylist space labels
RegistrylistSpaceLabels 5 params → 200400401403404500
POST
/har/api/v1/spaces/{space_ref}/labels
Registrydefine space label
RegistrydefineSpaceLabel 1 param body → 201400401403404500
PUT
/har/api/v1/spaces/{space_ref}/labels
Registrysave space label
RegistrysaveSpaceLabel 1 param body → 200400401403404500
DELETE
/har/api/v1/spaces/{space_ref}/labels/{key}
Registrydelete space label
RegistrydeleteSpaceLabel 2 params → 204400401403404500
GET
/har/api/v1/spaces/{space_ref}/labels/{key}
Find space label
findSpaceLabel 3 params → 201400401403404500
PATCH
/har/api/v1/spaces/{space_ref}/labels/{key}
Registryupdate space label
RegistryupdateSpaceLabel 2 params body → 200400401403404500
GET
/har/api/v1/spaces/{space_ref}/labels/{key}/values
Registrylist space label values
RegistrylistSpaceLabelValues 2 params → 200400401403404500
POST
/har/api/v1/spaces/{space_ref}/labels/{key}/values
Registrydefine space label value
RegistrydefineSpaceLabelValue 2 params body → 201400401403404500
DELETE
/har/api/v1/spaces/{space_ref}/labels/{key}/values/{value}
Registrydelete space label value
RegistrydeleteSpaceLabelValue 3 params → 204400401403404500
PATCH
/har/api/v1/spaces/{space_ref}/labels/{key}/values/{value}
Registryupdate space label value
RegistryupdateSpaceLabelValue 3 params body → 200400401403404500
GET
/har/api/v1/spaces/{space_ref}/registries
List registries
GetAllRegistries 10 params → 200400401403404500

Schemas 23

The contract defines 23 schemas that model the data the API accepts and returns. The most detailed are ArtifactMetadata (27 properties), RegistryMetadata (14 properties), RegistryTypesLabel (12 properties), TypesLabelValue (8 properties). Each schema is shown below with its type and property counts.

PerformedBy
object
Principal who performed the relevant action
2 properties 2 required
TypesLabelValue
object
8 properties
EnumLabelType
string
RegistryType
string
refers to type of registry i.e virtual or upstream
RegistryTypesLabel
object
12 properties
UsererrorError
object
2 properties
RegistryError
object
Standard error response with code, message and optional details
3 properties 2 required
PackageType
string
refers to package
ArtifactEntityMetadata
object
Artifact Entity Metadata
RegistryMetadata
object
Harness Artifact Registry Metadata
14 properties 6 required
RegistryTypesLabelWithValues
object
2 properties
Meta
object
Metadata about the list response
2 properties 2 required
DeploymentMetadata
object
2 properties 2 required
ListRegistry
object
A list of Harness Artifact Registries
6 properties 2 required
TypesSaveLabelInput
object
5 properties
ListArtifact
object
A list of Artifacts
5 properties 1 required
RegistryArtifactType
string
refers to artifact type
RegistryStatus
string
Request processing status indicator
TypesSaveLabelValueInput
object
3 properties
EnumLabelColor
string
ArtifactStats
object
Harness Artifact Stats
4 properties
StorageDetails
object
storage details
1 property 1 required
ArtifactMetadata
object
Artifact Metadata
27 properties 8 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

harness-spaces-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 Spaces 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.