---
title: "Admin User Cost Summary"
method: GET
path: "/admin/ai-costs/users/{user_id}"
tags: ["admin"]
---

# Admin User Cost Summary

`GET /admin/ai-costs/users/{user_id}`

## Request

- Base URL: `https://api.threadchain.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.threadchain.pro/admin/ai-costs/users/{user_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Per-tech-pack cost summary for any user.

Returns 200 with empty jobs/zero totals when the user exists but has no
AI call logs. Returns 404 only when the user_id is unknown.

## Path parameters

- `user_id` string, uuid, required

## Response `200`

Successful Response

- AICostSummaryResponse
  - `total_cost_usd` string, nullable, required
  - `total_calls` integer, required
  - `jobs` AICostJobSummary[], required
    - `tech_pack_job_id` string, uuid, nullable, required
    - `job_name` string, nullable, required
    - `product_type` string, nullable, required
    - `calls` integer, required
    - `prompt_tokens` integer, required
    - `output_tokens` integer, required
    - `image_tokens` integer, required
    - `images_generated` integer, required
    - `characters_translated` integer, required
    - `total_cost_usd` string, nullable, required
    - `first_call_at` string, nullable, required
    - `last_call_at` string, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/threadchain/apis/threadchain-backend.md) - [All operations](https://skmtc.dev/threadchain/apis/threadchain-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/threadchain/apis/threadchain-backend/revisions/8ee288a7e6bd?raw)
