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

# Generate Report On Demand

> Generate a trust report on demand (Layer 3).

This endpoint triggers LLM analysis + HTML/PDF report generation
for a completed evaluation. Reports are cached in S3 — subsequent
calls return the cached version unless force_regenerate=True.

Reports are NOT auto-generated on evaluation completion (CON-256).
Users explicitly request reports when they need proof of compliance
or want a printable summary.



## OpenAPI

````yaml /openapi/api.json post /v1/evaluations/{evaluation_id}/report
openapi: 3.1.0
info:
  title: Vijil Console API (Combined)
  description: Combined OpenAPI specification for all vijil-console microservices.
  version: 0.1.0
servers: []
security: []
tags:
  - name: Teams
    description: Authentication, users, and team management
  - name: Agent Environment
    description: Agent, persona, policy, and harness management
  - name: Diamond
    description: Evaluation management and report retrieval
  - name: Dome
    description: Protection, guardrails, and telemetry
  - name: Red Team
    description: Red team campaigns
paths:
  /v1/evaluations/{evaluation_id}/report:
    post:
      tags:
        - Diamond
        - evaluations
      summary: Generate Report On Demand
      description: |-
        Generate a trust report on demand (Layer 3).

        This endpoint triggers LLM analysis + HTML/PDF report generation
        for a completed evaluation. Reports are cached in S3 — subsequent
        calls return the cached version unless force_regenerate=True.

        Reports are NOT auto-generated on evaluation completion (CON-256).
        Users explicitly request reports when they need proof of compliance
        or want a printable summary.
      operationId: generate_report_on_demand_v1_evaluations__evaluation_id__report_post
      parameters:
        - name: evaluation_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Evaluation Id
        - name: team_id
          in: query
          required: true
          schema:
            type: string
            format: uuid
            description: Team that owns this evaluation
            title: Team Id
          description: Team that owns this evaluation
        - name: force_regenerate
          in: query
          required: false
          schema:
            type: boolean
            description: Force regeneration even if cached
            default: false
            title: Force Regenerate
          description: Force regeneration even if cached
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Generate Report On Demand V1 Evaluations  Evaluation
                  Id  Report Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````