---
title: "Kill flow run"
method: POST
path: "/kill_pipeline"
tags: ["Execution"]
---

# Kill flow run

`POST /kill_pipeline`

This endpoint is used to kill a flow run and all its subflow runs.

## Request body

- object
  - `run_id` string, required — The ID of the pipeline run to kill.
  - `user_id` string — The user ID. Required if project_id is not provided.
  - `project_id` string — The project ID. Required if user_id is not provided.

## Response `200`

Pipeline killed successfully

- object
  - `success` boolean
  - `run_id` string — The ID of the killed pipeline run.

## Other responses

- `400` — Bad request (missing run_id)
- `401` — Unauthorized (missing or invalid API key)
- `403` — Forbidden (user does not have permission to kill this run)
- `404` — Pipeline run not found
- `500` — Internal server error

---

[API](https://skmtc.dev/gumloop/apis/public-api.md) · [All operations](https://skmtc.dev/gumloop/apis/public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gumloop/public-api/revisions/115f2d6ce387/schema)
