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

# Get Dashboard Trend

> Daily time-series for a single named metric over a window.
Route: GET /api/v1/dashboard/trend?window=30d&metric=issues_opened
Response: {data: [{date: 'YYYY-MM-DD', value: int}], metric, window}



## OpenAPI

````yaml /openapi.json get /v1/dashboard/trend
openapi: 3.1.0
info:
  description: Causeloop Platform Backend
  title: Causeloop API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/dashboard/trend:
    get:
      tags:
        - dashboard
      summary: Get Dashboard Trend
      description: |-
        Daily time-series for a single named metric over a window.
        Route: GET /api/v1/dashboard/trend?window=30d&metric=issues_opened
        Response: {data: [{date: 'YYYY-MM-DD', value: int}], metric, window}
      operationId: get_dashboard_trend_v1_dashboard_trend_get
      parameters:
        - in: query
          name: window
          required: false
          schema:
            default: 30d
            title: Window
            type: string
        - in: query
          name: metric
          required: false
          schema:
            default: issues_opened
            title: Metric
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrendResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    TrendResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/TrendPoint'
          title: Data
          type: array
        metric:
          title: Metric
          type: string
        window:
          title: Window
          type: string
      required:
        - metric
        - window
        - data
      title: TrendResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    TrendPoint:
      properties:
        date:
          title: Date
          type: string
        value:
          title: Value
          type: integer
      required:
        - date
        - value
      title: TrendPoint
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````