---
title: "List Questions"
method: GET
path: "/admin/questions"
tags: ["admin"]
---

# List Questions

`GET /admin/questions`

## Request

- Base URL: `https://api.threadchain.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.threadchain.pro/admin/questions`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

List all question templates with filtering, sorting, and pagination.
Requires admin privileges.

Set limit=None (omit the parameter) to return all questions without pagination.

## Query parameters

- `product_type` 'jewelry' | 'clothes'
- `input_type` 'text' | 'yes_no' | 'multiple_choice' | 'file_upload' | 'number' | 'textarea' | 'checkbox'
- `search` string, nullable
- `sort_by` string: Field to sort by
- `order` string
- `limit` integer, nullable: Limit results. Use None to return all questions.
- `offset` integer

## Response `200`

Successful Response

- QuestionTemplateListResponse
  - `questions` QuestionTemplateSchema[], required
    - `product_type` 'jewelry' | 'clothes', required
    - `phase` string, required
    - `question_text` string, required
    - `input_type` 'text' | 'yes_no' | 'multiple_choice' | 'file_upload' | 'number' | 'textarea' | 'checkbox', required
    - `options` union[], nullable
      - union
        - string
        - QuestionOption
          - `label` string, required
          - `image_url` string, nullable
          - `description` string, nullable
    - `validation_rules` object, nullable
    - `order` integer, required
    - `depends_on_question_id` string, uuid, nullable
    - `depends_on_answer` string, nullable
    - `placeholder` string, nullable
    - `help_text` string, nullable
    - `help_display` 'link' | 'inline'
    - `id` string, uuid, required
    - `created_at` string, date-time, required
  - `total` integer, required
  - `product_type_counts` object, required
  - `page` integer, required
  - `limit` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/threadchain/apis/threadchain-backend.md) - [All operations](https://skmtc.dev/threadchain/apis/threadchain-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/threadchain/apis/threadchain-backend/revisions/8ee288a7e6bd?raw)
