---
updatedAt: 2026-06-12T14:47:10.000Z
agentTools:
  projectIndex: https://docs.formant.io/llms.txt
---

# List

List command templates in your organization.
Resource: commands
Authorized roles: viewer

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "Filter": {
        "properties": {
          "deviceIds": {
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array"
          },
          "names": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "types": {
            "items": {
              "type": "string",
              "enum": [
                "bitset",
                "localization",
                "point cloud",
                "location",
                "file",
                "health",
                "transform tree",
                "battery",
                "video",
                "numeric set",
                "json",
                "image",
                "numeric",
                "text"
              ]
            },
            "type": "array"
          },
          "notTags": {},
          "notNames": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "agentIds": {
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array"
          },
          "tags": {
            "title": "MultiTagSets",
            "description": "One or more TagSets (combined with OR logic)",
            "oneOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TagSets"
                }
              },
              {
                "$ref": "#/components/schemas/TagSets"
              }
            ]
          }
        },
        "type": "object",
        "nullable": true
      },
      "ScopeFilter": {
        "properties": {
          "start": {
            "format": "date-time",
            "type": "string"
          },
          "end": {
            "format": "date-time",
            "type": "string"
          },
          "tags": {
            "title": "MultiTagSets",
            "description": "One or more TagSets (combined with OR logic)",
            "oneOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TagSets"
                }
              },
              {
                "$ref": "#/components/schemas/TagSets"
              }
            ]
          },
          "deviceIds": {
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array"
          },
          "names": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "types": {
            "items": {
              "type": "string",
              "enum": [
                "bitset",
                "localization",
                "point cloud",
                "location",
                "file",
                "health",
                "transform tree",
                "battery",
                "video",
                "numeric set",
                "json",
                "image",
                "numeric",
                "text"
              ]
            },
            "type": "array"
          },
          "notTags": {},
          "notNames": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "agentIds": {
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object",
        "nullable": true
      },
      "CommandDeliverySettings": {
        "properties": {
          "ttlMs": {
            "type": "integer",
            "format": "int64",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "retryable": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "CommandTemplate": {
        "properties": {
          "organizationId": {
            "format": "uuid",
            "type": "string",
            "description": "ID for the organization in which you want to create this new command template."
          },
          "name": {
            "maxLength": 32,
            "type": "string",
            "description": "Name of this command template."
          },
          "command": {
            "type": "string",
            "description": "Function, script, or routine that will be executed by a command in this template."
          },
          "description": {
            "maxLength": 1024,
            "type": "string",
            "description": "Description of this command template."
          },
          "parameterEnabled": {
            "type": "boolean",
            "description": "If you want to send parameters with your command, set this to `true`."
          },
          "allowParameterOverride": {
            "type": "boolean"
          },
          "parameterValue": {
            "maxLength": 1024,
            "type": "string",
            "description": "This string will be passed as a parameter when this command is sent."
          },
          "parameterMeta": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "You can use this to add many parameters in a more structured way."
          },
          "deviceScope": {
            "$ref": "#/components/schemas/ScopeFilter",
            "description": "Currently unused, ignore."
          },
          "enabled": {
            "type": "boolean",
            "description": "If set to `false`, this command template will be deleted."
          },
          "deviceFilter": {
            "$ref": "#/components/schemas/Filter",
            "nullable": true
          },
          "lambdaUri": {
            "type": "string",
            "nullable": true
          },
          "deliverySettings": {
            "$ref": "#/components/schemas/CommandDeliverySettings"
          },
          "schema": {
            "maxLength": 10000,
            "type": "string",
            "format": "json",
            "nullable": true
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "tags": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        },
        "type": "object",
        "required": [
          "name",
          "command",
          "parameterEnabled",
          "deviceFilter"
        ]
      },
      "CommandTemplateListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/CommandTemplate"
            },
            "type": "array"
          }
        },
        "type": "object",
        "required": [
          "items"
        ]
      },
      "TagSets": {
        "title": "TagSets",
        "description": "A map of tag keys to an array of values",
        "type": "object",
        "additionalProperties": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "info": {
    "title": "Formant admin-api",
    "version": "1.357.8"
  },
  "openapi": "3.0.0",
  "paths": {
    "/command-templates/": {
      "get": {
        "operationId": "CommandTemplateController.list",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommandTemplateListResponse"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "List",
        "tags": [
          "Command Template"
        ],
        "description": "List command templates in your organization.\nResource: commands\nAuthorized roles: viewer",
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.formant.io/v1/admin"
    }
  ]
}
```