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

> Read whether a target is verified for active testing, without running a DNS check. For web_app and api targets, returns the DNS TXT record that proves ownership and the last check result. Network targets cannot be self-verified; request verification by emailing support@mindfort.ai.



## OpenAPI

````yaml /openapi.json get /v1/targets/{target_id}/domain-verification
openapi: 3.1.0
info:
  title: MindFort API
  version: 1.0.0
  description: >-
    The MindFort Public API supports targets and domain verification, Discovery,
    assessments, finding lifecycle and analytics, reports, and read-only credit
    usage. Informational probe results are labeled `secured`.
servers:
  - url: https://api.mindfort.app
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/targets/{target_id}/domain-verification:
    get:
      tags:
        - Targets
      summary: Get Target Verification
      description: >-
        Read whether a target is verified for active testing, without running a
        DNS check. For web_app and api targets, returns the DNS TXT record that
        proves ownership and the last check result. Network targets cannot be
        self-verified; request verification by emailing support@mindfort.ai.
      operationId: getTargetVerification
      parameters:
        - name: target_id
          in: path
          required: true
          description: Target UUID
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Verification state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicTargetVerification'
        '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'
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    PublicTargetVerification:
      title: PublicTargetVerification
      description: Whether a target may be actively tested, and how to verify it if not.
      type: object
      properties:
        target_id:
          type: string
          format: uuid
          title: Target Id
        target_type:
          type: string
          title: Target Type
        verified:
          type: boolean
          description: >-
            Whether active testing may start. web_app and api targets need their
            domain, or a parent domain, verified by DNS; network targets are
            verified by MindFort on request through support@mindfort.ai.
        domain_verification:
          anyOf:
            - $ref: '#/components/schemas/PublicDomainVerification'
            - type: 'null'
          description: >-
            DNS ownership details for web_app and api targets; null for network
            targets.
      required:
        - target_id
        - target_type
        - verified
      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
    PublicDomainVerification:
      title: PublicDomainVerification
      description: >-
        Ownership of a web_app or api target's domain, proved by a DNS TXT
        record.
      type: object
      properties:
        domain:
          type: string
          description: Hostname whose ownership is verified.
        verified:
          type: boolean
          description: >-
            Whether active testing may start: the domain or a parent domain is
            verified.
        verification_method:
          type:
            - string
            - 'null'
          description: >-
            dns_txt, email_domain, bypass, or parent when a verified parent
            domain covers this one.
        record_type:
          type: string
          enum:
            - TXT
          default: TXT
        record_name:
          type: string
          description: >-
            Preferred owner name for the TXT record, such as
            _mindfort.app.example.com.
        accepted_record_names:
          type: array
          items:
            type: string
          description: Every owner name the check accepts, in the order it looks.
        record_value:
          type:
            - string
            - 'null'
          description: >-
            TXT value to publish. Issued when the target is created through the
            API or MCP; null for an older target until POST
            /v1/targets/{target_id}/domain-verification issues one.
        last_check_result:
          type:
            - string
            - 'null'
          description: found, not_found, nxdomain, or inconclusive.
        last_checked_at:
          type:
            - string
            - 'null'
          format: date-time
        unverified_reason:
          type:
            - string
            - 'null'
          description: Why a previously verified domain lost verification.
      required:
        - domain
        - verified
        - record_name
      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.