---
title: "Get content templates"
method: GET
path: "/wiki/rest/api/template/page"
tags: ["Template"]
---

# Get content templates

`GET /wiki/rest/api/template/page`

Returns all content templates. Use this method to retrieve all global
content templates or all content templates in a space.

**[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.

## Query parameters

- `spaceKey` string
- `start` integer
- `limit` integer
- `expand` string[]

## Response `200`

Returned if the requested templates are returned.

- ContentTemplateArray
  - `results` ContentTemplate[], required
    - `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
              - …
          - `keys` string[]
          - `contexts` string[]
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
            - `_expandable` object
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
            - `_expandable` object
          - `superbatch` SuperBatchWebResources
            - `uris` object
              - …
            - `tags` object
              - …
            - `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
              - …
          - `keys` string[]
          - `contexts` string[]
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
            - `_expandable` object
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
            - `_expandable` object
          - `superbatch` SuperBatchWebResources
            - `uris` object
              - …
            - `tags` object
              - …
            - `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
              - …
          - `keys` string[]
          - `contexts` string[]
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
            - `_expandable` object
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
            - `_expandable` object
          - `superbatch` SuperBatchWebResources
            - `uris` object
              - …
            - `tags` object
              - …
            - `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
              - …
          - `keys` string[]
          - `contexts` string[]
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
            - `_expandable` object
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
            - `_expandable` object
          - `superbatch` SuperBatchWebResources
            - `uris` object
              - …
            - `tags` object
              - …
            - `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
              - …
          - `keys` string[]
          - `contexts` string[]
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
            - `_expandable` object
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
            - `_expandable` object
          - `superbatch` SuperBatchWebResources
            - `uris` object
              - …
            - `tags` object
              - …
            - `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
              - …
          - `keys` string[]
          - `contexts` string[]
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
            - `_expandable` object
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
            - `_expandable` object
          - `superbatch` SuperBatchWebResources
            - `uris` object
              - …
            - `tags` object
              - …
            - `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
              - …
          - `keys` string[]
          - `contexts` string[]
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
            - `_expandable` object
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
            - `_expandable` object
          - `superbatch` SuperBatchWebResources
            - `uris` object
              - …
            - `tags` object
              - …
            - `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
              - …
          - `keys` string[]
          - `contexts` string[]
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
            - `_expandable` object
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
            - `_expandable` object
          - `superbatch` SuperBatchWebResources
            - `uris` object
              - …
            - `tags` object
              - …
            - `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
              - …
          - `keys` string[]
          - `contexts` string[]
          - `uris` object
            - `all` union
              - …
            - `css` union
              - …
            - `js` union
              - …
            - `_expandable` object
              - …
          - `tags` object
            - `all` string
            - `css` string
            - `data` string
            - `js` string
            - `_expandable` object
          - `superbatch` SuperBatchWebResources
            - `uris` object
              - …
            - `tags` object
              - …
            - `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
  - `start` integer, required
  - `limit` integer, required
  - `size` integer, required
  - `_links` GenericLinks, required

## Other responses

- `403` — Returned if the calling user does not have permission to view the content templates.

---

[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)
