---
title: "The tracing-operations dashboard's numbers"
method: GET
path: "/api/dashboard-analytics/tracing-metrics/{companyId}"
tags: ["Dashboard Analytics/Tracing Metrics"]
---

# The tracing-operations dashboard's numbers

`GET /api/dashboard-analytics/tracing-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/tracing-metrics/{companyId}`
- Auth: none declared

The traces of the company's direct purchase orders created between `startDate` and `endDate` (the past 30 days and today without both): the purchase orders, the suppliers involved, the average document completion and tracing depth, the depth funnel, the orders per creation day and the suppliers' countries and locations. The `…Last30Days` fields are the same four KPIs over the period of equal length just before. `filter` is a JSON-encoded `TracingMetricsFilter`; its lists, arrays or comma-separated strings, pick the traces counted. Days 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
    - `totalPurchaseOrders` number, required
    - `totalCompaniesInvolved` number, required
    - `avgDocumentCompletionRate` number, required
    - `avgTracingDepth` number, required
    - `totalPurchaseOrdersLast30Days` number, required
    - `totalCompaniesInvolvedLast30Days` number, required
    - `avgDocumentCompletionRateLast30Days` number, required
    - `avgTracingDepthLast30Days` number, required
    - `tracingDepth` object[], required
      - `tracingDepth` number, required
      - `total` number, required
      - `productionProcesses` object[], required
        - `id` string, required
        - `name` string, required
        - `color` string, nullable, required
    - `poPerDate` object[], required
      - `creationDate` string, required
      - `total` number, required
    - `suppliersLocations` object, required
      - `byGeoLocations` object[], required
        - `latitude` number, required
        - `longitude` number, required
      - `byCountries` object[], required
        - `supplierCountry` string, required
        - `purchaseOrderCount` 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/tracing-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)
