---
title: "Public Plans"
method: GET
path: "/myapi/plans"
---

# Public Plans

`GET /myapi/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/myapi/plans`
- Auth: none declared

Return active API plans for public display (no auth required).

中文：公开套餐列表接口，营销页使用，无需登录（因此不能返回任何用户数据）。

返回:
    按语言缓存的套餐列表；TTL 30 分钟。

缓存注意:
    key 一定带语言后缀（``public:plans:api:{lang}``），因为套餐名与按钮文案
    已本地化，不同语言必须是不同的缓存条目。后台改套餐时由
    admin.invalidate_plan_cache 主动清除（但它只清了部分语种，
    其余语种最长要等 TTL 到期）。

## Query parameters

- `lang` string

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