Skip to main content
POST
/
api
/
assets
/
download_report
Download Report
curl --request POST \
  --url https://api.wokelo.ai/api/assets/download_report/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "report_id": 84102,
  "file_type": "json"
}
'
{
    "Executive Summary": {
        "Executive Summary": {
            "summary": {
                "source": [
                    {
                        "id": 1,
                        "title": "openPR.com L4 Self-driving Vehicle Market Current Status and Future Prospects till 2033",
                        "url": "https://www.openpr.com/news/4132700/l4-self-driving-vehicle-market-current-status-and-future",
                        "publisher": "",
                        "date": ""
                    }
                ]
            }
        }
    }
}

Documentation Index

Fetch the complete documentation index at: https://docs.wokelo.ai/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Downloads the generated report in the required format such as docx, pdf, and json. The format is passed in the request body.

Endpoint Details

  • Method: POST
  • Endpoint: /api/assets/download_report/

Authentication requirements

  • Include a valid JWT token in your request header
  • If you don’t have a token yet, you can get one from the /auth/token/ endpoint first.

Request

Request Parameter

Header Parameters

Authorization
string
required
JWT token obtained from the Authentication request

Body Parameters

file_type
string
required
Export format. Permitted values: “pdf”, “docx”, “json”
report_id
integer
required
Id of the report to be exported

Response

Successful response will include download the file in the specified format
{
    "Executive Summary": {
        "Executive Summary": {
            "summary": {
                "source": [
                    {
                        "id": 1,
                        "title": "openPR.com L4 Self-driving Vehicle Market Current Status and Future Prospects till 2033",
                        "url": "https://www.openpr.com/news/4132700/l4-self-driving-vehicle-market-current-status-and-future",
                        "publisher": "",
                        "date": ""
                    }
                ]
            }
        }
    }
}

Authorizations

Authorization
string
header
required

JWT token obtained from the /auth/token/ endpoint.

Body

application/json
report_id
integer
required

ID of the report to be exported.

Example:

84102

file_type
enum<string>
required

Export format.

Available options:
pdf,
docx,
json
Example:

"json"

Response

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

Structured report data (returned only when file_type is json).