---
title: "Get namespace billing history list"
method: POST
path: "/account/v1alpha1/namespaces"
tags: ["BillingHistory"]
---

# Get namespace billing history list

`POST /account/v1alpha1/namespaces`

Get the billing history namespace list from the database

## Request body

- HelperNamespaceBillingHistoryReq
  - `endTime` string
  - `kubeConfig` string
  - `owner` string
  - `startTime` string
  - `token` string
  - `type` integer — @Summary Type of the request (optional) @Description Type of the request (optional) @JSONSchema
  - `userID` string
  - `userUID` string

## Response `200`

successfully retrieved namespace billing history list

- HelperNamespaceBillingHistoryRespData
  - `list` string[]

## Other responses

- `400` — failed to parse namespace billing history request
- `401` — authenticate error
- `500` — failed to get namespace billing history list

---

[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)
