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

# Get user usage

`POST /account/v1alpha1/user-usage`

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

---

[API](https://skmtc.net/labring/apis/sealos-account-service.md) · [All operations](https://skmtc.net/labring/apis/sealos-account-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/labring/sealos-account-service/versions/185eff260477/schema)
