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

# Get available date filter presets (public)

> Returns pre-calculated date ranges for the dashboard date filter dropdown: **All time** (no dates), **Last 30 days** (default), **Last week**, **This week**. For **Custom Range**, the frontend sends user-selected start_date and end_date directly.



## OpenAPI

````yaml /storage/api-docs/university-api-docs.json get /filters/dates
openapi: 3.0.0
info:
  title: MOGL University API
  description: "University / Compliance API — managing institution compliance workflows, eligibility checks, athlete disclosures, transactions, analytics, and university-related NIL operations.\r\n *\r\n * ## Authentication\r\n * - **JWT Bearer Token**: Most endpoints require a Bearer token obtained via `/compliance/login`.\r\n *\r\n * ## Base Path\r\n * All endpoints are prefixed with `/api/compliance`."
  version: 1.0.0
servers:
  - url: http://localhost/mogl/mogl-compliance-backend/api/compliance
    description: Local
  - url: https://dev-compliance-api.mogl.online/api/compliance
    description: Dev
  - url: https://staging-compliance-api.mogl.online/api/compliance
    description: Staging
  - url: https://compliance-api.mogl.online/api/compliance
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Authentication
    description: Login, registration, password management
  - name: Transactions
    description: Transaction listing, summary, top athletes/teams, export
  - name: Athletes
    description: Athlete management, job details, exports, contract downloads
  - name: Fans
    description: Fan listing
  - name: Analytics
    description: NIL analytics by sport, payment, athletes, types
  - name: College
    description: College users, settings management
  - name: Athlete Agent Disclosures
    description: Agent disclosure CRUD and document downloads
  - name: Notification Preferences
    description: User notification preference management
  - name: Filters
    description: 'Public filter data: dates, sports, gender, roles'
  - name: Colleges
    description: Public college listing
paths:
  /filters/dates:
    get:
      tags:
        - Filters
      summary: Get available date filter presets (public)
      description: >-
        Returns pre-calculated date ranges for the dashboard date filter
        dropdown: **All time** (no dates), **Last 30 days** (default), **Last
        week**, **This week**. For **Custom Range**, the frontend sends
        user-selected start_date and end_date directly.
      operationId: complianceFilterDates
      responses:
        '200':
          description: Date filter options
          content:
            application/json:
              schema:
                properties:
                  status:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Successfully retrieved filters.
                  data:
                    properties:
                      all-time:
                        properties:
                          start_date:
                            type: string
                            example: null
                            nullable: true
                          end_date:
                            type: string
                            example: null
                            nullable: true
                        type: object
                      last-30-days:
                        properties:
                          start_date:
                            type: string
                            format: date
                            example: '2026-02-16'
                          end_date:
                            type: string
                            format: date
                            example: '2026-03-18'
                        type: object
                      last-week:
                        properties:
                          start_date:
                            type: string
                            format: date
                            example: '2026-03-09'
                          end_date:
                            type: string
                            format: date
                            example: '2026-03-15'
                        type: object
                      this-week:
                        properties:
                          start_date:
                            type: string
                            format: date
                            example: '2026-03-16'
                          end_date:
                            type: string
                            format: date
                            example: '2026-03-22'
                        type: object
                    type: object
                type: object
        '404':
          description: Not Found
        '500':
          description: Server Error
components:
  securitySchemes:
    bearerAuth:
      type: http
      description: >-
        JWT Bearer token authentication. Use the /api/login endpoint to obtain a
        token.
      scheme: bearer
      bearerFormat: JWT

````