Actions35
- Space Actions
- Page Actions
- Template Actions
- Search Actions
- Comment Actions
- Get Page Footer Comments
- Get Page Inline Comments
- Get Blog Post Footer Comments
- Get Blog Post Inline Comments
- Get Custom Content Comments
- Get Footer Comments
- Create Footer Comment
- Get Footer Comment By Id
- Update Footer Comment
- Delete Footer Comment
- Get Footer Comment Children
- Get Inline Comments
- Create Inline Comment
- Get Inline Comment By Id
- Update Inline Comment
- Delete Inline Comment
- Get Inline Comment Children
Overview
The "Get Content Templates" operation of the Confluence Cloud node retrieves content templates from a Confluence instance. It can fetch either global content templates or templates within a specific space, depending on the parameters provided. This operation is useful for automating documentation workflows, standardizing page creation, or integrating template data into other systems.
Typical use cases include:
- Listing all available content templates to present options for automated page creation.
- Filtering templates by space to manage or audit templates in specific project areas.
- Expanding template details to access the full content body for processing or display.
Properties
Name | Meaning |
---|---|
Return All | Whether to return all results or only up to a given limit. |
Limit | Maximum number of results to return (maximum 250 as per Confluence API limit). |
Additional Fields | Collection of optional fields: |
- Space Key | The key of the space to query templates from. If omitted, global templates are returned. |
- Expand | Properties of the template to expand. Options: body , body.storage (returns the content of the template in storage format). |
Output
The output JSON contains a property named results
which holds an array of content templates retrieved from Confluence. Each template object includes metadata such as its ID, name, and optionally expanded properties like the template body in storage format if requested.
No binary data output is involved in this operation.
Dependencies
- Requires an active connection to a Confluence Cloud instance with appropriate permissions.
- Needs an API authentication token configured in n8n credentials to authorize requests.
- The node uses the Confluence REST API endpoint
/wiki/rest/api/template/page
.
Troubleshooting
- Permission Errors: Ensure the API token has 'View' permission for the target space to access space templates, and global 'Can use' permission to access global templates.
- Limit Exceeded: The Confluence API limits results to 250 items per request. Use the "Return All" option to paginate through all results.
- Invalid Space Key: If specifying a space key, verify it exists and the user has access; otherwise, no templates will be returned.
- Expand Parameter Issues: Incorrect values in the expand field may cause incomplete or failed responses. Use only supported options (
body
,body.storage
).
Links and References
- Confluence Cloud REST API - Content Templates
- Confluence Permissions Documentation
- Confluence Query Language (CQL) Guide (for related search operations)