> ## 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.

# Poll run status

> Fetch a run's status. Optionally compute a pass/fail verdict by supplying min_severity.



## OpenAPI

````yaml https://api.enokilabs.ai/openapi.json get /api/v1/run/{run_id}
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: []
security: []
paths:
  /api/v1/run/{run_id}:
    get:
      tags:
        - assessment
      summary: Poll run status
      description: >-
        Fetch a run's status. Optionally compute a pass/fail verdict by
        supplying min_severity.
      operationId: api_get_run_status_api_v1_run__run_id__get
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            title: Run Id
        - name: min_severity
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: 'Severity threshold for verdict: critical, high, medium, low.'
            title: Min Severity
          description: 'Severity threshold for verdict: critical, high, medium, low.'
        - 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/ApiRunStatusResponse'
        '400':
          description: Invalid min_severity value
        '404':
          description: Run not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ApiRunStatusResponse:
      properties:
        run_id:
          type: string
          title: Run Id
        model_id:
          type: string
          title: Model Id
        status:
          type: string
          title: Status
        verdict:
          anyOf:
            - type: string
              enum:
                - pass
                - fail
            - type: 'null'
          title: Verdict
        started_at:
          type: string
          title: Started At
        completed_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Completed At
        findings_count:
          type: integer
          title: Findings Count
        findings_above_threshold:
          anyOf:
            - type: integer
            - type: 'null'
          title: Findings Above Threshold
        categories_planned:
          items:
            type: string
          type: array
          title: Categories Planned
        categories_completed:
          items:
            type: string
          type: array
          title: Categories Completed
      type: object
      required:
        - run_id
        - model_id
        - status
        - started_at
        - findings_count
        - categories_planned
        - categories_completed
      title: ApiRunStatusResponse
      description: Response for GET /api/v1/run/{run_id}.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````