---
title: "Cancel Build"
method: POST
path: "/api/v1/build/{job_id}/cancel"
tags: ["Chat"]
---

# Cancel Build

`POST /api/v1/build/{job_id}/cancel`

Cancel a specific build job.

Requires authentication and ownership verification to prevent a user from
aborting another user's running build (DoS via job cancellation).
Jobs with no registered owner (build_public_tmp) are accessible to any
authenticated user, consistent with get_build_events.

## Path parameters

- `job_id` string, required

## Response `200`

Successful Response

- CancelFlowResponse — Response model for flow build cancellation.
  - `message` string, required
  - `success` boolean, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.net/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langflow-ai/langflow/versions/22962dc5e81b/schema)
