---
title: "Export a template document"
method: GET
path: "/automation-studio/templates/{id}/export"
tags: ["Automation Studio"]
---

# Export a template document

`GET /automation-studio/templates/{id}/export`

## Request

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

Exports a template document.

## Path parameters

- `id` string, required

## Response `200`

Exported representation of the template.

- AutomationStudioTemplateImport: Data to import as a new template document.
  - `_id` string, required: Unique identifier of the automation
  - `name` string, required
  - `projectId` string, nullable
  - `group` string
  - `device` string
  - `command` string, required
  - `description` string
  - `template` string, required
  - `data` string
  - `text` string
  - `type` 'textfsm' | 'jinja2', required
  - `createdBy` string: Unique identifier of the automation
  - `created` string, date-time
  - `lastModifiedBy` string: Unique identifier of the automation
  - `lastUpdated` string, date-time
  - `version` number, double
  - `tags` AutomationStudioTemplateImportTagsItems[]
    - `_id` string: Unique identifier of the automation
    - `name` string: user-given, unique string to ID tag

## 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/:id/export/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)
