---
title: "Generate Prose Endpoint"
method: POST
path: "/repos/{repo_id}/prose/generate"
tags: ["repos"]
---

# Generate Prose Endpoint

`POST /repos/{repo_id}/prose/generate`

Place one hold and spawn scoped prose for the resolved eligible pages.

## Path parameters

- `repo_id` string, required

## Request body

- ProseSelectionBody
  - `page_ids` string[], nullable
  - `scope` string
  - `snapshot` string, nullable
  - `max_cost_cents` integer, nullable

## Response `200`

Successful Response

- ProseGenerateResponse
  - `prose_job_id` string, nullable, required
  - `status` string, required
  - `selected_count` integer, required
  - `estimated_cost_cents` integer, required
  - `snapshot_id` string, nullable
  - `short_id` string, nullable
  - `comped` boolean

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/repowise/apis/repowise-hosted-api.md) · [All operations](https://skmtc.dev/repowise/apis/repowise-hosted-api/llms.txt) · [OpenAPI document](https://skmtc.dev/repowise/apis/repowise-hosted-api/revisions/b717017b882f?raw)
