---
title: "[Deprecated] Terminate the latest workflow run"
method: POST
path: "/workflow/{id}/terminate"
deprecated: true
---

# \[Deprecated\] Terminate the latest workflow run

`POST /workflow/{id}/terminate`

> **Deprecated.**

Force terminates the latest run. Deprecated; use `POST /workflow/{id}/runs/{rid}/terminate` to target a specific run. Scheduled for removal after 2026-07-16.

## Path parameters

- `id` string, required

## Request body

- object
  - `reason` string

## Response `200`

The workflow run was terminated

- TerminateWorkflowResponse
  - `terminated` boolean
  - `workflowId` string
  - `runId` string

## Other responses

- `400` — Invalid request body, query, or pagination token
- `404` — Workflow execution, workflow type, or catalog not found
- `409` — Workflow run is in a state that conflicts with the requested operation (e.g. operating on an already-terminal run, or resetting to an incomplete step).
- `500` — Internal server error (e.g. Temporal connection failure)

## Changes

- **2026-04-24** `01552bfa9579` — 2 breaking, 3 warning
  - added `#/components/schemas/ValidationErrorResponse, #/components/schemas/ErrorResponse` to the response body `oneOf` list for the response status `400`
  - the response's body type changed from `object` to no type for status `400`
  - removed the optional property `error` from the response with the `400` status
  - removed the optional property `issues` from the response with the `400` status
  - …1 more
- **2026-04-17** `a3368f919949` — 3 info
  - endpoint deprecated
  - added the non-success response with the status `409`
  - added the optional property `runId` to the response with the `200` status
- **2026-03-13** `0f0e49049ef1` — 1 breaking, 1 warning, 6 info
  - the response's body type changed from no type to `object` for status `400`
  - removed the optional property `runId` from the response with the `200` status
  - endpoint reactivated
  - removed `#/components/schemas/ValidationErrorResponse, #/components/schemas/ErrorResponse` from the response body `oneOf` list for the response status `400`
  - …4 more

[Change history](https://skmtc.dev/growthxai/apis/output-ai-api/changes/workflow/:id/terminate/post.md)

---

[API](https://skmtc.dev/growthxai/apis/output-ai-api.md) · [All operations](https://skmtc.dev/growthxai/apis/output-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/growthxai/output-ai-api/revisions/09a49e598435/schema)
