---
title: "Read a report"
---

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

# Read a report

Path: Insights API › Reports

`GET /v1/insights/reports/{reportId}`

One report over a date range, for the caller's own organization. Figures refresh within 30 minutes.

- **Scope:** `insights:reports:read`
- **Credentials:** an API key, a client-credentials token or a person's access token
- **Effect:** read-only; safe to retry
- **Limits:** response up to 256 KB
- **CLI:** `arbol insights reports get` · not available on MCP

## Authentication

Requires one of the following:

- `arbolHuman`, oauth2, scopes: `insights:reports:read`
- `arbolMachine`, oauth2, scopes: `insights:reports:read`
- `arbolApiKey`, http, header `Authorization`

## Path parameters

- `reportId` (`insights.reports.get.path.reportId`; string, required) — The report id.
  - maxLength 64; pattern `^[a-z_]+$`

## Query parameters

- `from` (`insights.reports.get.query.from`; string, required) — A day, as YYYY-MM-DD.
  - format `date`; pattern `^[0-9]{4}-[0-9]{2}-[0-9]{2}$`
- `to` (`insights.reports.get.query.to`; string, required) — A day, as YYYY-MM-DD.
  - format `date`; pattern `^[0-9]{4}-[0-9]{2}-[0-9]{2}$`

## Code samples

### cURL

```bash
curl "https://api.getarbol.com/v1/insights/reports/<reportId>?from=2026-12-01&to=2026-12-01" \
  --header "Authorization: Bearer $ARBOL_API_KEY"
```

### TypeScript

```typescript
import { createClient } from "@arbol-ai/sdk";

const arbol = createClient({
  baseUrl: "https://api.getarbol.com",
  token: process.env.ARBOL_API_KEY!,
});

const { data } = await arbol.insights.reports.get({
  from: Temporal.PlainDate.from("2026-12-01"),
  reportId: "<reportId>",
  to: Temporal.PlainDate.from("2026-12-01"),
});
```

### Rust

```rust
use arbol_sdk::{types, Client, Credential};

let arbol = Client::new(Credential::ApiKey(std::env::var("ARBOL_API_KEY")?))?;

let data = arbol
    .insights()
    .reports()
    .get(&types::InsightsReportsGetInput {
        from: "2026-12-01".into(),
        report_id: "<reportId>".into(),
        to: "2026-12-01".into(),
    })
    .await?;
```

### CLI

```bash
arbol insights reports get '<reportId>' --from 2026-12-01 --to 2026-12-01
```

## Responses

### 200

Successful operation.

#### Example

```json
{
  "success": true,
  "data": {
    "from": "2019-08-24",
    "reportId": "string",
    "rows": [
      {}
    ],
    "to": "2019-08-24"
  },
  "error": null,
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`insights.reports.get.response.200.success`; boolean, required)
  - one of `true`
- `data` (`insights.reports.get.response.200.data`; object, required)
  - `from` (`insights.reports.get.response.200.data.from`; string, required) — A day, as YYYY-MM-DD.
    - format `date`; pattern `^[0-9]{4}-[0-9]{2}-[0-9]{2}$`
  - `reportId` (`insights.reports.get.response.200.data.reportId`; string, required)
  - `rows` (`insights.reports.get.response.200.data.rows`; array<object>, required) — One row per day and dimension, with the report's figures.
  - `to` (`insights.reports.get.response.200.data.to`; string, required) — A day, as YYYY-MM-DD.
    - format `date`; pattern `^[0-9]{4}-[0-9]{2}-[0-9]{2}$`
- `error` (`insights.reports.get.response.200.error`; unknown, required)
- `metadata` (`insights.reports.get.response.200.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`insights.reports.get.response.200.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.

### 400

`INVALID_INPUT`: The request does not match the published schema.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "INVALID_INPUT",
    "message": "string",
    "retryable": false,
    "data": {
      "issues": [
        {
          "path": "string",
          "message": "string"
        }
      ]
    }
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`insights.reports.get.response.400.success`; boolean, required)
  - one of `false`
- `data` (`insights.reports.get.response.400.data`; unknown, required)
- `error` (`insights.reports.get.response.400.error`; object, required) — The request does not match the published schema.
  - `code` (`insights.reports.get.response.400.error.code`; string, required) — The failure code, stable across releases.
    - one of `"INVALID_INPUT"`
  - `message` (`insights.reports.get.response.400.error.message`; string, required) — What went wrong, for people; it never contains input values.
  - `retryable` (`insights.reports.get.response.400.error.retryable`; boolean, required) — Whether repeating the same request may succeed.
    - one of `false`
  - `data` (`insights.reports.get.response.400.error.data`; object, required)
    - `issues` (`insights.reports.get.response.400.error.data.issues`; array<object>, optional)
      - `path` (`insights.reports.get.response.400.error.data.issues.path`; string, required) — RFC 6901 JSON Pointer to the refused field; empty for the whole input.
        - maxLength 256
      - `message` (`insights.reports.get.response.400.error.data.issues.message`; string, required)
        - maxLength 256
- `metadata` (`insights.reports.get.response.400.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`insights.reports.get.response.400.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.

### 401

`UNAUTHORIZED`: A valid access token is required.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "UNAUTHORIZED",
    "message": "string",
    "retryable": false,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`insights.reports.get.response.401.success`; boolean, required)
  - one of `false`
- `data` (`insights.reports.get.response.401.data`; unknown, required)
- `error` (`insights.reports.get.response.401.error`; object, required) — A valid access token is required.
  - `code` (`insights.reports.get.response.401.error.code`; string, required) — The failure code, stable across releases.
    - one of `"UNAUTHORIZED"`
  - `message` (`insights.reports.get.response.401.error.message`; string, required) — What went wrong, for people; it never contains input values.
  - `retryable` (`insights.reports.get.response.401.error.retryable`; boolean, required) — Whether repeating the same request may succeed.
    - one of `false`
  - `data` (`insights.reports.get.response.401.error.data`; object, required) — No fields.
- `metadata` (`insights.reports.get.response.401.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`insights.reports.get.response.401.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.

### 403

`FORBIDDEN`: The token does not authorize this operation.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "FORBIDDEN",
    "message": "string",
    "retryable": false,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`insights.reports.get.response.403.success`; boolean, required)
  - one of `false`
- `data` (`insights.reports.get.response.403.data`; unknown, required)
- `error` (`insights.reports.get.response.403.error`; object, required) — The token does not authorize this operation.
  - `code` (`insights.reports.get.response.403.error.code`; string, required) — The failure code, stable across releases.
    - one of `"FORBIDDEN"`
  - `message` (`insights.reports.get.response.403.error.message`; string, required) — What went wrong, for people; it never contains input values.
  - `retryable` (`insights.reports.get.response.403.error.retryable`; boolean, required) — Whether repeating the same request may succeed.
    - one of `false`
  - `data` (`insights.reports.get.response.403.error.data`; object, required) — No fields.
- `metadata` (`insights.reports.get.response.403.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`insights.reports.get.response.403.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.

### 404

`REPORT_NOT_FOUND`: There is no such report.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "REPORT_NOT_FOUND",
    "message": "string",
    "retryable": false,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`insights.reports.get.response.404.success`; boolean, required)
  - one of `false`
- `data` (`insights.reports.get.response.404.data`; unknown, required)
- `error` (`insights.reports.get.response.404.error`; object, required) — There is no such report.
  - `code` (`insights.reports.get.response.404.error.code`; string, required) — The failure code, stable across releases.
    - one of `"REPORT_NOT_FOUND"`
  - `message` (`insights.reports.get.response.404.error.message`; string, required) — What went wrong, for people; it never contains input values.
  - `retryable` (`insights.reports.get.response.404.error.retryable`; boolean, required) — Whether repeating the same request may succeed.
    - one of `false`
  - `data` (`insights.reports.get.response.404.error.data`; object, required) — No fields.
- `metadata` (`insights.reports.get.response.404.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`insights.reports.get.response.404.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.

### 429

`RATE_LIMITED`: The request rate limit was exceeded. Try again later.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "RATE_LIMITED",
    "message": "string",
    "retryable": true,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`insights.reports.get.response.429.success`; boolean, required)
  - one of `false`
- `data` (`insights.reports.get.response.429.data`; unknown, required)
- `error` (`insights.reports.get.response.429.error`; object, required) — The request rate limit was exceeded. Try again later.
  - `code` (`insights.reports.get.response.429.error.code`; string, required) — The failure code, stable across releases.
    - one of `"RATE_LIMITED"`
  - `message` (`insights.reports.get.response.429.error.message`; string, required) — What went wrong, for people; it never contains input values.
  - `retryable` (`insights.reports.get.response.429.error.retryable`; boolean, required) — Whether repeating the same request may succeed.
    - one of `true`
  - `data` (`insights.reports.get.response.429.error.data`; object, required) — No fields.
- `metadata` (`insights.reports.get.response.429.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`insights.reports.get.response.429.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.

### 500

`INTERNAL_ERROR`: The service could not complete the operation.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "INTERNAL_ERROR",
    "message": "string",
    "retryable": false,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`insights.reports.get.response.500.success`; boolean, required)
  - one of `false`
- `data` (`insights.reports.get.response.500.data`; unknown, required)
- `error` (`insights.reports.get.response.500.error`; object, required) — The service could not complete the operation.
  - `code` (`insights.reports.get.response.500.error.code`; string, required) — The failure code, stable across releases.
    - one of `"INTERNAL_ERROR"`
  - `message` (`insights.reports.get.response.500.error.message`; string, required) — What went wrong, for people; it never contains input values.
  - `retryable` (`insights.reports.get.response.500.error.retryable`; boolean, required) — Whether repeating the same request may succeed.
    - one of `false`
  - `data` (`insights.reports.get.response.500.error.data`; object, required) — No fields.
- `metadata` (`insights.reports.get.response.500.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`insights.reports.get.response.500.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.

### 502

`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "OUTCOME_UNKNOWN",
    "message": "string",
    "retryable": false,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`insights.reports.get.response.502.success`; boolean, required)
  - one of `false`
- `data` (`insights.reports.get.response.502.data`; unknown, required)
- `error` (`insights.reports.get.response.502.error`; object, required) — The operation may have been applied; check its result before repeating it.
  - `code` (`insights.reports.get.response.502.error.code`; string, required) — The failure code, stable across releases.
    - one of `"OUTCOME_UNKNOWN"`
  - `message` (`insights.reports.get.response.502.error.message`; string, required) — What went wrong, for people; it never contains input values.
  - `retryable` (`insights.reports.get.response.502.error.retryable`; boolean, required) — Whether repeating the same request may succeed.
    - one of `false`
  - `data` (`insights.reports.get.response.502.error.data`; object, required) — No fields.
- `metadata` (`insights.reports.get.response.502.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`insights.reports.get.response.502.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.

### 503

- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.
- `REPORT_UNAVAILABLE`: The report cannot be read right now. Try again in a few minutes.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "UPSTREAM_UNAVAILABLE",
    "message": "string",
    "retryable": true,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`insights.reports.get.response.503.success`; boolean, required)
  - one of `false`
- `data` (`insights.reports.get.response.503.data`; unknown, required)
- `error` (`insights.reports.get.response.503.error`; InsightsGetReportServiceUnavailableFailure, required)
  - one of: `UpstreamUnavailableFailure`, `InsightsReportUnavailableFailure`
  - discriminator: `code`
- `metadata` (`insights.reports.get.response.503.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`insights.reports.get.response.503.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.

### 504

`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.

#### Example

```json
{
  "success": false,
  "data": null,
  "error": {
    "code": "UPSTREAM_TIMEOUT",
    "message": "string",
    "retryable": true,
    "data": {}
  },
  "metadata": {
    "requestId": "string"
  }
}
```

- `success` (`insights.reports.get.response.504.success`; boolean, required)
  - one of `false`
- `data` (`insights.reports.get.response.504.data`; unknown, required)
- `error` (`insights.reports.get.response.504.error`; object, required) — The upstream service did not respond before its deadline.
  - `code` (`insights.reports.get.response.504.error.code`; string, required) — The failure code, stable across releases.
    - one of `"UPSTREAM_TIMEOUT"`
  - `message` (`insights.reports.get.response.504.error.message`; string, required) — What went wrong, for people; it never contains input values.
  - `retryable` (`insights.reports.get.response.504.error.retryable`; boolean, required) — Whether repeating the same request may succeed.
    - one of `true`
  - `data` (`insights.reports.get.response.504.error.data`; object, required) — No fields.
- `metadata` (`insights.reports.get.response.504.metadata`; object, required) — What every answer carries besides its data or error.
  - `requestId` (`insights.reports.get.response.504.metadata.requestId`; string, required) — Request correlation identifier, also sent as X-Request-Id.


Source: https://docs.getarbol.com/api/insights/reports/get/index.md
