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

# Generate case report

> Generate a case report for a specific case by its ID. The report will be sent to the user's email.

<Info>
  The generated report will be sent to the user's email address.
</Info>

**Note**: This endpoint initiates the case report generation process. The report is not returned directly but will be delivered via email.


## OpenAPI

````yaml get /api/cases/{id}/generate_case_report
openapi: 3.0.3
info:
  title: Athena API
  version: v3
  x-logo:
    url: https://cynopsis.co/wp-content/uploads/2021/03/logo-2.png
    altText: Cynopsis Solutions
  description: >-
    ATHENA is an advanced real-time transaction monitoring solution designed to
    detect and prevent money laundering, fraud, and terrorism financing. Powered
    by proprietary AML rules, ATHENA analyzes transactions in real time,
    providing clear, intuitive visual insights to streamline compliance
    processes.
        
        ✅ Real-Time Monitoring – Instantly analyzes transaction data to detect anomalies and potential compliance risks.
        ✅ Visualized Insights – Converts complex data into easy-to-understand charts, aiding faster decision-making.
        ✅ Seamless Integration – Easily integrates with existing financial and compliance systems.
        
        Ideal for financial institutions, fintech companies, and regulated businesses, ATHENA enhances risk management and ensures regulatory compliance with ease.
  contact:
    email: tech@cynopsis.co
servers:
  - url: http://localhost/api
    description: Local development server
security: []
paths:
  /api/cases/{id}/generate_case_report:
    get:
      tags:
        - Case
      summary: Generate case report
      description: >-
        Generate a case report for a specific case by its ID. The report will be
        sent to the user's email.
      operationId: case_generate_case_report
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          description: A unique integer value identifying this case.
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: >-
                      Success message indicating report generation has been
                      initiated
                required:
                  - detail
                description: Report generation response
          description: Case report generation initiated successfully.
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Error message
                  code:
                    type: string
                    description: Error code (optional)
                  field_errors:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
                    description: Field-specific validation errors (optional)
                required:
                  - detail
                description: Standard error response
          description: Invalid case ID.
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Error message
                  code:
                    type: string
                    description: Error code (optional)
                  field_errors:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
                    description: Field-specific validation errors (optional)
                required:
                  - detail
                description: Standard error response
          description: Case not found.
      security:
        - CustomAuthentication: []
        - cookieAuth: []
        - BearerAuth: []
components:
  securitySchemes:
    CustomAuthentication:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token obtained from AWS Cognito or custom authentication service
    cookieAuth:
      type: apiKey
      in: cookie
      name: sessionid

````