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
With the Page ID, you can construct the API endpoint to access the page storage format. The format of the URL is as follows:
https://your-domain.atlassian.net/wiki/rest/api/content/PAGE_ID?expand=body.storage
https://your-domain.atlassian.net/wiki/api/v2/pages/PAGE_ID?body-format=storage
Replace your-domain with your actual Confluence domain and PAGE_ID with the ID you collected in Step 1.
Example: If your domain is example and your Page ID is 123456789, the URL will be:
https://example.atlassian.net/wiki/rest/api/content/123456789?expand=body.storage
https://example.atlassian.net/wiki/api/v2/pages/123456789?body-format=storage
Step 3: Access the Page Storage Format
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?