---
title: "Get Spending By Category"
method: GET
path: "/api/dashboard/spending-by-category"
tags: ["dashboard"]
---

# Get Spending By Category

`GET /api/dashboard/spending-by-category`

## Query parameters

- `month` string, date, nullable
- `account_ids` string[], nullable

## Headers

- `X-Workspace-Id` string, nullable

## Response `200`

Successful Response

- SpendingByCategory[]
  - `category_id` string, nullable, required
  - `category_name` string, required
  - `category_icon` string, required
  - `category_color` string, required
  - `total` number, required
  - `percentage` number, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/usesecuro/apis/securo.md) · [All operations](https://skmtc.dev/usesecuro/apis/securo/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usesecuro/securo/revisions/1df3dfa0c028/schema)
