> ## 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.

# insightReports

> The store's insight reports, newest first.

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

## Arguments

**after** `String`

Forward pagination cursor — returns reports after it.

**before** `String`

Backward pagination cursor — returns reports before it.

**first** `Int`

Forward pagination: returns the first N reports (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N reports (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**orderBy** `[InsightReportSortKey](/docs/api-reference/v3/reference/analytics/insight-report-sort-key)`

Which key to sort by (defaults to the first key, newest-first). Combine with `reverse` to flip direction.

**query** `String`

Search the report title, description, or body for this text.

**reverse** `Boolean`

Reverses the sort direction selected by `orderBy` (or its default).

## Returns

**insightReports** `[InsightReportConnection!](/docs/api-reference/v3/pagination)` *required*

A paginated list of InsightReport items.

**fields**

**edges** `[\[InsightReportEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**fields**

**cursor** `String!` *required*

Opaque cursor for this item; pass to `after`/`before` to page from here.

**node** `[InsightReport!](/docs/api-reference/v3/reference/analytics/insight-report)` *required*

The item at this edge.

**fields**

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

The end of the period the report analyzes.

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

The start of the period the report analyzes.

**body** `String!` *required*

The full report, in Markdown.

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

When Redo wrote the report.

**description** `String!` *required*

A short summary of the report, for a list.

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

The id of this report.

**legacyId** `String!` *required*

The report's legacy identifier (the source Mongo ObjectId), accepted anywhere an `id` is.

**title** `String!` *required*

The report's title.

**nodes** `[\[InsightReport!\]!](/docs/api-reference/v3/reference/analytics/insight-report)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**fields**

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

The end of the period the report analyzes.

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

The start of the period the report analyzes.

**body** `String!` *required*

The full report, in Markdown.

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

When Redo wrote the report.

**description** `String!` *required*

A short summary of the report, for a list.

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

The id of this report.

**legacyId** `String!` *required*

The report's legacy identifier (the source Mongo ObjectId), accepted anywhere an `id` is.

**title** `String!` *required*

The report's title.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**fields**

**endCursor** `String`

Cursor of the last edge in this page; pass to `after` to page forward.

**hasNextPage** `Boolean!` *required*

Whether more items exist after this page (drives forward pagination with `first`/`after`).

**hasPreviousPage** `Boolean!` *required*

Whether more items exist before this page (drives backward pagination with `last`/`before`).

**startCursor** `String`

Cursor of the first edge in this page; pass to `before` to page backward.

## Example

```graphql theme={null}
query {
  insightReports(after: "...", before: "...", first: 10, last: 10, orderBy: CREATED_AT, query: "...", reverse: true) {
    nodes {
      analysisEnd
      analysisStart
      body
      createdAt
      description
      id
      legacyId
      title
    }
    pageInfo { hasNextPage endCursor }
  }
}
```


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