---
title: "Get user usage"
method: POST
path: "/account/v1alpha1/user-usage"
tags: ["UserUsage"]
---

# Get user usage

`POST /account/v1alpha1/user-usage`

## Request

- Base URL: `https://localhost:2333`
- URL: `https://localhost:2333/account/v1alpha1/user-usage`
- Auth: none declared

Get user usage within a specified time range

## Request body

- HelperUserUsageReq
  - `endTime` string
  - `kubeConfig` string
  - `namespaceList` string[]: NamespaceList @Summary Namespace list @Description Namespace list @JSONSchema
  - `owner` string
  - `startTime` string
  - `token` string
  - `userID` string
  - `userUID` string

## Response `200`

successfully retrieved user usage

- object

## Other responses

- `400`: failed to parse user usage request
- `401`: authenticate error
- `500`: failed to get user usage

## Changes

- **2024-09-06** `5f33bc6efdd7`: 1 info
  - endpoint added
- **2023-12-13** `ac0fa9d94489`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/labring/apis/sealos-account-service/changes/account/v1alpha1/user-usage/post.md)

---

[API](https://skmtc.dev/labring/apis/sealos-account-service.md) - [All operations](https://skmtc.dev/labring/apis/sealos-account-service/llms.txt) - [OpenAPI document](https://skmtc.dev/labring/apis/sealos-account-service/revisions/acd38d9540d3?raw)
