---
title: "List the question-template categories as a tree"
method: GET
path: "/api/admin/questionnaires/question-template-categories"
tags: ["Administration/Questionnaire Templates"]
---

# List the question-template categories as a tree

`GET /api/admin/questionnaires/question-template-categories`

## Request

- Base URL: `https://api.retraced.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.retraced.com/api/admin/questionnaires/question-template-categories`
- Auth: none declared

Every category of the admin question-template library, nested: the root categories, each with its sub-categories under `children` (set only when it has some), ordered by `idx` at every level. A category whose parent no longer exists is listed at the root (legacy answered 500). Unpaginated, in the `{ data, metadata }` envelope. Legacy answered `{ categories, questions }` with every question template and its options; the admin pages read only the categories, so the questions are not carried over.

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required: True when the request succeeded.
  - `data` Schema0[], required (unresolved $ref)

## Other responses

- `401`: Default Response
- `403`: Default Response

## Changes

> 108 revisions in range; 2 not diffed.

- **2026-10-16** `ad676ffaf055`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/retraced/apis/api-reference/changes/api/admin/questionnaires/question-template-categories/get.md)

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) - [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/retraced/apis/api-reference/revisions/83309c4abd20?raw)
