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

> List all targets in your organization using limit and offset pagination to discover which applications and assets are available for testing.



## OpenAPI

````yaml /openapi.json get /v1/targets
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 probe results are
    labeled `secured`.
servers:
  - url: https://api.mindfort.app
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/targets:
    get:
      tags:
        - Targets
      summary: List Targets
      description: >-
        List all targets in your organization using limit and offset pagination
        to discover which applications and assets are available for testing.
      operationId: listTargets
      parameters:
        - name: limit
          in: query
          required: false
          description: Maximum number of targets to return
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
        - name: offset
          in: query
          required: false
          description: Number of records to skip for offset pagination
          schema:
            type: integer
            minimum: 0
            default: 0
      responses:
        '200':
          description: Targets returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicTargetList'
        '400':
          description: Invalid limit or offset
          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:
    PublicTargetList:
      properties:
        targets:
          items:
            $ref: '#/components/schemas/PublicTarget'
          type: array
          title: Targets
        total:
          type: integer
          title: Total
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
        next_cursor:
          type:
            - string
            - 'null'
          title: Next Cursor
      type: object
      required:
        - targets
        - total
        - limit
        - offset
        - next_cursor
      title: PublicTargetList
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message
        code:
          type: string
          description: Stable machine-readable error code when one is available
        request_id:
          type: string
          description: Unique request identifier for debugging
    PublicTarget:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        description:
          title: Description
          type:
            - string
            - 'null'
        target_type:
          type: string
          title: Target Type
        web_domain:
          title: Web Domain
          type:
            - string
            - 'null'
        ip_address:
          title: Ip Address
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        last_assessment_time:
          title: Last Assessment Time
          type:
            - string
            - 'null'
          format: date-time
        api_auth_instructions:
          type:
            - string
            - 'null'
          maxLength: 10000
          description: Target-level API authentication validation instructions.
        created_by:
          anyOf:
            - type: string
              enum:
                - user
                - mindfort
            - type: 'null'
          title: Created By
        created_by_user_id:
          type:
            - string
            - 'null'
          title: Created By User Id
        origin_suggestion_id:
          type:
            - string
            - 'null'
          format: uuid
          title: Origin Suggestion Id
      type: object
      required:
        - id
        - name
        - target_type
        - created_at
        - updated_at
      title: PublicTarget
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key generated from the MindFort dashboard. Pass as `Authorization:
        Bearer <your-api-key>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.