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

# List Templates

`GET /api/templates/`

List all available templates (including statistics)

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
  - `features` string[] — Template features
  - `connections` ConnectionInfo[] — App connections
    - `name` string, required — Name of the connection
    - `logo` string, nullable — URL to the logo image
  - `setup_time` string — Setup time
  - `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
  - `is_liked` boolean — Whether the current user liked this template

## Other responses

- `422` — Validation Error

---

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