> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# insightReportPdfCreate

> Get the report as a PDF. Redo renders it on the first call and keeps it; every call returns a fresh link that expires after an hour. Null when no such report exists or it belongs to another store.

**Required scopes:** [`analytics_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-analytics_read)

## Arguments

**id** `ID!` *required*

The id of the report.

## Returns

**insightReportPdfCreate** `[File](/docs/api-reference/v3/reference/common/file)`

A file Redo stores or generates. A private file's `url` is signed and short-lived: read its parent again for a fresh link.

**fields**

**contentType** `String!` *required*

The file's media type, such as text/csv.

**fileName** `String`

The name the file downloads as. Null when the file has none.

**height** `Int`

An image's height in pixels. Null for other files.

**sizeBytes** `Int`

The file's size in bytes. Null when it wasn't recorded.

**url** `String!` *required*

Where to download the file. Signed and short-lived for a private file (see `urlExpiresAt`); stable for a public one.

**urlExpiresAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When `url` stops working. Null for a public file, whose `url` doesn't expire.

**width** `Int`

An image's width in pixels. Null for other files.

## Example

```graphql theme={null}
mutation {
  insightReportPdfCreate(id: "...") {
    contentType
    fileName
    height
    sizeBytes
    url
    urlExpiresAt
    width
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.