---
title: "Read draft approval/edit/rejection rates and auto-send gate state"
method: GET
path: "/api/analytics/trust-score"
tags: ["Analytics"]
---

# Read draft approval/edit/rejection rates and auto-send gate state

`GET /api/analytics/trust-score`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/analytics/trust-score`
- Auth: one of:
  - API key in cookie `luca.session_token`
  - API key in header `x-api-key`
  - HTTP bearer

How often the coach approves, edits, or rejects drafts, and where that leaves the auto-send gate. This is the number that decides whether auto-send can go on at all.

**API key scopes:** `analytics:read`.

## Query parameters

- `period` 'this_week' | 'this_month' | 'last_week' | 'last_month' | 'last_30_days'
- `channel` 'telegram' | 'instagram' | 'messenger' | 'whatsapp'

## Headers

- `Luca-API-Version` '1'

## Response `200`

ok

- AnalyticsTrustScoreResponse
  - `period` 'this_week' | 'this_month' | 'last_week' | 'last_month' | 'last_30_days', required
  - `channel` string, nullable, required
  - `window` object, required
    - `cutoff` string, required
    - `until` string, nullable, required
  - `approvalRate` number, nullable, required
  - `editDistanceP50` number, nullable, required
  - `rejectionRate` number, nullable, required
  - `autoSendEnabled` boolean, required
  - `approvedCount` integer, required
  - `editedCount` integer, required
  - `rejectedCount` integer, required

## Other responses

- `401`: unauthorized
- `429`: rate limited
- `500`: internal error
- `503`: service unavailable

---

[API](https://skmtc.dev/setluca/apis/luca-api.md) · [All operations](https://skmtc.dev/setluca/apis/luca-api/llms.txt) · [OpenAPI document](https://skmtc.dev/setluca/apis/luca-api/revisions/90a200e4100b?raw)
