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

# Export refinement-layout AI request JSON

`POST /api/ai/export-refinement-layout-request/{note}`

Returns the OpenAI structured-response request body for note refinement layout generation (breakdown) without calling OpenAI. Optional MCQ question context uses the same question-aware instruction builder as generate-refinement-suggestions.

## Path parameters

- `note` integer, required

## Request body

- NoteRefinementQuestionContextDTO
  - `stem` string — MCQ question stem (markdown allowed)
  - `choices` string[] — MCQ response choices (markdown allowed)
  - `correctAnswerIndex` integer — Zero-based index of the correct choice, when known
  - `testedFocus` string — Optional description of what the question was testing

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