> ## 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 SIM usage statistics for endpoint

> Operacion: Get SIM usage statistics for endpoint.



## OpenAPI

````yaml /generated/specs/diagnostics.json get /api/v1/emnify/endpoint/{endpointId}/stats
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/emnify/endpoint/{endpointId}/stats:
    get:
      tags:
        - Endpoint Management
      summary: Get SIM usage statistics for endpoint
      description: 'Operacion: Get SIM usage statistics for endpoint.'
      operationId: EndpointManagementController_getEndpointStats
      parameters:
        - name: endpointId
          required: true
          in: path
          description: Emnify endpoint ID
          schema:
            type: number
        - name: sim_id
          required: true
          in: query
          description: SIM ID to get stats for
          schema:
            type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimStatsResponseDto'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmnifyErrorDto'
      security:
        - bearerAuth: []
components:
  schemas:
    SimStatsResponseDto:
      type: object
      properties:
        current_month:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/SimCurrentMonthDto'
          type: object
        last_month:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/SimLastMonthDto'
          type: object
        last_hour:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/SimLastHourDto'
          type: object
    EmnifyErrorDto:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: string
      required:
        - error
        - message
    SimCurrentMonthDto:
      type: object
      properties:
        volume_mb:
          type: number
        volume_rx_mb:
          type: number
        volume_tx_mb:
          type: number
        last_updated:
          type: object
      required:
        - volume_mb
        - volume_rx_mb
        - volume_tx_mb
    SimLastMonthDto:
      type: object
      properties:
        volume_mb:
          type: number
        volume_rx_mb:
          type: number
        volume_tx_mb:
          type: number
      required:
        - volume_mb
        - volume_rx_mb
        - volume_tx_mb
    SimLastHourDto:
      type: object
      properties:
        data_rx:
          type: array
          items:
            type: array
          description: Array of [time, bytes] pairs for RX
        data_tx:
          type: array
          items:
            type: array
          description: Array of [time, bytes] pairs for TX
      required:
        - data_rx
        - data_tx
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication

````