Get content templates

GET {{baseUrl}}/api/template/page?spaceKey=<string>&start=0&limit=25&expand=<string>&expand=<string>

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

Permissions required: 'Admin' permission for the space to view space templates and 'Confluence Administrator' global permission to view global templates.

Request Params

KeyDatatypeRequiredDescription
spaceKeystringThe key of the space to be queried for templates. If the spaceKey
is not specified, global templates will be returned.
startnumberThe starting index of the returned templates.
limitnumberThe maximum number of templates to return per page.
Note, this may be restricted by fixed system limits.
expandstringA multi-value parameter indicating which properties of the template
to expand.
  • body returns the content of the template in storage format. | | expand | string | | A multi-value parameter indicating which properties of the template to expand.

  • body returns the content of the template in storage format. |

RESPONSES

status: OK

{&quot;results&quot;:[{&quot;templateId&quot;:&quot;pariatur adipisicing non Ut&quot;,&quot;name&quot;:&quot;enim ullamco officia eu&quot;,&quot;description&quot;:&quot;culpa&quot;,&quot;labels&quot;:[{&quot;prefix&quot;:&quot;Ut id pariatur&quot;,&quot;name&quot;:&quot;amet ipsum reprehenderit&quot;,&quot;id&quot;:&quot;ipsum&quot;,&quot;label&quot;:&quot;do consectetur&quot;},{&quot;prefix&quot;:&quot;irure elit&quot;,&quot;name&quot;:&quot;laboris cillum dolor pariatur aliquip&quot;,&quot;id&quot;:&quot;deserunt consectetur d&quot;,&quot;label&quot;:&quot;nisi ex&quot;}],&quot;templateType&quot;:&quot;sunt eu&quot;,&quot;_expandable&quot;:{&quot;body&quot;:&quot;Excepteur velit aliquip&quot;},&quot;_links&quot;:{},&quot;body&quot;:{&quot;value&quot;:&quot;sint dolor mollit&quot;,&quot;representation&quot;:&quot;view&quot;,&quot;_expandable&quot;:{&quot;content&quot;:&quot;dolor&quot;},&quot;embeddedContent&quot;:[{&quot;entityId&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;entity&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},{&quot;entityId&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;entity&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}],&quot;webresource&quot;:{&quot;keys&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;contexts&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;uris&quot;:{&quot;all&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;css&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;js&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;tags&quot;:{&quot;all&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;css&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;data&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;js&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;superbatch&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}}},{&quot;templateId&quot;:&quot;qui officia aute&quot;,&quot;name&quot;:&quot;deserunt&quot;,&quot;description&quot;:&quot;velit laborum cupidatat anim&quot;,&quot;labels&quot;:[{&quot;prefix&quot;:&quot;magna Ut&quot;,&quot;name&quot;:&quot;culpa quis Duis&quot;,&quot;id&quot;:&quot;et enim eiusmod quis&quot;,&quot;label&quot;:&quot;elit qui&quot;},{&quot;prefix&quot;:&quot;eu proident&quot;,&quot;name&quot;:&quot;pariatur non&quot;,&quot;id&quot;:&quot;magna adipisicing ea amet sunt&quot;,&quot;label&quot;:&quot;qui&quot;}],&quot;templateType&quot;:&quot;nulla exercitation&quot;,&quot;_expandable&quot;:{&quot;body&quot;:&quot;amet&quot;},&quot;_links&quot;:{},&quot;body&quot;:{&quot;value&quot;:&quot;in ea consectetur&quot;,&quot;representation&quot;:&quot;storage&quot;,&quot;_expandable&quot;:{&quot;content&quot;:&quot;aliquip magna eu do &quot;},&quot;embeddedContent&quot;:[{&quot;entityId&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;entity&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},{&quot;entityId&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;entity&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}],&quot;webresource&quot;:{&quot;keys&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;contexts&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;uris&quot;:{&quot;all&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;css&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;js&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;tags&quot;:{&quot;all&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;css&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;data&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;js&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;superbatch&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}}}],&quot;start&quot;:-93900983,&quot;limit&quot;:-84771492,&quot;size&quot;:-63798652,&quot;_links&quot;:{}}