> ## 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 Finding Aging

> Returns the number of open findings in each age bucket, for your organization or a single target.



## OpenAPI

````yaml /openapi.json get /v1/findings/metrics/aging
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 probe results are
    labeled `secured`.
servers:
  - url: https://api.mindfort.app
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/findings/metrics/aging:
    get:
      tags:
        - Analytics
      summary: Get Finding Aging
      description: >-
        Returns the number of open findings in each age bucket, for your
        organization or a single target.
      operationId: getFindingAging
      parameters:
        - name: target_id
          in: query
          required: false
          description: Optionally scope organization-wide results to one target
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedTeamAgingResponse'
        '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'
components:
  schemas:
    RedTeamAgingResponse:
      properties:
        target_id:
          title: Target Id
          type:
            - string
            - 'null'
          format: uuid
        org_wide:
          type: boolean
          title: Org Wide
          default: false
        total_open:
          type: integer
          title: Total Open
          default: 0
        buckets:
          items:
            $ref: '#/components/schemas/AgingBucket'
          type: array
          title: Buckets
      type: object
      required:
        - buckets
      title: RedTeamAgingResponse
      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
    AgingBucket:
      properties:
        label:
          type: string
          title: Label
          description: >-
            Cumulative age threshold. A finding in an older threshold also
            contributes to every younger threshold.
        critical:
          type: integer
          title: Critical
          default: 0
        high:
          type: integer
          title: High
          default: 0
        medium:
          type: integer
          title: Medium
          default: 0
        low:
          type: integer
          title: Low
          default: 0
      type: object
      required:
        - label
      title: AgingBucket
      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.