---
title: "Get Team Spend By User"
method: GET
path: "/team/spend/by_user"
tags: ["team management"]
---

# Get Team Spend By User

`GET /team/spend/by_user`

## Request

- Base URL: `https://api.sea-lion.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sea-lion.ai/team/spend/by_user`
- Auth: API key in header `x-litellm-api-key`

Spend per user within the given teams, attributed per request from spend logs.

Proxy admins may query any team. Team admins and members holding the
`/team/daily/activity` permission see every user of the requested teams;
other members only see their own row.

## Query parameters

- `team_ids` string, nullable
- `start_date` string, nullable
- `end_date` string, nullable

## Response `200`

Successful Response

- TeamUserSpendResponse
  - `start_date` string, required
  - `end_date` string, required
  - `results` TeamUserSpendRow[], required
    - `team_id` string, required
    - `team_alias` string, nullable
    - `user_id` string, required
    - `user_email` string, nullable
    - `user_alias` string, nullable
    - `spend` number
    - `prompt_tokens` integer
    - `completion_tokens` integer
    - `total_tokens` integer
    - `api_requests` integer
    - `successful_requests` integer
    - `failed_requests` integer

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-21** `f2fb14eab3f5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sea-lion/apis/litellm-api/changes/team/spend/by_user/get.md)

---

[API](https://skmtc.dev/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.dev/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sea-lion/apis/litellm-api/revisions/1ba9123c189a?raw)
