---
title: "Get the spread of the coach's edits to Luca's drafts"
method: GET
path: "/api/voice/edit-distance"
tags: ["Voice"]
---

# Get the spread of the coach's edits to Luca's drafts

`GET /api/voice/edit-distance`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/voice/edit-distance`
- Auth: API key in cookie `luca.session_token`

Average, median and 90th-percentile edit distance over the edited drafts in the window. With no edited drafts the distances are null, never zero.

**Session-only.** This endpoint isn't on the API-key allowlist. An organization API key gets a 403 here, whatever scopes it holds.

## Query parameters

- `days` integer

## Headers

- `Luca-API-Version` '1'

## Response `200`

ok

- VoiceEditDistanceResponse
  - `sampleSize` integer, required
  - `avgDistance` number, nullable, required
  - `medianDistance` number, nullable, required
  - `p90Distance` number, nullable, required
  - `windowDays` integer, required

## Other responses

- `401`: unauthorized
- `429`: rate limited

---

[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)
