Find the page storage format in Confluence Cloud as a non-admin
Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.
Summary
In Confluence Cloud, the page storage format allows you to see a page's underlying XML representation, which can be handy for troubleshooting or performing bulk operations. As highlighted in the feature request CONFCLOUD-81736, this feature is only available to site admins by default. However, with a simple workaround, you can access the storage format using Confluence's REST API.
Solution
Step 1: Collect the Page ID
Navigate to the Confluence Page: Open the page for which you want to obtain the storage format.
Get the Page ID:
Look at the URL in your browser. It should look something like this:
https://your-domain.atlassian.net/wiki/spaces/SPACEKEY/pages/123456789/Page+Title.The numbers after
/pages/(in this example,123456789) represent your Page ID. Note this ID for later.
Step 2: Construct the API Endpoint
After you collect the Page ID, use one of the following URL formats. Replace your-domain with your Confluence domain and PAGE_ID with the Page ID collected in Step 1.
https://your-domain.atlassian.net/wiki/rest/api/content/PAGE_ID?expand=body.storagehttps://your-domain.atlassian.net/wiki/api/v2/pages/PAGE_ID?body-format=storage
For example, if the domain is example and the Page ID is 123456789, use either of these URLs:
https://example.atlassian.net/wiki/rest/api/content/123456789?expand=body.storagehttps://example.atlassian.net/wiki/api/v2/pages/123456789?body-format=storage
Step 3: Access the Page Storage Format
Before opening the constructed URL, ensure you have the necessary permissions to access the page. If prompted, log in with your Confluence credentials.
Paste the URL in Your Browser:
Open a new tab in your browser.
Paste the constructed URL into the address bar and hit Enter.
Authenticate if Required:
If prompted, log in with your Confluence credentials.
Ensure you have the necessary permissions to access the page.
View the Storage Format:
The browser will display the storage format in JSON format.
Understanding the page storage format can be crucial for advanced Confluence usage, such as scripting or troubleshooting complex page issues. For more information on Confluence's storage format, refer to the official documentation: Confluence Storage Format.
Was this helpful?