---
title: "Render a report template and export it to a binary file."
method: POST
path: "/v1/reports/generate"
tags: ["resource-facade"]
---

# Render a report template and export it to a binary file.

`POST /v1/reports/generate`

## Headers

- `x-api-key` string, nullable

## Request body

- GenerateReportInput
  - `template` string, required — Template name (from GET /reports/templates)
  - `format` string — Export format (from GET /reports/formats)
  - `data` object, required — Data dict with keys required by the template
  - `filename` string, nullable — Custom filename (without extension)

## Response `200`

Successful Response

- unknown

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.dev/geopera/apis/geopera-data-platform.md) · [All operations](https://skmtc.dev/geopera/apis/geopera-data-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/geopera/geopera-data-platform/revisions/cb0130b2a40a/schema)
