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

# Trigger an assessment run

> Enqueues a security assessment against the specified model.



## OpenAPI

````yaml https://api.enokilabs.ai/openapi.json post /api/v1/run
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:
    post:
      tags:
        - assessment
      summary: Trigger an assessment run
      description: Enqueues a security assessment against the specified model.
      operationId: api_trigger_run_api_v1_run_post
      parameters:
        - 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
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiTriggerRunRequest'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiTriggerRunResponse'
        '400':
          description: Invalid categories or incomplete agent config
        '404':
          description: Model not found
        '409':
          description: Assessment already active for this model
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ApiTriggerRunRequest:
      properties:
        model_id:
          type: string
          title: Model Id
          description: Inventory model UUID
        categories:
          anyOf:
            - items:
                type: string
              type: array
              maxItems: 50
            - type: 'null'
          title: Categories
          description: Focus categories (omit for full assessment)
      type: object
      required:
        - model_id
      title: ApiTriggerRunRequest
      description: Request body for POST /api/v1/run.
    ApiTriggerRunResponse:
      properties:
        run_id:
          type: string
          title: Run Id
        model_id:
          type: string
          title: Model Id
        status:
          type: string
          title: Status
        started_at:
          type: string
          title: Started At
      type: object
      required:
        - run_id
        - model_id
        - status
        - started_at
      title: ApiTriggerRunResponse
      description: Response for POST /api/v1/run (202 Accepted).
    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

````