---
title: "List Templates"
method: GET
path: "/api/templates/"
tags: ["templates"]
---

# List Templates

`GET /api/templates/`

列出所有可用的 templates（包含统计数据）

Args:
    lang: Optional language code for localized descriptions

Returns:
    List of available templates with statistics

## Query parameters

- `lang` string, nullable — Language code (e.g., 'en', 'zh')

## Response `200`

Successful Response

- TemplateInfo[]
  - `id` string, required — Template unique identifier
  - `name` string, required — Template name
  - `category` string, required — Template category
  - `featured` boolean — Whether the template is featured
  - `description` string, required — Template description
  - `tags` string[] — Template tags
  - `author` string, required — Template author
  - `version` string, required — Template version
  - `views` integer — Number of views
  - `likes` integer — Number of likes
  - `used_count` integer — Number of times used

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.dev/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/66a05609bfdd/schema)
