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
Key | Datatype | Required | Description |
---|---|---|---|
spaceKey | string | The key of the space to be queried for templates. If the spaceKey | |
is not specified, global templates will be returned. | |||
start | number | The starting index of the returned templates. | |
limit | number | The maximum number of templates to return per page. | |
Note, this may be restricted by fixed system limits. | |||
expand | string | A 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
{"results":[{"templateId":"pariatur adipisicing non Ut","name":"enim ullamco officia eu","description":"culpa","labels":[{"prefix":"Ut id pariatur","name":"amet ipsum reprehenderit","id":"ipsum","label":"do consectetur"},{"prefix":"irure elit","name":"laboris cillum dolor pariatur aliquip","id":"deserunt consectetur d","label":"nisi ex"}],"templateType":"sunt eu","_expandable":{"body":"Excepteur velit aliquip"},"_links":{},"body":{"value":"sint dolor mollit","representation":"view","_expandable":{"content":"dolor"},"embeddedContent":[{"entityId":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"entity":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"entityId":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"entity":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"webresource":{"keys":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"contexts":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"uris":{"all":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"css":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"js":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"tags":{"all":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"css":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"data":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"js":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"superbatch":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}}},{"templateId":"qui officia aute","name":"deserunt","description":"velit laborum cupidatat anim","labels":[{"prefix":"magna Ut","name":"culpa quis Duis","id":"et enim eiusmod quis","label":"elit qui"},{"prefix":"eu proident","name":"pariatur non","id":"magna adipisicing ea amet sunt","label":"qui"}],"templateType":"nulla exercitation","_expandable":{"body":"amet"},"_links":{},"body":{"value":"in ea consectetur","representation":"storage","_expandable":{"content":"aliquip magna eu do "},"embeddedContent":[{"entityId":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"entity":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"entityId":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"entity":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"webresource":{"keys":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"contexts":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"uris":{"all":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"css":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"js":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"tags":{"all":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"css":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"data":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"js":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"superbatch":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}}}],"start":-93900983,"limit":-84771492,"size":-63798652,"_links":{}}