---
title: "Aggregated session cost summary"
method: GET
path: "/api/session-costs/summary"
tags: ["Session Data"]
---

# Aggregated session cost summary

`GET /api/session-costs/summary`

## Query parameters

- `groupBy` 'day' | 'agent' | 'both'
- `startDate` string
- `endDate` string
- `agentId` string

## Response `200`

Cost summary

## Other responses

- `400` — Invalid groupBy

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/4f62e32be8ec?raw)
