---
title: "Get Dashboard Data"
method: GET
path: "/api/analytics/dashboard"
tags: ["Analytics"]
---

# Get Dashboard Data

`GET /api/analytics/dashboard`

## Request

- Base URL: `https://api.soeru.biz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.soeru.biz/api/analytics/dashboard`
- Auth: none declared. Required headers: `authorization`

Get dashboard summary data.

Performance optimizations:
- 5-min in-memory cache, invalidated on message generation
- asyncio.to_thread() for all sync Supabase calls → true parallelism
- Consolidated per-shop monthly counts into single in_() query
- Reduced total queries from ~15+ sequential to ~8 parallel

## Headers

- `authorization` string, required: Bearer <token>
- `x-shop-id` string, nullable: Optional shop ID

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/soeru/apis/soeru-api.md) · [All operations](https://skmtc.dev/soeru/apis/soeru-api/llms.txt) · [OpenAPI document](https://skmtc.dev/soeru/apis/soeru-api/revisions/63f8d371abed?raw)
