Confluence Cloud icon

Confluence Cloud

Zugriff auf die Confluence Cloud REST API - Auto-generated from OpenAPI

Overview

The "Get Content Template" operation in the Confluence Cloud node retrieves detailed information about a specific content template by its ID. This includes metadata such as the template's name, associated space or blueprint, and optionally the body content of the template in various formats.

This operation is useful when you want to programmatically access and use predefined templates within Confluence for creating consistent page content or automating documentation workflows. For example, you might fetch a template's storage format body to populate new pages with standardized layouts or text blocks.

Properties

Name Meaning
Content Template Id The unique identifier of the content template to retrieve.
Additional Fields Optional extra parameters to customize the response:
  Expand Select which properties of the template to expand. Options include:
- Body
- Body.Storage (storage format)

Output

The output JSON contains the full details of the requested content template. This typically includes:

  • Template metadata such as id, name, type, and associated space or blueprint.
  • Optionally expanded fields like the body content in different formats (e.g., storage format if requested).
  • Other relevant properties depending on the API response.

No binary data is returned by this operation.

Dependencies

  • Requires an authenticated connection to Confluence Cloud via an API key credential.
  • The node uses the Confluence Cloud REST API endpoint /wiki/rest/api/template/{contentTemplateId}.
  • Proper permissions are required: 'View' permission for the space containing the template and global permission to view global templates.

Troubleshooting

  • Invalid or missing Content Template Id: Ensure the Content Template Id property is correctly set and corresponds to an existing template.
  • Permission errors: If the user lacks permission to view the template or the space, the API will return an authorization error. Verify that the API credentials have sufficient access rights.
  • Expand parameter issues: If specifying expansions, ensure the values are valid (body, body.storage). Invalid values may cause the API to ignore the parameter or return errors.
  • Network or authentication failures: Confirm that the API key and domain are correctly configured in the node credentials.

Links and References

Discussion