Review queue

Rewrite a queued draft

Runs one drafter call that rewrites the queued draft per the instruction and returns the new text. It spends AI credits, and it changes nothing: the review queue row keeps its body until the coach applies the proposal.

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

post/api/replies/rewrite

Request

  • Base URL: https://api.setluca.com
  • URL: https://api.setluca.com/api/replies/rewrite
  • Auth: API key in cookie luca.session_token

Headers

Luca-API-Version'1'

The major version of the API this client was built against. Omit it and the request is served by the current major version. Any other value is refused with 400 unsupported_api_version.

Request body

reviewItemIdstring uuid required
instructionstring required

Response

ok

reviewItemIdstring required
leadIdstring required
originalBodystring required
proposedBodystring required
voiceMatchnumber required
criticFlagsstring[] required

Changes

No recorded changes to this operation across all 1 revision of this API.