---
title: "Batch Generate And Save"
method: POST
path: "/api/admin/batch-generate-and-save"
tags: ["admin"]
---

# Batch Generate And Save

`POST /api/admin/batch-generate-and-save`

Batch generate intents + page summaries and auto-save for multiple captures.

For each capture:
1. Generate intent mappings via vision LLM
2. Generate page summary for main agent handoff
3. Bulk save (element labels, intents, vocabulary, product route)
4. Mark capture as "processed"

Streams progress as newline-delimited JSON (NDJSON) so the UI can show live updates.

Skips captures that already have "processed" status unless force=True.

## Headers

- `authorization` string, required

## Request body

- BatchGenerateRequest — Request to batch-generate intents and save for multiple captures.
  - `product_id` string, required
  - `capture_ids` string[], nullable
  - `force` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/usecrow/apis/crow-backend-multi-tenant-saas.md) · [All operations](https://skmtc.dev/usecrow/apis/crow-backend-multi-tenant-saas/llms.txt) · [OpenAPI document](https://skmtc.dev/usecrow/apis/crow-backend-multi-tenant-saas/revisions/66e6366f8ef9?raw)
