---
title: "Generate Ai Report"
method: POST
path: "/api/exports/ai-report"
tags: ["Exports"]
---

# Generate Ai Report

`POST /api/exports/ai-report`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/exports/ai-report`
- Auth: HTTP bearer

Generate AI-powered financial report. Requires premium subscription.

## Request body

- AIReportRequest
  - `period` string, required

## Response `200`

Successful Response

- ExportResponse
  - `export_id` string, required
  - `download_url` string, required
  - `filename` string, required
  - `format` string, required
  - `file_size` integer, required
  - `ai_generated` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
