---
title: "Get Costs Top Tasks"
method: GET
path: "/costs/top-tasks"
---

# Get Costs Top Tasks

`GET /costs/top-tasks`

Top *limit* most-expensive tasks within the trailing *hours* window.

Web GUI Costs.tsx renders this as the "Top 10 tasks" card. Each item:
``{id, title, agent, cost_usd}``. Empty list when no usage data is
present so the card can show its empty-state cleanly.

## Query parameters

- `limit` integer
- `hours` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/sipyourdrink-ltd/apis/bernstein-task-server.md) · [All operations](https://skmtc.net/sipyourdrink-ltd/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sipyourdrink-ltd/bernstein-task-server/revisions/86f514b4e920/schema)
