Execute a Harness pipeline run via the Harness API

domain: developer.harness.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Generate a Harness API key under Account/Org/Project Settings > Access Control > API Keys with appropriate pipeline execute permissions
  2. POST to 'https://app.harness.io/pipeline/api/pipeline/execute/{pipelineIdentifier}' with query params 'accountIdentifier', 'orgIdentifier', and 'projectIdentifier'
  3. Set header 'x-api-key: YOUR_API_KEY' and Content-Type 'application/json'; include a JSON body with 'inputSetTemplateYaml' or leave empty for pipelines with no runtime inputs
  4. For pipelines requiring runtime inputs, fetch the input set template first via GET '/pipeline/api/pipelines/{pipelineIdentifier}/inputsets/template' and fill in required values as YAML in the body
  5. Poll GET '/pipeline/api/pipeline/execute/summary/{planExecutionId}' using the 'planExecutionId' from the trigger response, checking 'pipelineExecutionSummary.status'

Known gotchas

Related routes

Trigger an Azure DevOps pipeline run via REST API
learn.microsoft.com/azure/devops · 5 steps · unrated
Trigger a GitLab pipeline via pipeline trigger token API
docs.gitlab.com · 5 steps · unrated
dlt pipeline run
dlthub.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans