Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence API - Content Retrieval & Template Detection Issues

Laz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 19, 2025

 

Hi Confluence Community,

We're experiencing several issues with the Confluence REST API regarding content retrieval and metrics calculation. Here are the specific challenges we're facing:

1. Content Type Limitations

  • API Endpoint: rest/api/content
  • Parameters Used:
    • start: 0
    • limit: 9999
    • expand: body.view, history, history.createdDate, version
  • Issue:
    • API only fetches "pages", excluding blogs and whiteboards
    • Deprecated Space endpoint returns error: "Error fetching whiteboard contents: java.lang.IllegalArgumentException: Type is not a custom content type : whiteboard"
  • Impact: Unable to get a complete view of all content types in a space

2. Views Metrics Limitation

  • Issue: Views metrics only calculate for pages, excluding blogs and whiteboards
  • Impact: Incomplete analytics for content engagement
  • Root Cause: Tied to the content type limitation in Issue #1

3. Content Creation Rate Discrepancy

  • API Endpoint: rest/api/content
  • Parameters:
    • expand: body.view, history, history.createdDate, version
    • start: 0
    • limit: 9999
  • Issue: Creation rate metrics only include pages, missing blogs and whiteboards
  • Impact: Inaccurate content creation analytics

4. Template Usage Detection

  • API Endpoint: rest/api/content
  • Issue:
    • Returns empty results array
    • Unable to detect template usage in pages
    • No template metadata being returned
  • Impact: Cannot track template usage despite known template-based pages existing

Questions:

  1. Is there an alternative API endpoint to fetch all content types (pages, blogs, whiteboards) in a single call?
  2. How can we access template metadata through the API?
  3. Are there plans to add comprehensive content type support in future API versions?

Any guidance or workarounds would be greatly appreciated.

Thank you!

1 answer

0 votes
marc -Collabello--Phase Locked-
Community Champion
January 20, 2025

It seems you are using the old API.  The new API is documented here:

https://developer.atlassian.com/cloud/confluence/rest/v2/intro/#about

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events