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

> Starts an asynchronous live sign-in check for a stored target credential and returns a run with status `running`. The target must be verified first. Poll GET /v1/targets/{target_id}/credentials/{credential_id}/verify/{run_id} until status is `succeeded`, `failed`, `cancelled`, or `error`. A sign-in check usually takes a few minutes. Retry with the same idempotency key to get the same run instead of starting a new one.



## OpenAPI

````yaml /openapi.json post /v1/targets/{target_id}/credentials/{credential_id}/verify
openapi: 3.1.0
info:
  title: MindFort API
  version: 1.0.0
  description: >-
    The MindFort Public API supports targets, domain verification, and
    credential 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}/credentials/{credential_id}/verify:
    post:
      tags:
        - Credentials
      summary: Verify Target Credential
      description: >-
        Starts an asynchronous live sign-in check for a stored target credential
        and returns a run with status `running`. The target must be verified
        first. Poll GET
        /v1/targets/{target_id}/credentials/{credential_id}/verify/{run_id}
        until status is `succeeded`, `failed`, `cancelled`, or `error`. A
        sign-in check usually takes a few minutes. Retry with the same
        idempotency key to get the same run instead of starting a new one.
      operationId: verifyTargetCredential
      parameters:
        - name: target_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: credential_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            Optional key for safely retrying a verification start. Requests with
            the same key for the same credential return the same run. A UUID key
            becomes the run_id.
          schema:
            type: string
            minLength: 1
            maxLength: 128
            pattern: ^[A-Za-z0-9._:-]+$
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerifyTargetCredentialRequest'
      responses:
        '202':
          description: Credential verification started
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicCredentialVerification'
        '400':
          description: >-
            Invalid request, or the target is not verified
            (`target_not_verified`)
          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: Target or credential not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: >-
            This credential type cannot be verified
            (`credential_not_verifiable`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: >-
            Rate limit, sign-in cooldown after a recent failure
            (`credential_verification_cooldown`), or verification busy
            (`credential_verification_busy`). Wait for `Retry-After` before
            retrying.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    VerifyTargetCredentialRequest:
      type: object
      properties:
        idempotency_key:
          type:
            - string
            - 'null'
          minLength: 1
          maxLength: 128
          pattern: ^[A-Za-z0-9._:-]+$
          description: >-
            Optional key for safely retrying a verification start, as an
            alternative to the Idempotency-Key header. A UUID key becomes the
            run_id.
      additionalProperties: false
    PublicCredentialVerification:
      type: object
      required:
        - run_id
        - target_id
        - credential_id
        - status
      properties:
        run_id:
          type: string
          format: uuid
        target_id:
          type: string
          format: uuid
        credential_id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - running
            - succeeded
            - failed
            - cancelled
            - error
        last_login_successful:
          type:
            - boolean
            - 'null'
          description: >-
            The credential's recorded sign-in outcome when this response was
            produced.
        last_login_successful_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Time of the credential's most recent recorded sign-in attempt,
            whether it succeeded or failed.
        failure_reason:
          type:
            - string
            - 'null'
          description: >-
            Why the run failed or ended in error, written for the user who
            manages the credential.
      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.