---
title: "POST /spaces/{space_id}/insights"
method: POST
path: "/spaces/{space_id}/insights"
tags: ["Reports"]
---

# POST /spaces/{space_id}/insights

`POST /spaces/{space_id}/insights`

Fetch insights based on total conversations received, tagged, replied or closed.

#### **Request Body**

Parameter

Type

Description

startTime

`integer`

**Required.**  
Start timestamp in seconds _(10 digit value)_

endTime

`integer`

**Required.**  
End timestamp in seconds _(10 digit value)_

metrics

`{ "name:" "string", "key:" "string", "aggFunction:" "string }[]`

**Required.**  
Individual measurements related to the insights data provided by the social network or computed by Statusbrew

dimensions

`{ "name:" "string", "groupType:" "string" }[]`

_Optional_  
Dimensions are common criteria that are used to aggregate data, such as the date on which an action occurred or the language in which the conversations are being received. Each row of data has a unique combination of dimension values. The dimensions you choose for a report determine how Statusbrew calculates the values for the metrics in that report.

filters

`{ "name:" "string", "values:" ["string"] }[]`

_Optional._  
Filter the exported data based on your requirement

## Path parameters

- `space_id` string, required

## Request body

- object
  - `startTime` integer — Start timestamp (in seconds, 10 digit value)
  - `endTime` integer — End timestamp (in seconds, 10 digit value)
  - `filters` object[]
    - `name` string
    - `values` string[]
  - `dimensions` object[]
    - `name` string
    - `groupType` string
  - `metrics` object[]
    - `name` string
    - `key` string
    - `aggFunction` string

## Response `200`

successful operation

---

[API](https://skmtc.dev/statusbrew/apis/analytics-api.md) · [All operations](https://skmtc.dev/statusbrew/apis/analytics-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/statusbrew/analytics-api/revisions/f3d70ecb9264/schema)
