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

# Get cases by bucket

> Retrieve statistics for cases grouped by bucket.



## OpenAPI

````yaml get /api/cases/bucket
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/bucket:
    get:
      tags:
        - Case
      summary: Get cases by bucket
      description: Retrieve statistics for cases grouped by bucket.
      operationId: case_bucket
      parameters:
        - in: query
          name: assignees
          schema:
            type: string
          description: Filter cases by assignee ID(s).
        - in: query
          name: buckets
          schema:
            type: string
          description: Filter cases by bucket ID(s).
        - in: query
          name: end_date
          schema:
            type: string
          description: End date to filter cases.
        - in: query
          name: is_active
          schema:
            type: string
          description: Filter cases by active status.
        - in: query
          name: rules
          schema:
            type: string
          description: Filter cases by rule ID(s).
        - in: query
          name: start_date
          schema:
            type: string
          description: Start date to filter cases.
        - in: query
          name: statuses
          schema:
            type: string
          description: Filter cases by status(es).
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                description: Case bucket data
          description: Cases grouped by bucket retrieved successfully.
      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

````