---
title: "Generate Pdf Report"
method: GET
path: "/v2/reports/pdf/{media_id}"
tags: ["Report API"]
---

# Generate Pdf Report

`GET /v2/reports/pdf/{media_id}`

Get PDF report if available, or trigger generation if not.

- Returns PDF metadata if already generated
- Triggers generation and returns 202 if not available
- Returns processing status if generation in progress

## Path parameters

- `media_id` string, required — Unique identifier of the media

## Query parameters

- `media_type` string, required — Type: Only 'video' is allowed at present
- `callback_url` string, nullable — Callback URL for completion notification

## Response `200`

PDF stream when the artifact is ready; JSON {id, message, status} when this request triggered generation.

- GenerateReportResponse — Response model for PDF report generation Inherits from GenerateCSVResponse
  - `id` string, required
  - `message` string, required
  - `status` string, required

## Other responses

- `202` — Generation already running.
- `422` — Validation Error

---

[API](https://skmtc.net/imentiv/apis/welcome-to-imentiv-ai.md) · [All operations](https://skmtc.net/imentiv/apis/welcome-to-imentiv-ai/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/imentiv/welcome-to-imentiv-ai/revisions/74ceee4a5c98/schema)
