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

# Verify Target Domain

> Prove ownership of a web_app or api target's domain so active testing can start. Issues the target's DNS TXT token if it has none, then checks DNS once and returns the record to publish and the result. Network targets are rejected with the network_target_verification error code: they cannot be self-verified, so request verification by emailing support@mindfort.ai.



## OpenAPI

````yaml /openapi.json post /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:
    post:
      tags:
        - Targets
      summary: Verify Target Domain
      description: >-
        Prove ownership of a web_app or api target's domain so active testing
        can start. Issues the target's DNS TXT token if it has none, then checks
        DNS once and returns the record to publish and the result. Network
        targets are rejected with the network_target_verification error code:
        they cannot be self-verified, so request verification by emailing
        support@mindfort.ai.
      operationId: verifyTargetDomain
      parameters:
        - name: target_id
          in: path
          required: true
          description: Target UUID
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Check result and the TXT record to publish
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicDomainVerificationCheck'
        '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'
        '409':
          description: Network target, or a check is already running
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    PublicDomainVerificationCheck:
      title: PublicDomainVerificationCheck
      description: >-
        Result of one DNS check started by POST
        /v1/targets/{target_id}/domain-verification.
      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.
        reason:
          type:
            - string
            - 'null'
          description: >-
            Why this check did not verify, such as token_not_found,
            dns_nxdomain, or dns_timeout.
        checked_names:
          type: array
          items:
            type: string
          description: Owner names this check looked at.
      required:
        - domain
        - verified
        - record_name
      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.