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

# Create Report

> Persist a signed behavioural-change report. A SILENT change (a flagged
dimension no governance event explains) is the unauthorised-change finding:
it flags the agent for re-certification and emits an agent_behavior_changed
webhook. A governance act — producing the signed artifact is a sign-off.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/behavior/agents/{agent_id}/report
openapi: 3.1.0
info:
  title: Sakshi — Agent Governance API
  description: >-
    Registry (KYA), decision flight recorder, bounded autonomy, evidence packs,
    fairness screens. Auth: bearer ingest keys create evidence; OIDC JWTs with
    governance roles mutate state.
  version: 0.1.0
servers:
  - url: https://demo.rotavision.com
    description: Public demo (read-only, synthetic data)
  - url: https://{host}
    description: Your Sakshi deployment (single-tenant, in your environment)
    variables:
      host:
        default: sakshi.your-company.internal
security:
  - bearerAuth: []
paths:
  /api/v1/behavior/agents/{agent_id}/report:
    post:
      tags:
        - behavior
      summary: Create Report
      description: >-
        Persist a signed behavioural-change report. A SILENT change (a flagged

        dimension no governance event explains) is the unauthorised-change
        finding:

        it flags the agent for re-certification and emits an
        agent_behavior_changed

        webhook. A governance act — producing the signed artifact is a sign-off.
      operationId: create_report_api_v1_behavior_agents__agent_id__report_post
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            title: Agent Id
        - name: window
          in: query
          required: false
          schema:
            type: integer
            maximum: 2000
            minimum: 10
            default: 100
            title: Window
        - name: min_samples
          in: query
          required: false
          schema:
            type: integer
            maximum: 1000
            minimum: 5
            default: 30
            title: Min Samples
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChangeReportOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ChangeReportOut:
      properties:
        id:
          type: string
          title: Id
        agent_id:
          type: string
          title: Agent Id
        agent_name:
          type: string
          title: Agent Name
        status:
          type: string
          title: Status
        classification:
          type: string
          title: Classification
        top_psi:
          type: number
          title: Top Psi
        flagged_dimensions:
          items:
            type: string
          type: array
          title: Flagged Dimensions
        recert_triggered:
          type: boolean
          title: Recert Triggered
        created_at:
          type: string
          format: date-time
          title: Created At
        ran_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Ran By
      type: object
      required:
        - id
        - agent_id
        - agent_name
        - status
        - classification
        - top_psi
        - flagged_dimensions
        - recert_triggered
        - created_at
        - ran_by
      title: ChangeReportOut
    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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Ingest API key or OIDC JWT. See /authentication.

````