---
title: "GET /command_template"
method: GET
path: "/command_template"
tags: ["command_template"]
---

# GET /command_template

`GET /command_template`

## Request

- The document declares no server URL.
- Auth: none declared

## Query parameters

- `page_index` integer
- `page_size` integer
- `search` string
- `category` string
- `builtin` boolean
- `info` boolean

## Response `200`

OK

- object
  - `code` integer
  - `data` ModelCommandTemplate[]
    - `category` 'security' | 'system' | 'database' | 'network' | 'file' | 'developer' | 'custom'
    - `cmd_ids` integer[]
    - `created_at` string
    - `creator_id` integer
    - `description` string
    - `id` integer
    - `is_builtin` boolean: Built-in template
    - `name` string
    - `resource_id` integer
    - `updated_at` string
    - `updater_id` integer
  - `message` string

## Changes

- **2025-07-30** `3f31e2c4d960`: 1 info
  - added the new optional `query` request parameter `search`
- **2025-07-16** `788529308517`: 1 info
  - endpoint added
- **2025-03-02** `f6b1c099afda`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/veops/apis/veops-oneterm-api/changes/command_template/get.md)

---

[API](https://skmtc.dev/veops/apis/veops-oneterm-api.md) - [All operations](https://skmtc.dev/veops/apis/veops-oneterm-api/llms.txt) - [OpenAPI document](https://skmtc.dev/veops/apis/veops-oneterm-api/revisions/bd0569ff0157?raw)
