---
title: "Record CLI error details"
method: POST
path: "/cli/telemetry/error"
tags: ["telemetry"]
---

# Record CLI error details

`POST /cli/telemetry/error`

## Request

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

Records detailed error information for a CLI command that failed. The event_id must reference
a valid event from cli_telemetry_events table, otherwise a 400 error is returned.

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: Command that failed
  - `error_message` string: Detailed error message
  - `error_type` string: Type of error that occurred
  - `event_id` string, required: Event ID to link this error to (must be a valid event_id from cli_telemetry_events)

## Response `201`

CliTelemetryErrorResponse represents the response from recording an error

- 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/error/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)
