> ## 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 top connections

> Retrieve top performing connections by message volume



## OpenAPI

````yaml GET /analytics/top-connections
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:
  /analytics/top-connections:
    get:
      tags:
        - Analytics
      summary: Get top connections
      description: Retrieve top performing connections by message volume
      operationId: getTopConnections
      parameters:
        - name: date_from
          in: query
          description: Start date for analytics
          schema:
            type: string
            format: date
        - name: date_to
          in: query
          description: End date for analytics
          schema:
            type: string
            format: date
        - name: limit
          in: query
          description: Number of top connections to return
          schema:
            type: integer
            default: 10
      responses:
        '200':
          description: Top connections retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    connection_id:
                      type: string
                      format: uuid
                    name:
                      type: string
                    total:
                      type: integer
                    delivered:
                      type: integer
                    failed:
                      type: integer
                example:
                  - connection_id: f6a7b8c9-d0e1-2345-fa67-890123456789
                    name: Grameenphone Gateway
                    total: 52430
                    delivered: 51280
                    failed: 1150
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````