[Tenjin API Reference](https://api-docs.tenjin.com/llms.txt) › [Reporting Metrics API](https://api-docs.tenjin.com/reporting-metrics-api.md) › List saved reports

- Reporting Metrics API OpenAPI spec: https://api-docs.tenjin.com/openapi/reporting-metrics-api.json

# List saved reports

- **Method:** `GET`
- **Path:** `/v2/saved_reports`
- **Operation ID:** `get_saved_reports`
- **Tags:** Saved Reports

## Effective servers

- `https://api.tenjin.com`

## Authentication

- **Bearer**: HTTP bearer (`JWT`)

  Generate an access token on the [Access Tokens](https://dashboard.tenjin.com/dashboard/access_tokens) page of the Tenjin dashboard and send it as `Authorization: Bearer <access token>`. [API access tokens](https://tenjin.com/docs/api-access-tokens/) explains them.

## Query parameters

- **`report_type`**: `string`, possible values: `"user_acquisition", "ad_revenue"`

  Keep only saved reports of this report type
- **`page`**: `integer`, default: `1`

  Page of results to fetch.
- **`per_page`**: `integer`, default: `25`, minimum: `0`, maximum: `1000`

  Number of results to return per page.

## Responses

### 200 Saved reports

**Headers:**

- **`Link`**

  URLs of the first, previous, next and last pages (RFC 8288); sent only when the list has more than one page

  `string`
- **`Total`**

  Number of items on all pages

  `integer`
- **`Per-Page`**

  Number of items per page

  `integer`

**Content type:** `application/json`

schema: `SavedReportListDocument`

- **`data` (required)**: `array`

  **Items:**

  schema: `SavedReportResource`
  - **`attributes` (required)**: `object`
    - **`app_ids` (required)**: `array`

      Ids of the apps the report covers; all when empty

      **Items:**

      `string`, format: `uuid`
    - **`channel_ids` (required)**: `array of integer`

      Ids of the channels the report covers; all when empty
    - **`granularity` (required)**: `string`, possible values: `"daily", "weekly", "monthly", "totals-daily"`

      Granularity of the report
    - **`group_by` (required)**: `string | null`

      The dimension the report groups by, or the name of its combination: `channel_app_country`, `channel_app`, `campaign_country`, `app_country`. A report saved outside the API can hold several dimensions, comma-separated (`app,site`). Null when a stored dimension has no API name
    - **`metrics` (required)**: `array of string`

      Metrics of the report
    - **`name` (required)**: `string`

      Name of the saved report
    - **`past_number_days` (required)**: `integer`

      Number of days before today that the report covers
    - **`report_type` (required)**: `string`, possible values: `"user_acquisition", "ad_revenue"`

      `user_acquisition` for a spend report, `ad_revenue` for an ad revenue report
  - **`id` (required)**: `string`, format: `uuid`
  - **`type` (required)**: `string`, possible values: `"saved_report"`
- **`links` (required)**: `object`, schema: `Links`
  - **`self` (required)**: `string`, format: `uri`

    URL of this request
  - **`first`**: `string`, format: `uri`

    URL of the first page of a list
  - **`last`**: `string`, format: `uri`

    URL of the last page of a list
  - **`next`**: `string`, format: `uri`

    URL of the next page of a list
  - **`prev`**: `string`, format: `uri`

    URL of the previous page of a list
- **`meta` (required)**: `object`, schema: `PageMeta`
  - **`count` (required)**: `integer`

    Number of items on all pages
  - **`per_page` (required)**: `integer`

    Number of items per page

**Example: Saved reports**

```json
{
  "data": [
    {
      "id": "06efdb3a-d521-4239-91aa-600fea7fca6d",
      "type": "saved_report",
      "attributes": {
        "name": "Alpha UA",
        "past_number_days": 14,
        "metrics": [
          "spend",
          "installs"
        ],
        "granularity": "weekly",
        "report_type": "user_acquisition",
        "channel_ids": [
          900001
        ],
        "app_ids": [
          "203c03df-be47-4437-8b90-367d96565d19"
        ],
        "group_by": "channel_app"
      }
    },
    {
      "id": "f816a781-0c09-4476-be46-02e60fa060b9",
      "type": "saved_report",
      "attributes": {
        "name": "bravo revenue",
        "past_number_days": 30,
        "metrics": [
          "ad_revenue"
        ],
        "granularity": "monthly",
        "report_type": "ad_revenue",
        "channel_ids": [],
        "app_ids": [],
        "group_by": "ad_placement"
      }
    }
  ],
  "links": {
    "self": "https://api.tenjin.com/v2/saved_reports?per_page=2",
    "next": "https://api.tenjin.com/v2/saved_reports?page=2&per_page=2",
    "last": "https://api.tenjin.com/v2/saved_reports?page=2&per_page=2"
  },
  "meta": {
    "count": 3,
    "per_page": 2
  }
}
```

### 400, 401, 403, 498

- `400` A param is missing or invalid, a record is not found, or the request cannot be served
- `401` Missing or invalid credentials, or no access to the requested data
- `403` Invalid token, or the user's role does not allow the request
- `498` Expired token, or a token with an invalid signature

**Content type:** `application/json`

schema: `Error`

- **`error` (required)**: `string`

  What went wrong

**Example:**

```json
{
  "error": ""
}
```

## Schemas

- `Error` — shown above.
- `SavedReportListDocument` — shown above.
- `Links` — shown above.
- `PageMeta` — shown above.
- `SavedReportResource` — shown above.
