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

> Declaring an incident is a human act (reviewer and above); the report
assembles itself from the flight recorder.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/vidhi/incidents
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/vidhi/incidents:
    post:
      tags:
        - vidhi
      summary: Create Incident
      description: |-
        Declaring an incident is a human act (reviewer and above); the report
        assembles itself from the flight recorder.
      operationId: create_incident_api_v1_vidhi_incidents_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IncidentCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IncidentOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    IncidentCreate:
      properties:
        agent_id:
          type: string
          title: Agent Id
        title:
          type: string
          maxLength: 200
          minLength: 1
          title: Title
        severity:
          type: string
          enum:
            - low
            - medium
            - high
            - critical
          title: Severity
        description:
          type: string
          maxLength: 4000
          minLength: 1
          title: Description
        seq_from:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Seq From
        seq_to:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Seq To
        harm_categories:
          anyOf:
            - items:
                type: string
                enum:
                  - health_harm
                  - critical_infrastructure
                  - rights_violation
                  - property_community_environment
              type: array
            - type: 'null'
          title: Harm Categories
        detected_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Detected At
        occurred_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Occurred At
        use_case:
          anyOf:
            - type: string
              enum:
                - credit_decisioning
                - fraud
                - customer_support
                - marketing
                - others
            - type: 'null'
          title: Use Case
        affected_stakeholders:
          anyOf:
            - type: string
              enum:
                - internal
                - external
                - both
            - type: 'null'
          title: Affected Stakeholders
        root_cause_preliminary:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
          title: Root Cause Preliminary
        immediate_actions:
          anyOf:
            - type: string
              maxLength: 2000
            - type: 'null'
          title: Immediate Actions
      type: object
      required:
        - agent_id
        - title
        - severity
        - description
      title: IncidentCreate
    IncidentOut:
      properties:
        id:
          type: string
          title: Id
        agent_id:
          type: string
          title: Agent Id
        title:
          type: string
          title: Title
        severity:
          type: string
          title: Severity
        description:
          type: string
          title: Description
        seq_from:
          anyOf:
            - type: integer
            - type: 'null'
          title: Seq From
        seq_to:
          anyOf:
            - type: integer
            - type: 'null'
          title: Seq To
        status:
          type: string
          title: Status
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        resolved_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Resolved By
        resolution_note:
          anyOf:
            - type: string
            - type: 'null'
          title: Resolution Note
        created_at:
          type: string
          format: date-time
          title: Created At
        resolved_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Resolved At
        report_due_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Report Due At
        detected_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Detected At
        occurred_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Occurred At
        use_case:
          anyOf:
            - type: string
            - type: 'null'
          title: Use Case
      type: object
      required:
        - id
        - agent_id
        - title
        - severity
        - description
        - seq_from
        - seq_to
        - status
        - created_by
        - resolved_by
        - resolution_note
        - created_at
        - resolved_at
      title: IncidentOut
    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.

````