> ## 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 Assessment

> Cancel a running assessment before it completes. The assessment must belong to your organization, and any in-progress scanning is stopped immediately.



## OpenAPI

````yaml /openapi.json post /v1/assessments/{assessment_id}/cancel
openapi: 3.1.0
info:
  title: MindFort API
  version: 1.0.0
  description: >-
    The MindFort Public API allows you to programmatically trigger assessments
    and tasks, browse targets and findings, and manage finding triage state.
    Authenticate using a Bearer API key generated from the MindFort dashboard.
servers:
  - url: https://api.mindfort.app
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/assessments/{assessment_id}/cancel:
    post:
      tags:
        - Assessments
      summary: Cancel Assessment
      description: >-
        Cancel a running assessment before it completes. The assessment must
        belong to your organization, and any in-progress scanning is stopped
        immediately.
      operationId: cancelAssessment
      parameters:
        - name: assessment_id
          in: path
          required: true
          description: UUID of the assessment to cancel
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Assessment cancelled successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelResponse'
        '201':
          description: Assessment cancelled successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelResponse'
        '202':
          description: Assessment cancellation accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelResponse'
        '400':
          description: Invalid assessment_id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized – missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    CancelResponse:
      type: object
      properties:
        assessment_id:
          type: string
          format: uuid
          description: UUID of the assessment cancellation request
        status:
          type: string
          description: Cancellation status
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message
        request_id:
          type: string
          description: Unique request identifier for debugging
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key generated from the MindFort dashboard. Pass as `Authorization:
        Bearer <your-api-key>`.

````