> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enokilabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve what a completed run covered, per category

> One row per category the run probed: attacks blocked, attacks that got through, the category's OWASP and ATLAS codes, and the worst severity it produced. The complement of `/run/{run_id}/findings`. Returns 409 while the run is still going: a missing row would then mean 'not yet' rather than 'clean'. A category the run never probed has no row, so check `run_status` -- a cancelled or errored run reports what it reached, not what it planned.



## OpenAPI

````yaml /openapi.json get /api/v1/run/{run_id}/coverage
openapi: 3.1.0
info:
  title: Enoki External API
  description: >-
    Programmatic API for CI/CD integration. Authenticate with `Authorization:
    Bearer egk_...`.
  version: 0.1.0
servers:
  - url: https://api.enokilabs.ai
    description: Enoki API
security: []
paths:
  /api/v1/run/{run_id}/coverage:
    get:
      tags:
        - assessment
      summary: Retrieve what a completed run covered, per category
      description: >-
        One row per category the run probed: attacks blocked, attacks that got
        through, the category's OWASP and ATLAS codes, and the worst severity it
        produced. The complement of `/run/{run_id}/findings`. Returns 409 while
        the run is still going: a missing row would then mean 'not yet' rather
        than 'clean'. A category the run never probed has no row, so check
        `run_status` -- a cancelled or errored run reports what it reached, not
        what it planned.
      operationId: api_get_run_coverage_api_v1_run__run_id__coverage_get
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            title: Run Id
        - name: Authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Bearer token with API key
            title: Authorization
          description: Bearer token with API key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiRunCoverageResponse'
        '404':
          description: Run not found
        '409':
          description: Run still in progress
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ApiRunCoverageResponse:
      properties:
        run_id:
          type: string
          title: Run Id
        run_status:
          type: string
          title: Run Status
          description: >-
            The run's terminal status. Anything but 'completed' means the rows
            below are what the run reached, not what it planned.
        categories:
          items:
            $ref: '#/components/schemas/CategoryCoverage'
          type: array
          title: Categories
          description: One row per category the run probed, ordered by category key.
        categories_probed:
          type: integer
          title: Categories Probed
          description: '``len(categories)``.'
        attacks_blocked:
          type: integer
          title: Attacks Blocked
          description: Attacks the target refused, across every category.
        attacks_got_through:
          type: integer
          title: Attacks Got Through
          description: Attacks that produced a finding.
      type: object
      required:
        - run_id
        - run_status
        - categories
        - categories_probed
        - attacks_blocked
        - attacks_got_through
      title: ApiRunCoverageResponse
      description: Response for GET /api/v1/run/{run_id}/coverage.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CategoryCoverage:
      properties:
        category:
          type: string
          title: Category
          description: Canonical taxonomy key, e.g. 'security.hijacking'.
        display_name:
          type: string
          title: Display Name
        owasp_mapping:
          items:
            type: string
          type: array
          title: Owasp Mapping
        atlas_mapping:
          items:
            type: string
          type: array
          title: Atlas Mapping
        attacks_blocked:
          type: integer
          title: Attacks Blocked
          description: Attacks the target refused.
        attacks_got_through:
          type: integer
          title: Attacks Got Through
          description: Attacks that produced a finding.
        worst_severity:
          anyOf:
            - $ref: '#/components/schemas/FindingSeverity'
            - type: 'null'
          description: Null where the category held.
      type: object
      required:
        - category
        - display_name
        - attacks_blocked
        - attacks_got_through
      title: CategoryCoverage
      description: One category's share of a run.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    FindingSeverity:
      type: string
      enum:
        - critical
        - high
        - medium
        - low
      title: FindingSeverity
      description: Business-impact severity levels, ordered from most to least severe.

````