---
title: "Get a page of template documents"
method: GET
path: "/automation-studio/templates"
tags: ["Automation Studio"]
---

# Get a page of template documents

`GET /automation-studio/templates`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/automation-studio/templates`
- Auth: none declared

Returns a page of template documents.

## Query parameters

- `limit` integer
- `skip` integer
- `order` '-1' | '1': Sort direction, 1 for ascending and -1 for descending.
- `sort` 'name': Field to sort by
- `exclude-project-members` boolean
- `include` string
- `exclude` string
- `in` string
- `not-in` string
- `equals` string
- `contains` string
- `starts-with` string
- `ends-with` string

## Response `200`

Results for the given search parameters.

- AutomationStudioGetTemplatesResponse200
  - `items` AutomationStudioTemplate[]
    - `_id` string: Unique identifier of the automation
    - `namespace` AutomationStudioTemplateNamespace
      - `type` unknown, required
      - `_id` AutomationStudioTemplateNamespaceId, required: A MongoDB ObjectId
      - `name` string, required
    - `name` string, required
    - `group` string, required
    - `command` string, required
    - `description` string, required
    - `template` string, required
    - `data` string, required
    - `type` 'textfsm' | 'jinja2', required
    - `createdBy` string: Unique identifier of the automation
    - `created` string, date-time
    - `lastUpdatedBy` string: Unique identifier of the automation
    - `lastUpdated` string, date-time
    - `version` number, double
    - `tags` AutomationStudioTemplateTagsItems[]
      - `_id` string: Unique identifier of the automation
      - `name` string: user-given, unique string to ID tag
  - `total` integer: Total number of documents matching the given query parameters.
  - `start` integer: Search index of first document in the items array.
  - `end` integer: Search index of the last document in the items array.
  - `count` integer: Length of the items array.
  - `next` string, nullable: URI pointing to the next set of paginated results. Preserves previous search and projection parameters. Null if returning the last page of results.
  - `previous` string, nullable: URI pointing to the previous set of paginated results. Preserves previous search and projection parameters. Null if returning the first page of results.

## Other responses

- `500`: Error response from API

## Changes

- **2026-10-31** `2095cc90e583`: 2 info
  - api tag `Automation Studio` added
  - api tag `automationStudio` removed

[Operation history](https://skmtc.dev/itential/apis/itential-2/changes/automation-studio/templates/get.md)

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
