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

# List Assessments

> Lists assessments for your organization. Results use cursor pagination and do not include a total count.



## OpenAPI

````yaml /openapi.json get /v1/assessments
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:
    get:
      tags:
        - Assessments
      summary: List Assessments
      description: >-
        Lists assessments for your organization. Results use cursor pagination
        and do not include a total count.
      operationId: listAssessments
      parameters:
        - name: target_id
          in: query
          required: false
          description: Filter by target UUID
          schema:
            type: string
            format: uuid
        - name: assessment_type
          in: query
          required: false
          description: >-
            Filter by assessment type. `white-box` returns assessments that
            include code assessment; `black-box` returns assessments that do
            not.
          schema:
            type: string
            enum:
              - black-box
              - white-box
        - name: assessment_method
          in: query
          required: false
          description: Filter by assessment method
          schema:
            type: string
            enum:
              - turbo
              - balanced
              - deep
        - name: status
          in: query
          required: false
          description: Filter by normalized assessment status
          schema:
            type: string
            enum:
              - active
              - completed
              - failed
              - canceled
        - name: order_by
          in: query
          required: false
          description: Sort field for cursor pagination
          schema:
            type: string
            enum:
              - created_at
              - updated_at
            default: created_at
        - name: order_direction
          in: query
          required: false
          description: Sort direction for cursor pagination
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
        - name: limit
          in: query
          required: false
          description: Maximum number of assessments to return
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
        - name: cursor
          in: query
          required: false
          description: Opaque cursor from `pagination.next_cursor`
          schema:
            type: string
      responses:
        '200':
          description: Assessments returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAssessmentsResponse'
        '400':
          description: Invalid filter, limit, or cursor
          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'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ListAssessmentsResponse:
      type: object
      properties:
        assessments:
          type: array
          items:
            $ref: '#/components/schemas/AssessmentSummary'
        pagination:
          $ref: '#/components/schemas/AssessmentsPagination'
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message
        request_id:
          type: string
          description: Unique request identifier for debugging
    AssessmentSummary:
      type: object
      description: >-
        Assessment fields returned by the assessments list endpoint. Internal
        workflow, plan, and session fields are not included.
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the assessment
        target_id:
          type: string
          format: uuid
          description: UUID of the assessed target
        target_name:
          type: string
          description: Name of the assessed target
        assessment_type:
          type: string
          enum:
            - black-box
            - white-box
          description: >-
            Assessment type. `white-box` includes code assessment; `black-box`
            does not.
        assessment_method:
          type: string
          enum:
            - turbo
            - balanced
            - deep
          description: Assessment method
        status:
          type: string
          enum:
            - active
            - completed
            - failed
            - canceled
          description: Normalized assessment status
        started_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Assessment start timestamp
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Assessment completion timestamp
    AssessmentsPagination:
      type: object
      properties:
        limit:
          type: integer
          description: Maximum assessments returned in this page
        has_more:
          type: boolean
          description: Whether another page is available
        next_cursor:
          type:
            - string
            - 'null'
          description: Opaque cursor for the next page
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key generated from the MindFort dashboard. Pass as `Authorization:
        Bearer <your-api-key>`.

````