---
title: "Get Client Templates"
method: GET
path: "/api/client_templates"
tags: ["Client Template"]
---

# Get Client Templates

`GET /api/client_templates`

## Query parameters

- `ids` integer[], nullable
- `template_type` 'clash_subscription' | 'xray_subscription' | 'singbox_subscription' | 'user_agent' | 'grpc_user_agent'
- `offset` integer, nullable
- `limit` integer, nullable

## Response `200`

Successful Response

- ClientTemplateResponseList
  - `count` integer, required
  - `templates` ClientTemplateResponse[]
    - `id` integer, required
    - `name` string, required
    - `template_type` 'clash_subscription' | 'xray_subscription' | 'singbox_subscription' | 'user_agent' | 'grpc_user_agent', required
    - `content` string, required
    - `is_default` boolean, required
    - `is_system` boolean, required

## Other responses

- `401` — Unauthorized Error
- `403` — Forbidden Error
- `422` — Validation Error

---

[API](https://skmtc.dev/rain/apis/pasarguardapi.md) · [All operations](https://skmtc.dev/rain/apis/pasarguardapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rain/pasarguardapi/revisions/b3bebca20611/schema)
