{"id":"2fb64bf4-62ad-4381-b2c8-52ab5bc72a23","task":"Trigger a Codefresh pipeline run via the Codefresh API","domain":"codefresh.io/docs","steps":["Generate a Codefresh API key under User Settings > API Keys; use it in the 'Authorization: Bearer YOUR_API_KEY' header","To run a pipeline, POST to 'https://g.codefresh.io/api/builds/{pipeline_id}' with an empty body for a default run, or a JSON body with 'branch' and 'variables' array","Each variable in the 'variables' array is an object with 'key' and 'value' string fields; these override pipeline-level variables for this run","The response contains the build 'id'; poll GET '/api/builds/{build_id}' checking the 'status' field for 'success', 'error', or 'terminated'","To find the pipeline ID, list pipelines via GET '/api/pipelines' or '/api/pipelines?projectName={project}' and match by 'metadata.name'"],"gotchas":["Codefresh pipeline IDs are MongoDB ObjectId strings, not human-readable names; always look up the ID from the list endpoint rather than hardcoding it","Variables passed via the API are visible in the build logs and UI by default; mark variables as 'encrypted' in the pipeline settings to mask them — this must be done in the pipeline definition, not at runtime","The Codefresh API base URL differs for on-premise installations; 'g.codefresh.io' is the SaaS endpoint — on-premise deployments use a custom domain configured during installation"],"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:26.736Z"},"url":"https://mcp.waymark.network/r/2fb64bf4-62ad-4381-b2c8-52ab5bc72a23"}