---
title: "List Spend Log End Users"
method: GET
path: "/management/v1/spend_logs/end_users"
tags: ["Budget & Spend Tracking"]
---

# List Spend Log End Users

`GET /management/v1/spend_logs/end_users`

## 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/management/v1/spend_logs/end_users`
- Auth: API key in header `x-litellm-api-key`

The distinct end users appearing in spend logs over a time window, for the logs
page filter dropdown.

Scoped like `/spend/logs/ui`: a proxy admin sees every end user in the window,
anyone else sees only end users from their own requests or from teams they
administer (or hold the `/spend/logs` permission on).

The window is required and the inner scan is capped at SPEND_LOGS_FACET_SCAN_CAP
rows, so the query cannot degrade into a full-table scan the way
`/global/all_end_users` does.

Example curl:
```
curl --location --globoff 'http://0.0.0.0:4000/management/v1/spend_logs/end_users?filter[startTime][gte]=2026-07-23T00:00:00Z&filter[startTime][lte]=2026-07-24T00:00:00Z&page_size=50&q=acme'         --header "Authorization: Bearer $LITELLM_MASTER_KEY"
```

## Query parameters

- `filter[startTime][gte]` string, date-time, required: Window start (UTC when no offset is given)
- `filter[startTime][lte]` string, date-time, required: Window end (UTC when no offset is given)
- `q` string, nullable: Case-insensitive partial match on the end user id
- `page` integer: Page number
- `page_size` integer: Page size

## Response `200`

Successful Response

- FacetListResponse: The distinct values one column takes over a filtered query. `data` holds bare values, not entity rows.
  - `data` string[], required
  - `meta` PageMeta, required: `has_more` rather than `total_count`, which would need a COUNT(*) over the whole match set per keystroke.
    - `page` integer, required
    - `page_size` integer, required
    - `has_more` boolean, required
  - `links` PageLinks, required: Hypermedia for a paginated list. No `first`/`last`: without a total count the last page is unknown.
    - `self` string, required
    - `prev` string, nullable
    - `next` string, nullable

## 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/management/v1/spend_logs/end_users/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)
