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

# Get consumption cache status

> Returns diagnostic information about the consumption data cache.

    Includes:
    - Total records (daily vs monthly)
    - Unique phones cached
    - Date range of cached data
    - Today's cache status
    - Number of completed days cached



## OpenAPI

````yaml /generated/specs/diagnostics.json get /api/v1/consumption/cache-status
openapi: 3.0.0
info:
  title: Raul API - Diagnostico
  description: Health, consumo, conectividad, SIMs, webhooks fallidos y estados tecnicos.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/v1/consumption/cache-status:
    get:
      tags:
        - Consumption
      summary: Get consumption cache status
      description: |-
        Returns diagnostic information about the consumption data cache.

            Includes:
            - Total records (daily vs monthly)
            - Unique phones cached
            - Date range of cached data
            - Today's cache status
            - Number of completed days cached
      operationId: ConsumptionController_getCacheStatus
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CacheStatusResponseDto'
        '500':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmnifyErrorDto'
      security:
        - bearerAuth: []
components:
  schemas:
    CacheStatusResponseDto:
      type: object
      properties:
        total_records:
          type: number
        daily_records:
          type: number
        monthly_records:
          type: number
        unique_phones:
          type: number
        date_range:
          $ref: '#/components/schemas/CacheStatusDateRangeDto'
        today:
          $ref: '#/components/schemas/CacheStatusTodayDto'
        completed_days_cached:
          type: number
      required:
        - total_records
        - daily_records
        - monthly_records
        - unique_phones
        - date_range
        - today
        - completed_days_cached
    EmnifyErrorDto:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: string
      required:
        - error
        - message
    CacheStatusDateRangeDto:
      type: object
      properties:
        oldest:
          type: object
        newest:
          type: object
    CacheStatusTodayDto:
      type: object
      properties:
        phones_cached:
          type: number
        last_fetch:
          type: object
      required:
        - phones_cached
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication

````