> ## 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 TLS certificate statistics for a workspace

> Retrieves TLS certificate statistics grouped by expiration status using not_after field, and counts newly discovered certificates within the last 30 days.



## OpenAPI

````yaml /api-reference/openapi.json get /api/statistic/tls
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/tls:
    get:
      tags:
        - Statistic
      summary: Get TLS certificate statistics for a workspace
      description: >-
        Retrieves TLS certificate statistics grouped by expiration status using
        not_after field, and counts newly discovered certificates within the
        last 30 days.
      operationId: StatisticController_getTlsStatistics
      parameters:
        - name: X-Workspace-Id
          in: header
          description: Workspace ID
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TlsStatisticResponseDto'
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
components:
  schemas:
    TlsStatisticResponseDto:
      type: object
      properties:
        alreadyExpired:
          type: number
        expireInAMonth:
          type: number
        expireIn3Months:
          type: number
        wontExpireAnytimeSoon:
          type: number
        newCertificatesDiscovered:
          type: number
      required:
        - alreadyExpired
        - expireInAMonth
        - expireIn3Months
        - wontExpireAnytimeSoon
        - newCertificatesDiscovered

````