> ## 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 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/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/ListTargetsResponse'
        '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:
    ListTargetsResponse:
      type: object
      properties:
        targets:
          type: array
          items:
            $ref: '#/components/schemas/Target'
        total:
          type: integer
          description: Total targets matching the query
        limit:
          type: integer
          description: Maximum targets returned
        offset:
          type: integer
          description: Number of targets skipped
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message
        request_id:
          type: string
          description: Unique request identifier for debugging
    Target:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the target
        name:
          type: string
          description: Target name
        web_domain:
          type:
            - string
            - 'null'
          description: Primary web domain for the target
        created_at:
          type: string
          format: date-time
          description: Target creation timestamp
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key generated from the MindFort dashboard. Pass as `Authorization:
        Bearer <your-api-key>`.

````