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

# Trigger Assessment

> Triggers a new security assessment against the specified target. The assessment will run asynchronously and results will be available in the MindFort dashboard.



## OpenAPI

````yaml /openapi.json post /v1/assessments/run
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/run:
    post:
      tags:
        - Assessments
      summary: Trigger Assessment
      description: >-
        Triggers a new security assessment against the specified target. The
        assessment will run asynchronously and results will be available in the
        MindFort dashboard.
      operationId: triggerAssessment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TriggerAssessmentRequest'
      responses:
        '200':
          description: Assessment triggered successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssessmentResponse'
        '201':
          description: Assessment triggered successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssessmentResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized – missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Target not found or does not belong to this organization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: >-
            Assessment could not be started because the target is not currently
            startable, for example when another assessment is already running
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TriggerAssessmentRequest:
      type: object
      required:
        - target_id
      properties:
        target_id:
          type: string
          format: uuid
          description: UUID of the target to assess
        assessment_method:
          type: string
          enum:
            - turbo
            - balanced
            - deep
          default: turbo
          description: >-
            Assessment thoroughness. `turbo` is fastest, `deep` is most
            comprehensive.
        target_credential_id:
          type: string
          format: uuid
          description: UUID of stored credentials to use for authenticated testing
    AssessmentResponse:
      type: object
      properties:
        assessment_id:
          type: string
          format: uuid
          description: UUID of the created assessment
        status:
          type: string
          description: Current status of the assessment
        assessment_started:
          type: boolean
          description: Whether the assessment was successfully started
    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>`.

````