---
title: "Retrieve a customer"
method: GET
path: "/api/users/{customer_identifier}/"
tags: ["users"]
---

# Retrieve a customer

`GET /api/users/{customer_identifier}/`

Retrieve a customer by `customer_identifier`. This endpoint returns the editable customer profile and current budget usage fields.

## Path parameters

- `customer_identifier` string, required

## Query parameters

- `environment` 'prod' | 'test'

## Headers

- `Authorization` string, required

## Response `200`

Customer details.

- UsersRetrieveUserResponse200
  - `id` string — Customer identifier used by the detail serializer.
  - `name` string, nullable — Customer display name.
  - `email` string, nullable — Customer email address.
  - `customer_identifier` string — Your unique identifier for the customer.
  - `environment` 'prod' | 'test' — Customer environment.
  - `total_budget` number, double, nullable — Lifetime spending budget in USD.
  - `period_budget` number, double, nullable — Current period budget in USD.
  - `organization_name` string, nullable — Owning organization name.
  - `total_period_usage` number, double — Usage in the current budget period in USD.
  - `period_start` string, date-time — Start of the current budget period.
  - `period_end` string, date-time, nullable — End of the current budget period.
  - `budget_duration` 'daily' | 'weekly' | 'monthly' — Budget renewal period.
  - `updated_at` string, date-time — Last update timestamp.

## Other responses

- `401` — Unauthorized - Missing/invalid authentication
- `404` — Not Found
- `429` — Rate Limited
- `500` — Internal Server Error

---

[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/revisions/4e064cf81dae/schema)
