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

# Get HTTP traffic dashboard data

> Requires the app to have analytics enabled (PATCH /apps/{app_id}/analytics).



## OpenAPI

````yaml /api-reference/openapi.json get /apps/{app_id}/dashboard-data
openapi: 3.0.0
info:
  title: Shard Cloud API
  description: >-
    API reference for Shard Cloud's authenticated management endpoints — Apps,
    Databases, VMs, Custom Docker Images, and project-level Alerts & Backups.
    Every endpoint on this page requires a JWT bearer token (see Authentication
    below). CDN endpoints have their own reference under the CDN tab.
  version: 2.0.0
servers:
  - url: https://shardcloud.app/api
    description: API base path
security: []
tags:
  - name: Databases
    description: PostgreSQL, MySQL, MongoDB, and Redis database services.
  - name: Apps
    description: Web application deployment, files, domains, and configuration.
  - name: VMs
    description: Full Linux virtual machines with SSH access.
  - name: Custom Images
    description: User-built Docker images, deployable straight to an App.
  - name: Project
    description: >-
      Resource alerts and backups — shared across App, Database, and VM
      projects.
paths:
  /apps/{app_id}/dashboard-data:
    get:
      tags:
        - Apps
      summary: Get HTTP traffic dashboard data
      description: >-
        Requires the app to have analytics enabled (PATCH
        /apps/{app_id}/analytics).
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: minutes
          in: query
          required: true
          schema:
            type: string
          description: Time window in minutes.
      responses:
        '200':
          description: Dashboard data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DashboardData'
        '400':
          description: Invalid minutes
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - JWTAuth: []
components:
  schemas:
    DashboardData:
      type: object
      description: >-
        Aggregated HTTP-traffic dashboard data for the requested window.
        Time-series arrays share the shape { timestamp, value } (or a
        metric-specific variant).
      properties:
        rps_timeseries:
          type: array
          items:
            type: object
        request_count_series:
          type: array
          items:
            type: object
        duration_series:
          type: array
          items:
            type: object
        error_series:
          type: array
          items:
            type: object
        browser_data:
          type: array
          items:
            type: object
        route_series:
          type: array
          items:
            type: object
        status_series:
          type: array
          items:
            type: object
        top_slow_routes:
          type: array
          items:
            type: object
        top_error_routes:
          type: array
          items:
            type: object
        average_rps:
          type: number
        total_requests:
          type: integer
          format: int64
        average_duration_ms:
          type: number
        total_server_errors_500:
          type: integer
          format: int64
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    JWTAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Send your API token (Dashboard → Settings → API Token) as
        `Authorization: Bearer <token>`.

````