---
title: "Analyze Custom Template"
method: POST
path: "/api/reports/analyze-custom-template"
tags: ["reports"]
---

# Analyze Custom Template

`POST /api/reports/analyze-custom-template`

## Request

- Base URL: `https://api.flagpost.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.flagpost.ai/api/reports/analyze-custom-template`
- Auth: HTTP bearer

Upload reference documents and enqueue extraction of sections + style.

Accepts multiple PDF files. Returns a job ID; poll /api/jobs/{job_id}
for the extracted sections and writing style.

## Request body `multipart/form-data`

- BodyAnalyzeCustomTemplateApiReportsAnalyzeCustomTemplatePost
  - `files` string[], required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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