---
title: "Get Admin Overview"
method: GET
path: "/api/budget/admin/overview"
tags: ["copilot_frontend", "copilot_budget"]
---

# Get Admin Overview

`GET /api/budget/admin/overview`

Vista global admin: citas + presupuestos + pedidos de todos los comerciales.

Si comercial_id es None -> devuelve todos los visible_in_analytics=true.
Si comercial_id es int  -> devuelve solo ese comercial.

Returns:
    Dict with:
    - date: The query date
    - comerciales: List of comerciales with their calendar_events and db_budgets
    - total_comerciales: Number of comerciales in the response

**Protected Endpoint:** Requires JWT authentication and 'admin' role

## Query parameters

- `date` string, nullable — Date in YYYY-MM-DD format. Defaults to today.
- `comercial_id` integer, nullable — Filter by specific comercial ID.

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

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