---
title: "Record CLI resource statistics"
method: POST
path: "/cli/telemetry/stats"
tags: ["telemetry"]
---

# Record CLI resource statistics

`POST /cli/telemetry/stats`

## Request

- Base URL: `https://api.replicated.com/vendor/v3`
- URL: `https://api.replicated.com/vendor/v3/cli/telemetry/stats`
- Auth: API key in header `Authorization`

Records resource count statistics for a CLI operation, including number of Helm charts,
Kubernetes manifests, preflights, and support bundles. Also captures tool version information.

Note: Authentication required. Team and user information is extracted automatically from the Bearer token.
This endpoint is accessible to all authenticated users, including read-only users, to ensure comprehensive telemetry collection.

## Request body

- object
  - `command` string, required: Name of the CLI command
  - `helm_charts` integer: Number of Helm charts in the release
  - `k8s_manifests` integer: Number of Kubernetes manifests in the release
  - `preflights` integer: Number of preflight checks
  - `support_bundles` integer: Number of support bundle definitions
  - `tool_versions` object: Versions of tools used (e.g., helm, kubectl)

## Response `201`

CliTelemetryStatsResponse represents the response from recording stats

- object
  - `status` string: Status indicator

## Other responses

- `400`: Returned on bad input
- `401`: Return if the caller is not authorized

## Changes

- **2026-11-03** `a36c6aead22f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/replicated/apis/vendor-api-v3-2/changes/cli/telemetry/stats/post.md)

---

[API](https://skmtc.dev/replicated/apis/vendor-api-v3-2.md) - [All operations](https://skmtc.dev/replicated/apis/vendor-api-v3-2/llms.txt) - [OpenAPI document](https://skmtc.dev/replicated/apis/vendor-api-v3-2/revisions/a36c6aead22f?raw)
