---
title: "Export extract-note AI request JSON"
method: POST
path: "/api/ai/export-extract-request/{note}"
tags: ["ai-controller"]
---

# Export extract-note AI request JSON

`POST /api/ai/export-extract-request/{note}`

Returns the OpenAI structured-response request body for note extraction without calling OpenAI.

## Path parameters

- `note` integer, required

## Request body

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

## Response `200`

OK

## Changes

> 145 revisions in range; 92 could not be searched.

- **2026-08-06** `555f237630cc` — 1 breaking
  - added the new required request property `layout/items/items/ledToQuestion`
- **2026-07-08** `9c44c38ad0ed` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/nerds-odd-e/apis/openapi-definition/changes/api/ai/export-extract-request/:note/post.md)

---

[API](https://skmtc.dev/nerds-odd-e/apis/openapi-definition.md) · [All operations](https://skmtc.dev/nerds-odd-e/apis/openapi-definition/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nerds-odd-e/openapi-definition/revisions/44ef688a3dcd/schema)
