Harness Infrastructure API

The infrastructure service for working with infrastructures

Operations 9

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 /api/infrastructures List infrastructures · List Infrastructure #
Ask an LLM
“What infrastructures have been defined in my account?”
“Can I page through infrastructures in a specific project?”
Tell an agent
List infrastructures in project {projectIdentifier}.
Show the first {limit} infrastructures, newest first.
POST /api/infrastructures/{executionID}/abort Abort an infrastructure execution · Abort Infrastructure #
Ask an LLM
“How do I stop an infrastructure execution that's still running?”
“Can I cancel an in-flight provisioning run?”
Tell an agent destructive · confirm first
Abort infrastructure execution {executionID}.
Cancel running execution {executionID} in project {projectIdentifier}.
DELETE /api/infrastructures/{id} Delete an infrastructure · Delete Infrastructure #
Ask an LLM
“How do I remove an infrastructure I no longer need?”
“Is deleting an infrastructure definition reversible?”
Tell an agent destructive · confirm first
Delete infrastructure {id}.
Remove infrastructure {id} from project {projectIdentifier}.
GET /api/infrastructures/{id} Get an infrastructure · Get Infrastructure #
Ask an LLM
“What's the definition of one specific infrastructure?”
“Can I look up an infrastructure by its ID?”
Tell an agent
Get infrastructure {id}.
Show details of infrastructure {id} in project {projectIdentifier}.
GET /api/infrastructures/{id}/executions List executions of an infrastructure · ListExecutions Infrastructure #
Ask an LLM
“What runs have been executed against a given infrastructure?”
“Can I see an infrastructure's execution history in order?”
Tell an agent
List executions for infrastructure {id}.
Show the last {limit} executions of infrastructure {id}.
GET /api/infrastructures/{id}/specs List specs of an infrastructure · ListSpecs Infrastructure #
Ask an LLM
“Which specs make up a particular infrastructure?”
“Can I page through the spec versions of an infrastructure?”
Tell an agent
List specs for infrastructure {id}.
Show the spec history of infrastructure {id} in project {projectIdentifier}.
POST /api/infrastructures/approve Approve or reject a pipeline approval step · ApprovePipelineExecution Infrastructure #
Ask an LLM
“How do I respond to an approval step that's blocking an infrastructure pipeline?”
“Can I leave a message when approving or rejecting a pipeline step?”
Tell an agent
Take action {action} on approval {approvalID}.
Approve step {approvalID} with message {message}.
POST /api/infrastructures/execute Execute an infrastructure definition · Execute Infrastructure #
Ask an LLM
“How do I run an infrastructure YAML to provision resources?”
“Can I dry-run an infrastructure execution before applying it for real?”
Tell an agent
Execute this infrastructure YAML: {infrastructureYaml}.
Dry-run infrastructure {infrastructureYaml} with dryRun {dryRun}.
GET /api/infrastructures/executions/{id} Get an infrastructure execution · GetExecution Infrastructure #
Ask an LLM
“What happened in a particular infrastructure execution?”
“Can I check the status of one execution by its ID?”
Tell an agent
Get infrastructure execution {id}.
Show the result of execution {id} in project {projectIdentifier}.

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-infrastructure-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-infrastructure-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harness Infrastructure 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 (39 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/openapi/harness-infrastructure-api-openapi.yml