---
title: "Reports Request"
method: POST
path: "/api/reports/request"
tags: ["reports"]
---

# Reports Request

`POST /api/reports/request`

## Request

- Base URL: `https://tradedashboard.eu` (the document declares no server; this is the origin it was published from)
- URL: `https://tradedashboard.eu/api/reports/request`
- Auth: none declared

Request an on-demand report for a saved search (``search_id``) or
inline dashboard-query criteria. Generated by the worker
(reports/on_demand.py) and emailed to the user's address — hence 403
while it is unverified.

Dedupe: a published report for the same query hash returns immediately
(``done``); a re-click reuses the existing request row (``pending`` with
an ETA, or a free re-queue after failure/done). Only genuinely new
reports hit the daily and lifetime caps. Multi-code queries are rejected
(reports are generated per single product code).

## Request body

- ReportRequestReq: An on-demand report generation request (POST /api/reports/request): either a saved-search id, or inline criteria in the saved-search shape. ``lang`` is the report's language (default: the account's language).
  - `search_id` string, nullable
  - `product` union
    - string
    - string[]
  - `reporter` string
  - `reporter_members` string[], nullable
  - `partner_set` string
  - `partners` string[], nullable
  - `period_start` string
  - `period_end` string, nullable
  - `frequency` string
  - `remove_outliers` boolean
  - `lang` string, nullable

## Response `200`

Successful Response

- ReportRequestResponse: POST /api/reports/request — the report-request outcome. ``page_url`` when a listed report already exists (done); ``eta_minutes`` when queued or already running (pending).
  - `status` 'done' | 'pending' | 'queued', required
  - `report_hash` string, required
  - `page_url` string, nullable
  - `eta_minutes` integer, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tradedashboard/apis/eu-trade-explorer.md) · [All operations](https://skmtc.dev/tradedashboard/apis/eu-trade-explorer/llms.txt) · [OpenAPI document](https://skmtc.dev/tradedashboard/apis/eu-trade-explorer/revisions/b9abc715a5c2?raw)
