---
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`

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 sk-1234'
```

## 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-09-18** `082b5fabd909` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/flock/apis/litellm-api/changes/management/v1/spend_logs/end_users/get.md)

---

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