---
title: "Get User Template Endpoint"
method: GET
path: "/api/user_template/{template_id}"
tags: ["User Template"]
---

# Get User Template Endpoint

`GET /api/user_template/{template_id}`

Get User Template information with id

## Path parameters

- `template_id` integer, required

## Response `200`

Successful Response

- UserTemplateResponse
  - `name` string, nullable
  - `data_limit` integer, nullable — data_limit can be 0 or greater
  - `expire_duration` integer, nullable — expire_duration can be 0 or greater in seconds
  - `username_prefix` string, nullable
  - `username_suffix` string, nullable
  - `inbounds` object
  - `id` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/atrvatam/apis/marzbanapi.md) · [All operations](https://skmtc.dev/atrvatam/apis/marzbanapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/atrvatam/marzbanapi/revisions/0aa31d6bd001/schema)
