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

# Get Target

> Returns a single target by ID, including its type, domain or IP address, API authentication instructions, and last assessment time.



## OpenAPI

````yaml /openapi.json get /v1/targets/{target_id}
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/{target_id}:
    get:
      tags:
        - Targets
      summary: Get Target
      description: >-
        Returns a single target by ID, including its type, domain or IP address,
        API authentication instructions, and last assessment time.
      operationId: getTarget
      parameters:
        - name: target_id
          in: path
          required: true
          description: Target UUID
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicTarget'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Not permitted for this organization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    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
    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
  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.