---
title: "Save Generated File"
method: POST
path: "/api/batch/save-generated-file"
tags: ["Batch Processing"]
---

# Save Generated File

`POST /api/batch/save-generated-file`

## Request

- Base URL: `https://api.qomplement.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.qomplement.com/api/batch/save-generated-file`
- Auth: HTTP bearer

Save an AI-generated file to the library or send it to the parsing pipeline.

Actions:
- save_to_library: Saves as an Excel template (for excel/csv) or stores the document
- send_to_parsing: Creates a batch and triggers OCR processing

## Request body

- SaveGeneratedFileRequest
  - `s3_key` string, required
  - `filename` string, required
  - `action` string, required
  - `file_type` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/qomplement/apis/qomplement-api.md) - [All operations](https://skmtc.dev/qomplement/apis/qomplement-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qomplement/apis/qomplement-api/revisions/6fe617c112ef?raw)
