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

# Get message statistics

> Retrieve aggregate message statistics for a time period



## OpenAPI

````yaml GET /messages/stats
openapi: 3.0.3
info:
  title: NativeMessage API
  version: 1.0.0
  description: Complete API documentation for NativeMessage platform
  contact:
    name: NativeMessage Support
    email: support@nativemessage.com
servers:
  - url: https://api-message.nativehub.live/api/v1
    description: Production server
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /messages/stats:
    get:
      tags:
        - Messages
      summary: Get message statistics
      description: Retrieve aggregate message statistics for a time period
      operationId: getMessageStats
      parameters:
        - name: date_from
          in: query
          description: Start date for statistics
          schema:
            type: string
            format: date
        - name: date_to
          in: query
          description: End date for statistics
          schema:
            type: string
            format: date
      responses:
        '200':
          description: Statistics retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  total:
                    type: integer
                  delivered:
                    type: integer
                  failed:
                    type: integer
                  pending:
                    type: integer
                  queued:
                    type: integer
                example:
                  total: 15420
                  delivered: 14850
                  failed: 320
                  pending: 150
                  queued: 100
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````