> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enginy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel workflow run

> Cancel a running workflow run. Only runs that are still RUNNING can be cancelled.

    > **Required scope:** `WORKFLOWS_WRITE`
    >
    > **Rate limit:** 30 requests per minute



## OpenAPI

````yaml https://openapi.enginy.ai/definitions.json post /v1/workflow-runs/{runId}/cancel
openapi: 3.1.0
info:
  title: Enginy API
  version: 1.0.0
  description: Public API for Enginy platform
servers:
  - url: https://openapi.enginy.ai
    description: Configured server
security: []
tags:
  - name: AI Variables
    description: >-
      Manage AI variables and discover the entity fields you can reference in
      prompts and entity requests.
  - name: Inbox
    description: >-
      Inbox endpoints for listing contact threads, reading thread messages,
      managing tags, and sending manual replies.
  - name: Workflows
    description: >-
      Build, validate, publish, run, and inspect advanced (graph) workflows,
      plus the block/condition catalog needed to author a workflow plan.
paths:
  /v1/workflow-runs/{runId}/cancel:
    post:
      tags:
        - Workflows
      summary: Cancel workflow run
      description: >-
        Cancel a running workflow run. Only runs that are still RUNNING can be
        cancelled.

            > **Required scope:** `WORKFLOWS_WRITE`
            >
            > **Rate limit:** 30 requests per minute
      parameters:
        - schema:
            type: string
          required: true
          name: runId
          in: path
      responses:
        '204':
          description: Run cancelled
        '403':
          description: >-
            Advanced workflows are not enabled for this workspace. Ask your
            workspace admin to enable the feature.
        '404':
          description: Run not found or not accessible.
        '409':
          description: The run is not RUNNING and cannot be cancelled.
        '500':
          description: The run could not be cancelled in the workflow engine.
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````