---
title: "Api User Detail Retrieve"
method: GET
path: "/api/user/detail/{customer_identifier}/"
tags: ["users"]
---

# Api User Detail Retrieve

`GET /api/user/detail/{customer_identifier}/`

Consolidated single/detail view for customer users.

Serves BOTH:
- Public API: /api/users/<customer_identifier>/ (URL path lookup)
- Dashboard: /clickhouse/customer-users/<id>/?customer_identifier=xxx (query param lookup)

Retrieves customer user from PostgreSQL (not ClickHouse) because:
1. Point retrieval is weak in ClickHouse
2. Update operations require PostgreSQL
3. All aggregation data is already returned in the list view

This view returns editable fields + real-time usage from Redis.
Rate limited to protect against expensive point queries.

Uses SuperAdminMixin for queryset routing + object-level ownership.
No manual org injection needed - SuperAdminMixin handles patch() automatically.

## Path parameters

- `customer_identifier` string, required

## Headers

- `Authorization` string, required

## Response `200`

- CustomerUserDetail — Serializer for customer user detail view (retrieve/update/delete). Used by both: - Public API: /api/users/<customer_identifier>/ - Dashboard: /clickhouse/customer-users/<id>/ Differences from base CustomerUserUpdateSerializer: - id: Returns string (frontend compatibility) via SerializerMethodField - organization_name: Included for dashboard display - Explicit fields list: Only returns relevant fields for detail view
  - `id` string, required
  - `name` string, nullable
  - `email` string, nullable
  - `customer_identifier` string, nullable
  - `environment` union
    - 'prod' | 'stage' | 'test' | 'all' — * `prod` - Prod * `stage` - Dev * `test` - Test * `all` - All
    - ''
  - `total_budget` number, double, nullable
  - `period_budget` number, double, nullable
  - `organization_name` string, required
  - `total_period_usage` number, double
  - `period_start` string, date-time
  - `period_end` string, date-time, nullable
  - `budget_duration` string
  - `updated_at` string, date-time

---

[API](https://skmtc.net/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.net/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/keywordsai/api-reference/versions/c26d550029f8/schema)
