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

# Cancel Discovery Run



## OpenAPI

````yaml /openapi.json post /v1/discovery/runs/{run_id}/cancel
openapi: 3.1.0
info:
  title: MindFort API
  version: 1.0.0
  description: >-
    The MindFort Public API supports targets, Discovery, assessments, finding
    lifecycle and analytics, and reports. Informational non-vulnerable results
    are labeled `secured`.
servers:
  - url: https://api.mindfort.app
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/discovery/runs/{run_id}/cancel:
    post:
      tags:
        - Discovery
      summary: Cancel Discovery Run
      operationId: cancelDiscoveryRun
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Discovery run cancelled
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicDiscoveryCancelResponse'
components:
  schemas:
    PublicDiscoveryCancelResponse:
      type: object
      properties:
        run_id:
          type: string
        status:
          type: string
          const: cancelled
      required:
        - run_id
        - status
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key generated from the MindFort dashboard. Pass as `Authorization:
        Bearer <your-api-key>`.

````