---
title: "Send CTR Data"
method: PUT
path: "/api/analytics/ctr"
tags: ["Analytics"]
deprecated: true
---

# Send CTR Data

`PUT /api/analytics/ctr`

> **Deprecated.**

This route allows you to send clickstream data to the system. Clickstream data is used to fine-tune the re-ranking of search results and recommendations.

## Headers

- `TR-Dataset` string, uuid, required

## Request body

- CTRDataRequestBody
  - `clicked_chunk_id` string, uuid, nullable — The ID of chunk that was clicked
  - `clicked_chunk_tracking_id` string, nullable — The tracking ID of the chunk that was clicked
  - `ctr_type` 'search' | 'rag' | 'recommendation', required
  - `metadata` unknown
  - `position` integer, required — The position of the clicked chunk
  - `request_id` string, uuid, required — The request id for the CTR data

## Response `204`

The CTR data was successfully sent

## Other responses

- `400` — Service error relating to sending CTR data

---

[API](https://skmtc.net/devflowinc/apis/trieve-api.md) · [All operations](https://skmtc.net/devflowinc/apis/trieve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/devflowinc/trieve-api/revisions/84583e7c9fc1/schema)
