---
title: "Draft a voice-matched preview reply for the Try Luca step"
method: POST
path: "/api/onboarding/voice-preview"
tags: ["Onboarding"]
---

# Draft a voice-matched preview reply for the Try Luca step

`POST /api/onboarding/voice-preview`

## Request

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

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

## Headers

- `Luca-API-Version` '1'

## Request body

- VoicePreview
  - `leadMessage` string, required
  - `history` object[]
    - `role` 'lead' | 'luca', required
    - `content` string, required
  - `usedSample` boolean

## Response `200`

ok

- OnboardingVoicePreviewResponse
  - `reply` string, required
  - `remaining` 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)
