> ## 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 Discovery Status



## OpenAPI

````yaml /openapi.json get /v1/discovery
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 non-vulnerable results
    are labeled `secured`.
servers:
  - url: https://api.mindfort.app
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/discovery:
    get:
      tags:
        - Discovery
      summary: Get Discovery Status
      operationId: getDiscoveryStatus
      responses:
        '200':
          description: Discovery status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicDiscoveryStatus'
components:
  schemas:
    PublicDiscoveryStatus:
      type: object
      properties:
        schedule:
          anyOf:
            - $ref: '#/components/schemas/PublicDiscoverySchedule'
            - type: 'null'
        active_run:
          anyOf:
            - $ref: '#/components/schemas/PublicDiscoveryActiveRun'
            - type: 'null'
        last_run:
          anyOf:
            - $ref: '#/components/schemas/PublicDiscoveryLastRun'
            - type: 'null'
        pending_count:
          type: integer
        context_note:
          type: string
      required:
        - schedule
        - active_run
        - last_run
        - pending_count
        - context_note
      additionalProperties: false
    PublicDiscoverySchedule:
      type: object
      properties:
        id:
          type: string
          format: uuid
        schedule_type:
          type: string
          enum:
            - daily
            - weekly
        scheduled_time:
          type: string
        day_of_week:
          type:
            - integer
            - 'null'
        timezone:
          type: string
        is_active:
          type: boolean
        next_run_at:
          type:
            - string
            - 'null'
          format: date-time
        last_run_at:
          type:
            - string
            - 'null'
          format: date-time
        last_run_errored:
          type: boolean
        error_message:
          type:
            - string
            - 'null'
      required:
        - id
        - schedule_type
        - scheduled_time
        - day_of_week
        - timezone
        - is_active
        - next_run_at
        - last_run_at
        - last_run_errored
        - error_message
      additionalProperties: false
    PublicDiscoveryActiveRun:
      type: object
      properties:
        run_id:
          type: string
        status:
          type: string
          enum:
            - queued
            - running
        created_at:
          type: string
          format: date-time
        started_at:
          type:
            - string
            - 'null'
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - run_id
        - status
        - created_at
        - started_at
        - updated_at
      additionalProperties: false
    PublicDiscoveryLastRun:
      type: object
      properties:
        run_id:
          type: string
        status:
          type: string
          enum:
            - start_failed
            - running
            - completed
            - failed
            - cancelled
        error:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
        started_at:
          type:
            - string
            - 'null'
          format: date-time
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - run_id
        - status
        - error
        - created_at
        - started_at
        - completed_at
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key generated from the MindFort dashboard. Pass as `Authorization:
        Bearer <your-api-key>`.

````