---
title: "Download Report"
method: POST
path: "/api/assets/download_report/"
tags: ["Supporting APIs"]
---

# Download Report

`POST /api/assets/download_report/`

## Request

- Base URL: `https://api.wokelo.ai`
- URL: `https://api.wokelo.ai/api/assets/download_report/`
- Auth: HTTP bearer

Downloads the generated report in the required format. Supported formats: `pdf`, `docx`, and `json`.

- For `json` format, the response body contains the structured report data.
- For `pdf` and `docx`, the response contains the binary file content.

## Request body

- object
  - `report_id` integer, required: ID of the report to be exported.
  - `file_type` 'pdf' | 'docx' | 'json', required: Export format.

## Response `200`

Report downloaded successfully. Returns binary file for `pdf`/`docx`, or structured JSON data for `json` format.

- object: Structured report data (returned only when `file_type` is `json`).

## Other responses

- `400`: Bad request – invalid `file_type` or missing `report_id`
- `401`: Unauthorized – invalid or missing JWT token
- `404`: Report not found

---

[API](https://skmtc.dev/wokelo/apis/wokelo-api.md) · [All operations](https://skmtc.dev/wokelo/apis/wokelo-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wokelo/apis/wokelo-api/revisions/78bebc3b5d6e?raw)
