---
title: "Preview note extraction (no persistence)"
method: POST
path: "/api/ai/extract-note-preview/{note}"
tags: ["ai-controller"]
---

# Preview note extraction (no persistence)

`POST /api/ai/extract-note-preview/{note}`

Runs AI extraction for the selected layout points and returns the suggested new note title, new note content, and updated original note content without persisting any changes.

## Path parameters

- `note` integer, required

## Request body

- NoteRefinementLayoutSelectionRequestDTO
  - `layout` NoteRefinementLayout
    - `items` NoteRefinementLayoutItem[], required
      - `id` string, required
      - `text` string, required
      - `alreadyExtracted` boolean, required
      - `ledToQuestion` boolean, required
      - `children` NoteRefinementLayoutItem[], required
  - `selectedItemIds` string[]

## Response `200`

OK

---

[API](https://skmtc.net/nerds-odd-e/apis/openapi-definition.md) · [All operations](https://skmtc.net/nerds-odd-e/apis/openapi-definition/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nerds-odd-e/openapi-definition/versions/f04215d476a6/schema)
