> ## 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 SLA Metrics

<Info>Required API key permission: `metrics:read`.</Info>


## OpenAPI

````yaml /openapi.json get /v1/findings/metrics/sla
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/findings/metrics/sla:
    get:
      tags:
        - Analytics
      summary: Get SLA Metrics
      operationId: getSLAMetrics
      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/PublicSLAMetrics'
        '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:
    PublicSLAMetrics:
      properties:
        target_id:
          title: Target Id
          type:
            - string
            - 'null'
          format: uuid
        org_wide:
          type: boolean
          title: Org Wide
        breaches:
          items:
            $ref: '#/components/schemas/PublicSLABreach'
          type: array
          title: Breaches
      type: object
      required:
        - org_wide
        - breaches
      title: PublicSLAMetrics
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message
        request_id:
          type: string
          description: Unique request identifier for debugging
    PublicSLABreach:
      properties:
        severity:
          type: string
          enum:
            - secured
            - low
            - medium
            - high
            - critical
          title: Severity
        sla_days:
          type: integer
          title: Sla Days
        total_open:
          type: integer
          title: Total Open
          default: 0
        breached:
          type: integer
          title: Breached
          default: 0
        breach_rate:
          type: number
          title: Breach Rate
          default: 0
      type: object
      required:
        - severity
        - sla_days
      title: PublicSLABreach
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key generated from the MindFort dashboard. Pass as `Authorization:
        Bearer <your-api-key>`.

````