---
title: "Get user costs"
method: POST
path: "/account/v1alpha1/costs"
tags: ["Costs"]
---

# Get user costs

`POST /account/v1alpha1/costs`

Get user costs within a specified time range

## Request body

- HelperConsumptionRecordReq
  - `appName` string — @Summary App Name @Description App Name
  - `appType` string — @Summary App type @Description App type
  - `endTime` string
  - `kubeConfig` string
  - `namespace` string — @Summary Namespace @Description Namespace
  - `owner` string
  - `startTime` string
  - `token` string
  - `userID` string
  - `userUID` string

## Response `200`

successfully retrieved user costs

- object

## Other responses

- `400` — failed to parse user hour costs amount request
- `401` — authenticate error
- `500` — failed to get user costs

---

[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/revisions/185eff260477/schema)
