---
title: "Get content template"
method: GET
path: "/wiki/rest/api/template/{contentTemplateId}"
tags: ["Template"]
---

# Get content template

`GET /wiki/rest/api/template/{contentTemplateId}`

Returns a content template. This includes information about template,
like the name, the space or blueprint that the template is in, the body
of the template, and more.

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
'View' permission for the space to view space templates and permission to
access the Confluence site ('Can use' global permission) to view global templates.

## Path parameters

- `contentTemplateId` string, required

## Query parameters

- `expand` string[]

## Response `200`

Returned if the requested template is returned.

- ContentTemplate
  - `templateId` string, required
  - `originalTemplate` object
    - `pluginKey` string
    - `moduleKey` string
  - `referencingBlueprint` string
  - `name` string, required
  - `description` string, required
  - `space` object
  - `labels` Label[], required
    - `prefix` string, required
    - `name` string, required
    - `id` string, required
    - `label` string, required
  - `templateType` string, required
  - `editorVersion` string
  - `body` ContentTemplateBody — The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. `storage`. Note, `editor2` format is used by Atlassian only. `anonymous_export_view` is the same as `export_view` format but only content viewable by an anonymous user is included.
    - `view` ContentBody
      - `value` string, required
      - `representation` 'view' | 'export_view' | 'styled_view' | 'storage' | 'editor' | 'editor2' | 'anonymous_export_view' | 'wiki' | 'atlas_doc_format' | 'raw', required
      - `embeddedContent` EmbeddedContent[]
        - `entityId` integer
        - `entityType` string
        - `entity` Embeddable
      - `webresource` WebResourceDependencies
        - `_expandable` object
          - `uris` union
            - string
            - object
        - `keys` string[]
        - `contexts` string[]
        - `uris` object
          - `all` union
            - string[]
            - string
          - `css` union
            - string[]
            - string
          - `js` union
            - string[]
            - string
          - `_expandable` object
            - `css` union
              - …
            - `js` union
              - …
        - `tags` object
          - `all` string
          - `css` string
          - `data` string
          - `js` string
          - `_expandable` object
        - `superbatch` SuperBatchWebResources
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
          - `metatags` string
          - `_expandable` object
      - `mediaToken` object
        - `collectionIds` string[]
        - `contentId` string
        - `expiryDateTime` string
        - `fileIds` string[]
        - `token` string
      - `_expandable` object
        - `content` string
        - `embeddedContent` string
        - `webresource` string
        - `mediaToken` string
      - `_links` GenericLinks
    - `export_view` ContentBody
      - `value` string, required
      - `representation` 'view' | 'export_view' | 'styled_view' | 'storage' | 'editor' | 'editor2' | 'anonymous_export_view' | 'wiki' | 'atlas_doc_format' | 'raw', required
      - `embeddedContent` EmbeddedContent[]
        - `entityId` integer
        - `entityType` string
        - `entity` Embeddable
      - `webresource` WebResourceDependencies
        - `_expandable` object
          - `uris` union
            - string
            - object
        - `keys` string[]
        - `contexts` string[]
        - `uris` object
          - `all` union
            - string[]
            - string
          - `css` union
            - string[]
            - string
          - `js` union
            - string[]
            - string
          - `_expandable` object
            - `css` union
              - …
            - `js` union
              - …
        - `tags` object
          - `all` string
          - `css` string
          - `data` string
          - `js` string
          - `_expandable` object
        - `superbatch` SuperBatchWebResources
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
          - `metatags` string
          - `_expandable` object
      - `mediaToken` object
        - `collectionIds` string[]
        - `contentId` string
        - `expiryDateTime` string
        - `fileIds` string[]
        - `token` string
      - `_expandable` object
        - `content` string
        - `embeddedContent` string
        - `webresource` string
        - `mediaToken` string
      - `_links` GenericLinks
    - `styled_view` ContentBody
      - `value` string, required
      - `representation` 'view' | 'export_view' | 'styled_view' | 'storage' | 'editor' | 'editor2' | 'anonymous_export_view' | 'wiki' | 'atlas_doc_format' | 'raw', required
      - `embeddedContent` EmbeddedContent[]
        - `entityId` integer
        - `entityType` string
        - `entity` Embeddable
      - `webresource` WebResourceDependencies
        - `_expandable` object
          - `uris` union
            - string
            - object
        - `keys` string[]
        - `contexts` string[]
        - `uris` object
          - `all` union
            - string[]
            - string
          - `css` union
            - string[]
            - string
          - `js` union
            - string[]
            - string
          - `_expandable` object
            - `css` union
              - …
            - `js` union
              - …
        - `tags` object
          - `all` string
          - `css` string
          - `data` string
          - `js` string
          - `_expandable` object
        - `superbatch` SuperBatchWebResources
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
          - `metatags` string
          - `_expandable` object
      - `mediaToken` object
        - `collectionIds` string[]
        - `contentId` string
        - `expiryDateTime` string
        - `fileIds` string[]
        - `token` string
      - `_expandable` object
        - `content` string
        - `embeddedContent` string
        - `webresource` string
        - `mediaToken` string
      - `_links` GenericLinks
    - `storage` ContentBody
      - `value` string, required
      - `representation` 'view' | 'export_view' | 'styled_view' | 'storage' | 'editor' | 'editor2' | 'anonymous_export_view' | 'wiki' | 'atlas_doc_format' | 'raw', required
      - `embeddedContent` EmbeddedContent[]
        - `entityId` integer
        - `entityType` string
        - `entity` Embeddable
      - `webresource` WebResourceDependencies
        - `_expandable` object
          - `uris` union
            - string
            - object
        - `keys` string[]
        - `contexts` string[]
        - `uris` object
          - `all` union
            - string[]
            - string
          - `css` union
            - string[]
            - string
          - `js` union
            - string[]
            - string
          - `_expandable` object
            - `css` union
              - …
            - `js` union
              - …
        - `tags` object
          - `all` string
          - `css` string
          - `data` string
          - `js` string
          - `_expandable` object
        - `superbatch` SuperBatchWebResources
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
          - `metatags` string
          - `_expandable` object
      - `mediaToken` object
        - `collectionIds` string[]
        - `contentId` string
        - `expiryDateTime` string
        - `fileIds` string[]
        - `token` string
      - `_expandable` object
        - `content` string
        - `embeddedContent` string
        - `webresource` string
        - `mediaToken` string
      - `_links` GenericLinks
    - `editor` ContentBody
      - `value` string, required
      - `representation` 'view' | 'export_view' | 'styled_view' | 'storage' | 'editor' | 'editor2' | 'anonymous_export_view' | 'wiki' | 'atlas_doc_format' | 'raw', required
      - `embeddedContent` EmbeddedContent[]
        - `entityId` integer
        - `entityType` string
        - `entity` Embeddable
      - `webresource` WebResourceDependencies
        - `_expandable` object
          - `uris` union
            - string
            - object
        - `keys` string[]
        - `contexts` string[]
        - `uris` object
          - `all` union
            - string[]
            - string
          - `css` union
            - string[]
            - string
          - `js` union
            - string[]
            - string
          - `_expandable` object
            - `css` union
              - …
            - `js` union
              - …
        - `tags` object
          - `all` string
          - `css` string
          - `data` string
          - `js` string
          - `_expandable` object
        - `superbatch` SuperBatchWebResources
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
          - `metatags` string
          - `_expandable` object
      - `mediaToken` object
        - `collectionIds` string[]
        - `contentId` string
        - `expiryDateTime` string
        - `fileIds` string[]
        - `token` string
      - `_expandable` object
        - `content` string
        - `embeddedContent` string
        - `webresource` string
        - `mediaToken` string
      - `_links` GenericLinks
    - `editor2` ContentBody
      - `value` string, required
      - `representation` 'view' | 'export_view' | 'styled_view' | 'storage' | 'editor' | 'editor2' | 'anonymous_export_view' | 'wiki' | 'atlas_doc_format' | 'raw', required
      - `embeddedContent` EmbeddedContent[]
        - `entityId` integer
        - `entityType` string
        - `entity` Embeddable
      - `webresource` WebResourceDependencies
        - `_expandable` object
          - `uris` union
            - string
            - object
        - `keys` string[]
        - `contexts` string[]
        - `uris` object
          - `all` union
            - string[]
            - string
          - `css` union
            - string[]
            - string
          - `js` union
            - string[]
            - string
          - `_expandable` object
            - `css` union
              - …
            - `js` union
              - …
        - `tags` object
          - `all` string
          - `css` string
          - `data` string
          - `js` string
          - `_expandable` object
        - `superbatch` SuperBatchWebResources
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
          - `metatags` string
          - `_expandable` object
      - `mediaToken` object
        - `collectionIds` string[]
        - `contentId` string
        - `expiryDateTime` string
        - `fileIds` string[]
        - `token` string
      - `_expandable` object
        - `content` string
        - `embeddedContent` string
        - `webresource` string
        - `mediaToken` string
      - `_links` GenericLinks
    - `wiki` ContentBody
      - `value` string, required
      - `representation` 'view' | 'export_view' | 'styled_view' | 'storage' | 'editor' | 'editor2' | 'anonymous_export_view' | 'wiki' | 'atlas_doc_format' | 'raw', required
      - `embeddedContent` EmbeddedContent[]
        - `entityId` integer
        - `entityType` string
        - `entity` Embeddable
      - `webresource` WebResourceDependencies
        - `_expandable` object
          - `uris` union
            - string
            - object
        - `keys` string[]
        - `contexts` string[]
        - `uris` object
          - `all` union
            - string[]
            - string
          - `css` union
            - string[]
            - string
          - `js` union
            - string[]
            - string
          - `_expandable` object
            - `css` union
              - …
            - `js` union
              - …
        - `tags` object
          - `all` string
          - `css` string
          - `data` string
          - `js` string
          - `_expandable` object
        - `superbatch` SuperBatchWebResources
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
          - `metatags` string
          - `_expandable` object
      - `mediaToken` object
        - `collectionIds` string[]
        - `contentId` string
        - `expiryDateTime` string
        - `fileIds` string[]
        - `token` string
      - `_expandable` object
        - `content` string
        - `embeddedContent` string
        - `webresource` string
        - `mediaToken` string
      - `_links` GenericLinks
    - `atlas_doc_format` ContentBody
      - `value` string, required
      - `representation` 'view' | 'export_view' | 'styled_view' | 'storage' | 'editor' | 'editor2' | 'anonymous_export_view' | 'wiki' | 'atlas_doc_format' | 'raw', required
      - `embeddedContent` EmbeddedContent[]
        - `entityId` integer
        - `entityType` string
        - `entity` Embeddable
      - `webresource` WebResourceDependencies
        - `_expandable` object
          - `uris` union
            - string
            - object
        - `keys` string[]
        - `contexts` string[]
        - `uris` object
          - `all` union
            - string[]
            - string
          - `css` union
            - string[]
            - string
          - `js` union
            - string[]
            - string
          - `_expandable` object
            - `css` union
              - …
            - `js` union
              - …
        - `tags` object
          - `all` string
          - `css` string
          - `data` string
          - `js` string
          - `_expandable` object
        - `superbatch` SuperBatchWebResources
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
          - `metatags` string
          - `_expandable` object
      - `mediaToken` object
        - `collectionIds` string[]
        - `contentId` string
        - `expiryDateTime` string
        - `fileIds` string[]
        - `token` string
      - `_expandable` object
        - `content` string
        - `embeddedContent` string
        - `webresource` string
        - `mediaToken` string
      - `_links` GenericLinks
    - `anonymous_export_view` ContentBody
      - `value` string, required
      - `representation` 'view' | 'export_view' | 'styled_view' | 'storage' | 'editor' | 'editor2' | 'anonymous_export_view' | 'wiki' | 'atlas_doc_format' | 'raw', required
      - `embeddedContent` EmbeddedContent[]
        - `entityId` integer
        - `entityType` string
        - `entity` Embeddable
      - `webresource` WebResourceDependencies
        - `_expandable` object
          - `uris` union
            - string
            - object
        - `keys` string[]
        - `contexts` string[]
        - `uris` object
          - `all` union
            - string[]
            - string
          - `css` union
            - string[]
            - string
          - `js` union
            - string[]
            - string
          - `_expandable` object
            - `css` union
              - …
            - `js` union
              - …
        - `tags` object
          - `all` string
          - `css` string
          - `data` string
          - `js` string
          - `_expandable` object
        - `superbatch` SuperBatchWebResources
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
          - `metatags` string
          - `_expandable` object
      - `mediaToken` object
        - `collectionIds` string[]
        - `contentId` string
        - `expiryDateTime` string
        - `fileIds` string[]
        - `token` string
      - `_expandable` object
        - `content` string
        - `embeddedContent` string
        - `webresource` string
        - `mediaToken` string
      - `_links` GenericLinks
  - `_expandable` object
    - `body` string
  - `_links` GenericLinks, required

## Other responses

- `403` — Returned if; - There is no template with the given ID. - The calling user does not have permission to view the template.

---

[API](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api.md) · [All operations](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-confluence-cloud-rest-api/revisions/70088490f406/schema)
