> ## 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 Target Credentials

> Return credential metadata needed to select and use a configured flow. Stored passwords, API keys, TOTP seeds, inbox IDs, and cached one-time codes are never returned.



## OpenAPI

````yaml /openapi.json get /v1/targets/{target_id}/credentials
openapi: 3.1.0
info:
  title: MindFort API
  version: 1.0.0
  description: >-
    The MindFort Public API supports targets, assessments, finding lifecycle and
    analytics, and reports. Public responses use positive field allowlists and
    call informational non-vulnerable results `secured`.
servers:
  - url: https://api.mindfort.app
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/targets/{target_id}/credentials:
    get:
      tags:
        - Credentials
      summary: List Target Credentials
      description: >-
        Return credential metadata needed to select and use a configured flow.
        Stored passwords, API keys, TOTP seeds, inbox IDs, and cached one-time
        codes are never returned.
      operationId: listTargetCredentials
      parameters:
        - name: target_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
      responses:
        '200':
          description: Credential metadata returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicTargetCredentialList'
components:
  schemas:
    PublicTargetCredentialList:
      type: object
      required:
        - credentials
        - total
        - limit
        - offset
        - next_cursor
      properties:
        credentials:
          type: array
          items:
            $ref: '#/components/schemas/PublicTargetCredential'
        total:
          type: integer
        limit:
          type: integer
        offset:
          type: integer
        next_cursor:
          type:
            - string
            - 'null'
      additionalProperties: false
    PublicTargetCredential:
      type: object
      required:
        - id
        - role
        - api_key_configured
        - created_at
        - updated_at
      properties:
        id:
          type: string
          format: uuid
        credential_name:
          type:
            - string
            - 'null'
        username:
          type:
            - string
            - 'null'
        role:
          type: string
        description:
          type:
            - string
            - 'null'
        login_instructions:
          type:
            - string
            - 'null'
        credential_type:
          type:
            - string
            - 'null'
        agentmail_email:
          type:
            - string
            - 'null'
        authenticator_phone_number:
          type:
            - string
            - 'null'
          description: >-
            System-provisioned phone number for SMS credentials; not a writable
            authenticator input.
        api_key_configured:
          type: boolean
        api_key_placement:
          anyOf:
            - $ref: '#/components/schemas/PublicAPIKeyPlacement'
            - type: 'null'
        api_additional_fields:
          type:
            - object
            - 'null'
          additionalProperties:
            type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      additionalProperties: false
    PublicAPIKeyPlacement:
      type: object
      required:
        - kind
      properties:
        kind:
          type: string
          enum:
            - bearer
            - header
            - query
            - json_body
        header_name:
          type:
            - string
            - 'null'
        query_param:
          type:
            - string
            - 'null'
        json_field_path:
          type:
            - string
            - 'null'
        bearer_prefix:
          type:
            - string
            - 'null'
        extra_headers:
          type:
            - object
            - 'null'
          additionalProperties:
            type: string
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key generated from the MindFort dashboard. Pass as `Authorization:
        Bearer <your-api-key>`.

````