REST API
Reference for the Harness Artifacts REST API, covering the base URL, authentication, common endpoints, rate limits, and the interactive API explorer.
The Harness Artifacts REST API lets you manage registries, artifacts, upstream proxies, lifecycle rules, and Dependency Firewall policy programmatically.
Base URL
https://app.harness.io/har/api/v1For self-managed deployments, replace app.harness.io with your on-prem hostname.
Authentication
All requests require an API key in the x-api-key header:
curl -H "x-api-key: $HARNESS_API_KEY" \
"https://app.harness.io/har/api/v1/registry?accountIdentifier=$HARNESS_ACCOUNT_ID"Go to Authentication and identity tokens for guidance on generating a personal access token or service account token.
Interactive API reference
Go to Artifact Registry API Reference for the full interactive OpenAPI explorer, including request and response schemas for every endpoint.
The 3.0 API is an extension of the 2.0 API. All 2.0 endpoints are available in 3.0. New 3.0 endpoints (Terraform Backend, Webhooks, Lifecycle Rules) appear in the same explorer once the spec is updated.
Common operations
List registries
GET
/registry
Create a registry
POST
/registry
Get a registry
GET
/registry/{registryRef}
Update a registry
PUT
/registry/{registryRef}
Delete a registry
DELETE
/registry/{registryRef}
List artifacts
GET
/registry/{registryRef}/artifact
Get artifact details
GET
/registry/{registryRef}/artifact/{artifact}
Delete an artifact
DELETE
/registry/{registryRef}/artifact/{artifact}
List artifact versions
GET
/registry/{registryRef}/artifact/{artifact}/version
Get a version
GET
/registry/{registryRef}/artifact/{artifact}/version/{version}
Delete a version
DELETE
/registry/{registryRef}/artifact/{artifact}/version/{version}
The registryRef path parameter takes the format <account_identifier>/<optional_org>/<optional_project>/<registry_identifier>.
Rate limits
The REST API shares the Harness platform rate limit: 1,000 requests per minute per API key. Requests that exceed the limit return 429 Too Many Requests. Retry with exponential back-off.
Last updated
Was this helpful?