---
title: "Get Dashboard Requests"
method: POST
path: "/v1/general/dashboard-stats"
tags: ["general"]
---

# Get Dashboard Requests

`POST /v1/general/dashboard-stats`

Fetch the data for the different graphs in the dashboard.

## Request body

- StatsRequest
  - `params` GetTableSortParams[] — The sorting parameters for the query
    - `col` string, required
    - `order` 'asc' | 'desc', required
    - `multiple` boolean, nullable, required
  - `date_from` string, date-time, required — The earliest date we are searching for.
  - `date_to` string, date-time, nullable — The latest date we are searching for.
  - `app_ids` string[] — The list of API Keys we want to filter for. Leave the list empty to disable filtering (and return data for all apps) instead.
  - `cumulative` object, nullable, required
  - `type` 'dashboard' | 'usage' | 'custom', required
  - `graphs` string[], nullable

## Response `200`

Successful Response

- DashboardGraphData[]
  - `large` boolean, nullable
  - `cumulative` boolean, nullable
  - `name` string, required
  - `label` string, required
  - `id` 'latency' | 'errors' | 'requests' | 'savings' | 'costs', required
  - `color` string, required
  - `data` StatsPopulatedGraphResult[], required
    - `date` string, required
    - `x` string, required
    - `y` number, required
    - `y_units` string, required
  - `max` number, required
  - `total` number, required
  - `interval` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pulze/apis/pulze-ai-api.md) · [All operations](https://skmtc.net/pulze/apis/pulze-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pulze/pulze-ai-api/versions/a5e0b539abc5/schema)
