---
title: "The certificate-compliance dashboard's numbers"
method: GET
path: "/api/dashboard-analytics/certification-metrics/{companyId}"
tags: ["Dashboard Analytics/Certification Metrics"]
---

# The certificate-compliance dashboard's numbers

`GET /api/dashboard-analytics/certification-metrics/{companyId}`

## Request

- Base URL: `https://api.retraced.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.retraced.com/api/dashboard-analytics/certification-metrics/{companyId}`
- Auth: none declared

For the company's suppliers (linked companies its profile marks a supplier, or gives no connection type): the approved certificates not expired today and the % of suppliers holding one, approved certificates by expiry month (`EXPIRED` and the current month and next four) and by production step, and every certificate not expired before this month by review status. `filter` is a JSON-encoded `CertificationMetricsFilter`; its lists, arrays or comma-separated strings, narrow every count. Days and months are read in the `x-timezone` header's timezone (UTC without it). Only the company itself or Retraced staff may read it.

## Path parameters

- `companyId` string, required

## Query parameters

- `filter` string

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required: True when the request succeeded.
  - `data` object, required
    - `totalApprovedButNotExpiredCertificates` number, required
    - `supplierWithAtLeastOneCertificate` number, required
    - `expirationCertificatesByMonth` object, required
    - `certificatesByStatus` object, required
      - `DRAFT` number, required
      - `APPROVED` number, required
      - `REQUESTED` number, required
      - `NOT_VERIFIABLE` number, required
    - `certificatesExpirationByProductionSteps` object[], required
      - `depthLevel` number, required
      - `valid` number, required
      - `soonToExpire` number, required
      - `expired` number, required

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response

## Changes

> 108 revisions in range; 2 not diffed.

- **2026-10-13** `b9cf8bef8ed3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/retraced/apis/api-reference/changes/api/dashboard-analytics/certification-metrics/:companyId/get.md)

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) - [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/retraced/apis/api-reference/revisions/83309c4abd20?raw)
