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

The labels API from Harness — 10 operation(s) for labels.

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

Tagged areas include Labels. 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 21 operations across 10 paths, and defines 17 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}.

21 operations 10 paths 17 schemas 5 DELETE5 GET4 PATCH4 POST3 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 Labels 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 21

Across 10 paths, the API surfaces 21 operations — 5 DELETE, 5 GET, 4 PATCH, 4 POST, 3 PUT. Each is listed below with its method, path, parameters, and response codes.

Labels 21
GET
/code/api/v1/labels
List labels at account, org or project level
listSpaceLabels 7 params → 200400401403404500
POST
/code/api/v1/labels
Create label at account, org or project level
defineSpaceLabel 3 params body → 201400401403404500
PUT
/code/api/v1/labels
Save label and values at account, org or project level
saveSpaceLabel 3 params body → 200400401403404500
DELETE
/code/api/v1/labels/{key}
Delete label at account, org or project level
deleteSpaceLabel 4 params → 204400401403404500
PATCH
/code/api/v1/labels/{key}
Update label at account, org or project level
updateSpaceLabel 4 params body → 200400401403404500
GET
/code/api/v1/labels/{key}/values
List label values at account, org or project level
listSpaceLabelValues 4 params → 200400401403404500
POST
/code/api/v1/labels/{key}/values
Create label value at account, org or project level
defineSpaceLabelValue 4 params body → 201400401403404500
DELETE
/code/api/v1/labels/{key}/values/{value}
Delete label value at account, org or project level
deleteSpaceLabelValue 5 params → 204400401403404500
PATCH
/code/api/v1/labels/{key}/values/{value}
Update label value at account, org or project level
updateSpaceLabelValue 5 params body → 200400401403404500
GET
/code/api/v1/repos/{repo_identifier}/labels
List labels at repo level
listRepoLabels 8 params → 200400401403404500
POST
/code/api/v1/repos/{repo_identifier}/labels
Create label at repo level
defineRepoLabel 4 params body → 201400401403404500
PUT
/code/api/v1/repos/{repo_identifier}/labels
Save label and values at repo level
saveRepoLabel 4 params body → 200400401403404500
DELETE
/code/api/v1/repos/{repo_identifier}/labels/{key}
Delete label at repo level
deleteRepoLabel 5 params → 204400401403404500
PATCH
/code/api/v1/repos/{repo_identifier}/labels/{key}
Update label at repo level
updateRepoLabel 5 params body → 200400401403404500
GET
/code/api/v1/repos/{repo_identifier}/labels/{key}/values
List label values at repo level
listRepoLabelValues 5 params → 200400401403404500
POST
/code/api/v1/repos/{repo_identifier}/labels/{key}/values
Create label value at repo level
defineRepoLabelValue 5 params body → 201400401403404500
DELETE
/code/api/v1/repos/{repo_identifier}/labels/{key}/values/{value}
Delete label value at repo level
deleteRepoLabelValue 6 params → 204400401403404500
PATCH
/code/api/v1/repos/{repo_identifier}/labels/{key}/values/{value}
Update label value at repo level
updateRepoLabelValue 6 params body → 200400401403404500
GET
/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/labels
List labels assigned to pull request
listPullReqLabels 9 params → 200400401403500
PUT
/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/labels
Assign label to pull request
assignLabel 5 params body → 200400401403500
DELETE
/code/api/v1/repos/{repo_identifier}/pullreq/{pullreq_number}/labels/{label_id}
Unassign label from pull request
unassignLabel 6 params → 204400401403500

Schemas 17

The contract defines 17 schemas that model the data the API accepts and returns. The most detailed are TypesLabel (14 properties), TypesLabelAssignment (8 properties), TypesLabelValue (8 properties), TypesRepositoryCore (7 properties). Each schema is shown below with its type and property counts.

TypesSaveLabelValueInput
object
3 properties
EnumLabelColor
string
TypesLabelValue
object
8 properties
TypesScopesLabels
object
2 properties
EnumLabelType
string
EnumRepoType
string
TypesLabelWithValues
object
2 properties
TypesSaveLabelInput
object
5 properties
OpenapiPullReqAssignLabelInput
object
3 properties
TypesLabel
object
14 properties
TypesScopeData
object
3 properties
TypesLabelAssignment
object
8 properties
TypesPullReqLabel
object
7 properties
TypesRepositoryCore
object
7 properties
TypesSpaceCore
object
4 properties
TypesLabelValueInfo
object
3 properties
UsererrorError
object
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

harness-labels-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 Labels 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.