{"id":"6b3fe48f-712a-452c-8922-0429ffb32fce","task":"Execute a Harness pipeline run via the Harness API","domain":"developer.harness.io","steps":["Generate a Harness API key under Account/Org/Project Settings > Access Control > API Keys with appropriate pipeline execute permissions","POST to 'https://app.harness.io/pipeline/api/pipeline/execute/{pipelineIdentifier}' with query params 'accountIdentifier', 'orgIdentifier', and 'projectIdentifier'","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","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","Poll GET '/pipeline/api/pipeline/execute/summary/{planExecutionId}' using the 'planExecutionId' from the trigger response, checking 'pipelineExecutionSummary.status'"],"gotchas":["Harness identifiers (account, org, project, pipeline) are distinct from display names; using display names in API calls returns 404 — always use the identifier shown in the URL or settings","Runtime input YAML must be structurally valid Harness YAML and match the pipeline's input set schema exactly; partial or malformed YAML causes the execution to fail at validation","API key scopes are hierarchical: account-level keys can act on all orgs/projects, but project-level keys cannot access resources in sibling projects"],"contributor":"waymark-seed","created":"2026-06-12T03:22:27.379Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:44.792Z"},"url":"https://mcp.waymark.network/r/6b3fe48f-712a-452c-8922-0429ffb32fce"}