---
updatedAt: 2026-10-26T07:48:12.000Z
agentTools:
  projectIndex: https://developer.doit.com/llms.txt
---

# Reports API

Programmatically obtain cost, usage and savings information for your cloud infrastructure with easy-to-use RESTful API.

DoiT Cloud Analytics Reports give you instant visibility into your cloud costs, helping you slice and dice your cloud spend and identify opportunities to optimize cost and performance.

Cloud Analytics supports both synchronous and asynchronous report runs.&#x20;

<Callout icon="📘" theme="info">
  ### Required Permissions

  - Cloud Analytics User
  - Depending on the features you want to use, you may need extra permissions. See [Roles and permissions](https://help.doit.com/docs/user-management/manage-roles).
</Callout>

## Operations

* [**GET** /analytics/v1/reports](https://developer.doit.com/reference/listreports): Lists all reports.
* [**GET** /analytics/v1/reports/\{id}/config](https://developer.doit.com/reference/getreportconfig): Returns the configuration of a report.
* [**POST** /analytics/v1/reports](https://developer.doit.com/reference/createreport): Creates a report.
* [**PATCH** /analytics/v1/reports/\{id}](https://developer.doit.com/reference/updatereport): Updates a report.
* [**DELETE** /analytics/v1/reports/\{id}](https://developer.doit.com/reference/deletereport): Deletes a report.

### Synchronous report run

* [**GET** /analytics/v1/reports/\{id}](https://developer.doit.com/reference/getreport): Runs a saved report.
* [**POST** /analytics/v1/reports/query](https://developer.doit.com/reference/query): Runs an inline report configuration.

### Asynchronous report run

* [**POST** /analytics/v1/reports/\{id}/actions/run:](https://developer.doit.com/reference/asyncrunreportbyid) Runs a saved report asynchronously.
* [**POST** /analytics/v1/reports/actions/run](https://developer.doit.com/reference/asyncruninline): Runs an inline report configuration asynchronously.
* [**GET** /analytics/v1/reports/operations/\{operationId}](https://developer.doit.com/reference/getasyncoperation): Returns the status of an async report run operation.
* [**GET** /analytics/v1/reports/operations/\{operationId}/results](REF:getasyncoperationresults): Returns the result of a successful async report run operation.
* [**POST** /analytics/v1/reports/operations/\{operationId}/actions/cancel](https://developer.doit.com/reference/cancelasyncoperation): Cancels an async report run operation.

## Choose synchronous or asynchronous

Asynchronous runs are available to the same callers as the rest of the Reports API, including service accounts with the Cloud Analytics User permission.

Use asynchronous execution when a report is large or long-running.

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th style={{ width: "34.2%" }}>
        Item
      </th>

      <th style={{ width: "33.9%" }}>
        Synchronous
      </th>

      <th style={{ width: "31.8%" }}>
        Asynchronous
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        Result
      </td>

      <td>
        In the HTTP response
      </td>

      <td>
        Separate results call after the operation succeeds
      </td>
    </tr>

    <tr>
      <td>
        Maximum rows (entries in `result.rows`)
      </td>

      <td>
        500,000
      </td>

      <td>
        5,000,000
      </td>
    </tr>

    <tr>
      <td>
        Maximum group combinations (distinct combinations of the fields in `config.group` (Group by))
      </td>

      <td>
        200,000
      </td>

      <td>
        2,000,000
      </td>
    </tr>

    <tr>
      <td>
        How long the query can run
      </td>

      <td>
        2-minute execution limit. If a report run exceeds 120 seconds, the query is aborted.
      </td>

      <td>
        No 2-minute execution limit.
      </td>
    </tr>

    <tr>
      <td>
        Cancel a request while it is in progress
      </td>

      <td>
        ❌ (For a single report, you can have up to three concurrent requests using the same API key).
      </td>

      <td>
        ✔️ ([Cancel an async report run](https://developer.doit.com/reference/cancelasyncoperation))
      </td>
    </tr>

    <tr>
      <td>
        How long the result stays available
      </td>

      <td>
        Only for that HTTP response
      </td>

      <td>
        7 days
      </td>
    </tr>
  </tbody>
</Table>

## Run a report asynchronously

To run a report asynchronously, you submit the run, receive an operation ID, poll until it finishes, and then download the result.

Only the user or service account that started the operation can poll it, cancel it, or read its result. Any other caller receives 404.

```mermaid
flowchart TD
    A["POST /analytics/v1/reports/{id}/actions/run"]
    B["GET /analytics/v1/reports/operations/{operationId}"]
    C["GET /analytics/v1/reports/operations/{operationId}/results"]

    A -->|"202 Accepted<br/>Location: /analytics/v1/reports/operations/{operationId}"| B
    B -->|"pending → running → succeeded"| C
    C --> D["200 OK + result"]
```

### Start the run

* Saved report: [**POST** /analytics/v1/reports/\{id}/actions/run](https://developer.doit.com/reference/asyncrunreportbyid)
* Inline report configuration: [**POST** /analytics/v1/reports/actions/run](https://developer.doit.com/reference/asyncruninline)

Every start and cancel call requires an `Idempotency-Key` header. Use a new unique value for each submission, such as a UUID. Use `?dryRun=true` to validate without creating an operation.

Keep the key if you need to recover the operation: repeating the same key and the same request within 24 hours returns the original 202 response.

### Poll the operation

* [**GET** /analytics/v1/reports/operations/\{operationId}](https://developer.doit.com/reference/getasyncoperation)

This endpoint does not return result data. `pending` and `running` responses include **Retry-After**, a number of seconds to wait before the next poll.

Polling counts toward the account [rate limit](https://developer.doit.com/docs/rate-limits) of 1,000 requests per minute. Follow **Retry-After** so a long report stays under that limit.

### Get the result

* [**GET** /analytics/v1/reports/operations/\{operationId}/results](REF:getasyncoperationresults)

A run started from a saved report returns the same report fields as [Get report results](https://developer.doit.com/reference/getreport). `reportName`, `owner`, and `updateTime` are read when you fetch the result, so they reflect the report as it is then.

A run started from an inline configuration returns [`result`](#result-object) only.

`cacheHit` is `true` when this result was served from a recent identical run. An identical configuration for the same customer, run again within 6 hours, can come back already succeeded with `cacheHit: true`. That result is the earlier execution. Its `expireBy` is the earlier of 7 days from the new operation, and the expiry of the stored result it reuses.

If the result is still larger than the asynchronous limits, the operation finishes as failed with one of these codes:

| error.code               | Limit exceeded                                     |
| ------------------------ | -------------------------------------------------- |
| `result_too_large`       | More than 5,000,000 rows                           |
| `series_count_too_large` | More than 2,000,000 distinct Group by combinations |
| `query_timeout`          | The query did not finish within 6 hours            |

Narrow the report before retrying: shorten `timeRange`, raise `timeInterval` (for example, from `day` to `month`), add filters, or set a top/bottom limit on `group`.

#### Optional file download

After a run has succeeded, add `fileOutput=pdf` or `fileOutput=png` to the results request.

The JSON result is still returned, and `fileOutput` is a signed URL for a rendered file.

The URL is valid for 7 days. Request the results endpoint again for a fresh URL. The file is rendered from the stored result, so this does not run the query again.

### Cancel a run

* [**POST** /analytics/v1/reports/operations/\{operationId}/actions/cancel](https://developer.doit.com/reference/cancelasyncoperation)

Cancel returns `200` and `status canceled` for a `pending` or `running` operation. Calling it again on an operation that is already `succeeded`, `failed`, or `canceled` returns that terminal status unchanged.

## Schema

### Common properties

Below are the common properties you'll find in response bodies of [**GET** /analytics/v1/reports](https://developer.doit.com/reference/listreports) and [**GET** /analytics/v1/reports/\{id}](https://developer.doit.com/reference/getreport).

| Property   | Type   | Description                                                             |
| :--------- | :----- | :---------------------------------------------------------------------- |
| id         | string | Report ID. See [Resource IDs](https://developer.doit.com/docs/resource-ids).                        |
| reportName | string | Report name.                                                            |
| owner      | string | The owner of the report.                                                |
| type       | string | Report type. Possible values: `preset`, `custom`, `managed`             |
| createTime | int64  | The time when the report was created, epoch time in milliseconds.       |
| updateTime | int64  | The time when the report was last modified, epoch time in milliseconds. |
| urlUI      | string | The URL of the report in the DoiT console.                              |

### Result object

The **result** object contains the results of a report run. It's returned in the response bodies of [**GET** /analytics/v1/reports/\{id}](https://developer.doit.com/reference/getreport) and [**POST** /analytics/v1/reports/query](https://developer.doit.com/reference/query).

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Property
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        schema
      </td>

      <td>
        array of objects
      </td>

      <td>
        An array of JSON objects that define the structure of each row in the report results:

        - `name`: the name of a field (column)
        - `type`: the data type of the field
      </td>
    </tr>

    <tr>
      <td>
        mlFeatures
      </td>

      <td>
        array of strings
      </td>

      <td>
        The list of  [Advanced analysis](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#advanced-analysis) features enabled on the report:

        - `increasing`: Trending up
        - `decreasing`: Trending down
        - `none`: Not trending
        - `forecast`: Forecast
      </td>
    </tr>

    <tr>
      <td>
        rows
      </td>

      <td>
        \[array of objects]
      </td>

      <td>
        An array of report result rows. Each row is an array of values as defined by the `schema` object.
      </td>
    </tr>

    <tr>
      <td>
        forecastRows
      </td>

      <td>
        \[array of objects]
      </td>

      <td>
        An array of report forecast results.
      </td>
    </tr>
  </tbody>
</Table>

### Config object

The **config** object contains a report's configuration. Its attributes correspond to the [Report settings](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report) in the DoiT console.

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Property
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        metric
      </td>

      <td>
        object
      </td>

      <td>
        The metric to apply to the report. See [Report settings: Metric](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#metric).<br />Attributes:

        - `type`: metric type. Possible values: `basic`, `custom`, `extended`
        - `value`: metric name. For example, basic metrics are `cost`, `usage`, and `savings`.
      </td>
    </tr>

    <tr>
      <td>
        metricFilter
      </td>

      <td>
        object
      </td>

      <td>
        To limit the report results by metric values. See [Limit by value](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#limit-by-value).<br />Attributes:

        - `metric`
        - `operator`
        - `values`
      </td>
    </tr>

    <tr>
      <td>
        aggregation
      </td>

      <td>
        string
      </td>

      <td>
        The aggregation option of the data. See [Aggregation](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#aggregation).
      </td>
    </tr>

    <tr>
      <td>
        advancedAnalysis
      </td>

      <td>
        object
      </td>

      <td>
        The [Advanced analysis](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#advanced-analysis)  features and whether they are enabled: `forecast`, `notTrending`, `trendingUp`, `trendingDown`
      </td>
    </tr>

    <tr>
      <td>
        timeInterval
      </td>

      <td>
        string
      </td>

      <td>
        See [Time interval](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#time-range-and-time-interval). For example, `hour`, `day`, `week`, `month`, `quarter`, `year`.
      </td>
    </tr>

    <tr>
      <td>
        dimensions
      </td>

      <td>
        array of objects
      </td>

      <td>
        To define the columns that appear in the tabular formats. See [Dimensions](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#dimensions).<br />Dimension object attributes:

        - `id`: Dimension ID.
        - `type`: Dimension type.<br />You can use the [Dimensions API](https://developer.doit.com/reference/getdimensions)  to check dimension IDs and types.
      </td>
    </tr>

    <tr>
      <td>
        timeRange
      </td>

      <td>
        object
      </td>

      <td>
        Specify a predefined or custom time range for the report. See [Time range](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#time-range-and-time-interval).
      </td>
    </tr>

    <tr>
      <td>
        includePromotionalCredits
      </td>

      <td>
        boolean
      </td>

      <td>
        See [Promotional credits](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#promotional-credits).
      </td>
    </tr>

    <tr>
      <td>
        includeSubtotals
      </td>

      <td>
        boolean
      </td>

      <td>
        See [Include subtotals](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#include-subtotals).
      </td>
    </tr>

    <tr>
      <td>
        filters
      </td>

      <td>
        array of objects
      </td>

      <td>
        To filter the results of a report. See [Filter results](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#filter-results).<br />Filter object attributes:

        - `id`: Dimension ID.
        - `type`: Dimension type.
        - `inverse`(boolean): Set to `true` to exclude the specified values.
        - `values`(array of strings): Values to filter on.
      </td>
    </tr>

    <tr>
      <td>
        group
      </td>

      <td>
        array of objects
      </td>

      <td>
        To define the rows that appear in the tabular formats. See [Group by](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#group-by).<br />Group-by object attributes:

        - `id`: Dimension ID.
        - `type`: Dimension type.
        - `limit`(object): To limit the number of results based on ranking. See [Limit by top/bottom](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#limit-by-topbottom).
          - `metric`(object): Metric type and name.
          - `sort`: Sort option. Possible values: `asc`, `desc`, `a_to_z`.<br />-`value`: The number of items to show.
      </td>
    </tr>

    <tr>
      <td>
        layout
      </td>

      <td>
        string
      </td>

      <td>
        The visualization option of the report. See [View as](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#view-as).
      </td>
    </tr>

    <tr>
      <td>
        displayValues
      </td>

      <td>
        string
      </td>

      <td>
        See [View data as (Comparative report)](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#view-as).
      </td>
    </tr>

    <tr>
      <td>
        currency
      </td>

      <td>
        string
      </td>

      <td>
        The currency in which the billing data is reported. See [Currency](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#currency).
      </td>
    </tr>

    <tr>
      <td>
        sortGroups
      </td>

      <td>
        string
      </td>

      <td>
        The sort option for groups. See [Sort groups](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#sort-groups). Possible values:

        - `asc`: Row total ascending.
        - `desc`: Row total descending.
        - `a_to_z`: Alphabetical sort by group name.
      </td>
    </tr>

    <tr>
      <td>
        sortDimensions
      </td>

      <td>
        string
      </td>

      <td>
        The sort option for dimensions. See [Sort dimensions](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#sort-dimensions). Possible values:

        - `asc`: Column total ascending.
        - `desc`: Column total descending.
        - `a_to_z`: Alphabetical sort by column title.
      </td>
    </tr>

    <tr>
      <td>
        dataSource
      </td>

      <td>
        string
      </td>

      <td>
        Data source of the report. See [Data source](https://help.doit.com/docs/cloud-analytics/reports/editing-your-cloud-report#data-source). Possible values:

        - `billing`: Use cloud billing data as the data source.
        - `billing_datahub`: Use the combined dataset of cloud billing data and data imported via [DoiT DataHub](https://help.doit.com/docs/datahub).
        - `bqlens`: Use the BigQuery Lens audit log sink as the data source. See [BigQuery Lens as data source](https://help.doit.com/docs/cloud-analytics/bq-audit-logs).
      </td>
    </tr>

    <tr>
      <td>
        splits
      </td>

      <td>
        object
      </td>

      <td>
        To split costs. See [Split costs](https://help.doit.com/docs/cloud-analytics/attribution-groups/attribution-group-in-reports#split-costs).

        - `id`: Dimension ID.
        - `includeOrigin`(boolean)
        - `mode`: Cost distribution method. Possible values: `even`, `custom`, `proportional`.
        - `origin`(object)
        - `targets` (array of objects)
      </td>
    </tr>

    <tr>
      <td>
        customTimeRange
      </td>

      <td>
        object
      </td>

      <td>
        Attributes:

        - `from`: The start timestamp of the time range in RFC3339 format.
        - `to`: The end timestamp of the time range in RFC3339 format.
      </td>
    </tr>
  </tbody>
</Table>

## Examples

> 📘 YOUR\_API\_KEY
>
> Replace "YOUR\_API\_KEY" with your actual API key as explained at [Get Started](https://developer.doit.com/docs/getting-started)

### List all reports

The [List reports](https://developer.doit.com/reference/listreports) method lists all reports accessible by your user account according to the report's access control list (ACL) as described at [Share Cloud Analytics Reports](https://help.doit-intl.com/cloud-analytics/sharing-cloud-reports).

You can filter the results using the following query parameters.

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `minCreationTime`
      </td>

      <td>
        string
      </td>

      <td>
        Min value for a report's creation time, in milliseconds since the POSIX epoch. If set, only reports created after or at this timestamp are returned.
      </td>
    </tr>

    <tr>
      <td>
        `maxCreationTime`
      </td>

      <td>
        string
      </td>

      <td>
        Max value for a report's creation time, in milliseconds since the POSIX epoch. If set, only reports created before or at this timestamp are returned.
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        An expression to filter the results of the request. The syntax is `key:[<value>]`. For example, using `type:custom` will return only custom reports. [Learn more about filters](https://developer.doit.com/docs/filters).<br />Supported filter keys:

        - `type`: Report type. Possible values: `custom`, `preset`
        - `owner`: Owner of the report. Example: `john@domain.com`
        - `reportName`: Report name.
        - `updateTime`: The time when the report was last modified, epoch time in milliseconds.
      </td>
    </tr>
  </tbody>
</Table>

Sample request:

```shell reports.list sample request
curl --location \
--request GET 'https://api.doit.com/analytics/v1/reports?maxResults=5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {YOUR_API_KEY}' \
--data-raw ''
```

Sample response body:

```json reports.list response
{
  "pageToken": "djVmZnFPZDc0czkxNVBySzI4OVc",
  "rowCount": 5,
  "reports": [
    {
      "id": "rrVOklaQxh74xh2gPEzQ",
      "reportName": "EC2 Instance Amortised Cost by Coverage Type",
      "owner": "doit.com",
      "type": "preset",
      "createTime": 1712326184470,
      "updateTime": 1712327214694,
      "urlUI": "https://console.doit.com/customers/{CUSTOMER_ID}/analytics/reports/rrVOklaQxh74xh2gPEzQ"
    },
    {
      "id": "mTJwWWgI6PMC13pP0p3t",
      "reportName": "GCS Uploads by Bucket",
      "owner": "doit.com",
      "type": "preset",
      "createTime": 1709553127060,
      "updateTime": 1709553145612,
      "urlUI": "https://console.doit.com/customers/{CUSTOMER_ID}/analytics/reports/mTJwWWgI6PMC13pP0p3t"
    },
    {
      "id": "m0QjqmjOC9f6f0LPX4GA",
      "reportName": "GCS by Cost Type",
      "owner": "doit.com",
      "type": "preset",
      "createTime": 1709504558240,
      "updateTime": 1709504919076,
      "urlUI": "https://console.doit.com/customers/{CUSTOMER_ID}/analytics/reports/m0QjqmjOC9f6f0LPX4GA"
    },
    {
      "id": "KyPf3v17CueP6xlZ2vJK",
      "reportName": "GCS Cost by Bucket",
      "owner": "doit.com",
      "type": "preset",
      "createTime": 1709503968466,
      "updateTime": 1709504904672,
      "urlUI": "https://console.doit.com/customers/{CUSTOMER_ID}/analytics/reports/KyPf3v17CueP6xlZ2vJK"
    },
    {
      "id": "XjK5I6Eql5dNFgPw4Qh3",
      "reportName": "EKS Interactive Cost Explorer by Clusters and Pod owner",
      "owner": "doit.com",
      "type": "preset",
      "createTime": 1707210125547,
      "updateTime": 1708617155142,
      "urlUI": "https://console.doit.com/customers/{CUSTOMER_ID}/analytics/reports/XjK5I6Eql5dNFgPw4Qh3"
    }
  ]
}
```

### Get report results (Synchronous run for a saved report)

The [Get report results](https://developer.doit.com/reference/getreport) method returns the results of a Cloud Analytics Report.

<Callout icon="📘" theme="info">
  ### API concurrency

  For a single report, you can have up to three concurrent requests using the same API key. You cannot cancel a request while it is in progress.
</Callout>

Sample request:

```shell reports.get sample request
curl --request GET \
     --url 'https://api.doit.com/analytics/v1/reports/ViSpueEq1iXNMcL1n6Un' \
     --header 'Authorization: Bearer {YOUR_API_KEY}' \
     --header 'accept: application/json'
```

Sample response body:

```json reports.get sample response
{
  "id": "ViSpueEq1iXNMcL1n6Un",
  "reportName": "Historical Cloud Native Costs by Platform",
  "owner": "doit.com",
  "type": "preset",
  "createTime": 1609229892750,
  "updateTime": 1712448000355,
  "urlUI": "https://console.doit.com/customers/{CUSTOMER_ID}/analytics/reports/ViSpueEq1iXNMcL1n6Un",
  "result": {
    "schema": [
      {
        "name": "cloud_provider",
        "type": "string"
      },
      {
        "name": "year",
        "type": "string"
      },
      {
        "name": "month",
        "type": "string"
      },
      {
        "name": "cost",
        "type": "float"
      },
      {
        "name": "timestamp",
        "type": "timestamp"
      }
    ],
    "mlFeatures": [
      "forecast"
    ],
    "rows": [
      [
        "amazon-web-services",
        "2023",
        "10",
        330941.7693793848,
        1696118400
      ],
      [
        "amazon-web-services",
        "2023",
        "11",
        305171.4947461792,
        1698796800
      ],
      [
        "amazon-web-services",
        "2023",
        "12",
        312004.42597404466,
        1701388800
      ],
      [
        "amazon-web-services",
        "2024",
        "01",
        313523.0173567938,
        1704067200
      ],
      [
        "amazon-web-services",
        "2024",
        "02",
        299471.6298391634,
        1706745600
      ],
      [
        "amazon-web-services",
        "2024",
        "03",
        104042.84870879125,
        1709251200
      ],
      [
        "amazon-web-services",
        "2024",
        "04",
        91039.54142940845,
        1711929600
      ],
      [
        "amazon-web-services",
        "2024",
        "05",
        72912.15826542026,
        1714521600
      ],
      [
        "amazon-web-services",
        "2024",
        "06",
        44885.68562664757,
        1717200000
      ],
      [
        "amazon-web-services",
        "2024",
        "07",
        331956.2241485975,
        1719792000
      ],
      [
        "amazon-web-services",
        "2024",
        "08",
        268081.4014359781,
        1722470400
      ],
      [
        "amazon-web-services",
        "2024",
        "09",
        9430.640448551749,
        1725148800
      ],
      [
        "google-cloud",
        "2023",
        "10",
        156741.32602723103,
        1696118400
      ],
(omitted...)
      [
        "google-cloud",
        "2024",
        "09",
        22354.92029756825,
        1725148800
      ]
    ],
    "forecastRows": [
      [
        "Forecast",
        "2023",
        "10",
        null,
        1696118400
      ],
      [
        "Forecast",
        "2023",
        "11",
        null,
        1698796800
      ],
(omitted...)
      [
        "Forecast",
        "2025",
        "07",
        296300.8125,
        1751328000
      ]
    ]
  }
}
```

<br />

<Callout icon="🚧" theme="warn">
  ### Experimental feature

  You can pass an optional `timeRange` query parameter to override the time range of the report. You can either specify a period or startDate/endDate pair.

  Examples:

  - [https://api.doit.com/analytics/v1/reports/\{id\}?timeRange=P20D](https://api.doit.com/analytics/v1/reports/\{id\}?timeRange=P20D)
  - [https://api.doit.com/analytics/v1/reports/\{id\}?startDate=2022-08-15\&endDate=2022-09-03](https://api.doit.com/analytics/v1/reports/\{id\}?startDate=2022-08-15\&endDate=2022-09-03)

  To specify a period, use P\[n]Y\[n]M\[n]D notation, where Y is the year(s), M is the month(s), and D is the day(s). For example, P28D means the last 28 days, and P1Y means the last year.
</Callout>