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

# Get timeline statistics for a workspace

> Retrieves statistics for a workspace over the last 3 months, showing trends and changes over time.



## OpenAPI

````yaml /api-reference/openapi.json get /api/statistic/timeline
openapi: 3.0.0
info:
  title: Open Attack Surface Management
  description: Open-source platform for cybersecurity Attack Surface Management (ASM)
  version: '1.0'
  contact: {}
servers:
  - url: https://{baseUrl}/api/v1
    variables:
      baseUrl:
        default: localhost:3000
        description: API server hostname with port (e.g. localhost:3000, api.example.com)
security: []
tags: []
externalDocs:
  description: Authentication Docs
  url: auth/docs
paths:
  /api/statistic/timeline:
    get:
      tags:
        - Statistic
      summary: Get timeline statistics for a workspace
      description: >-
        Retrieves statistics for a workspace over the last 3 months, showing
        trends and changes over time.
      operationId: StatisticController_getTimelineStatistics
      parameters:
        - name: X-Workspace-Id
          in: header
          description: Workspace ID
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TimelineResponseDto'
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
components:
  schemas:
    TimelineResponseDto:
      type: object
      properties:
        data:
          description: List of statistics over time
          type: array
          items:
            $ref: '#/components/schemas/Statistic'
        total:
          type: number
          description: Total count of timeline records
          example: 5
      required:
        - data
        - total
    Statistic:
      type: object
      properties:
        id:
          type: string
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        assets:
          type: number
          description: Number of assets
          default: 0
        targets:
          type: number
          description: Number of targets
          default: 0
        vuls:
          type: number
          description: Number of vulnerabilities
          default: 0
        criticalVuls:
          type: number
          description: Number of critical vulnerabilities
          default: 0
        highVuls:
          type: number
          description: Number of high severity vulnerabilities
          default: 0
        mediumVuls:
          type: number
          description: Number of medium severity vulnerabilities
          default: 0
        lowVuls:
          type: number
          description: Number of low severity vulnerabilities
          default: 0
        infoVuls:
          type: number
          description: Number of info severity vulnerabilities
          default: 0
        techs:
          type: number
          description: Number of technologies detected
          default: 0
        ports:
          type: number
          description: Number of ports
          default: 0
        services:
          type: number
          description: Number of services
          default: 0
        score:
          type: number
          description: Security score
          default: 0
      required:
        - id
        - createdAt
        - updatedAt
        - assets
        - targets
        - vuls
        - criticalVuls
        - highVuls
        - mediumVuls
        - lowVuls
        - infoVuls
        - techs
        - ports
        - services
        - score

````