---
title: "Get Plans"
method: GET
path: "/admin/plans"
---

# Get Plans

`GET /admin/plans`

## Request

- Base URL: `https://api.twtapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.twtapi.com/admin/plans`
- Auth: none declared

Return all plans from the plans table.

这里返回**所有**套餐（含已下架的 is_active=False），与 C 端公开接口只返回
生效套餐的口径不同：后台需要看到下架套餐才能重新启用。
plan_type 为空则不过滤。

## Query parameters

- `plan_type` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/twtapi/apis/twtapi-backend.md) · [All operations](https://skmtc.dev/twtapi/apis/twtapi-backend/llms.txt) · [OpenAPI document](https://skmtc.dev/twtapi/apis/twtapi-backend/revisions/5295976febaf?raw)
