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

# Get namespace billing history list

`POST /account/v1alpha1/namespaces`

## Request

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

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