---
title: "Generate a report"
method: POST
path: "/reports/generate"
tags: ["Reports"]
---

# Generate a report

`POST /reports/generate`

## Request

- Base URL: `https://api.app.subskribe.com`
- URL: `https://api.app.subskribe.com/reports/generate`
- Auth: API key in header `X-API-Key`

Generates a report with the specified parameters. This report can later be downloaded via /reports/{reportRunId}/result

## Request body

- PredefinedReportJson
  - `reportId` string
  - `params` object
  - `duration` ReportDuration
    - `start` integer
    - `end` integer
  - `reportDate` integer

## Response `200`

successful operation

- ReportJobResponse
  - `reportId` string
  - `reportRunId` string
  - `status` 'OK' | 'FAILED'
  - `uri` string

---

[API](https://skmtc.dev/dealhub/apis/subskribe-api.md) - [All operations](https://skmtc.dev/dealhub/apis/subskribe-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dealhub/apis/subskribe-api/revisions/c1ee531b82ce?raw)
