AsmaaMHadir Hadir • over 2 years ago
How to get a page's body content?
I am trying to retrieve the body content of all pages in confluence. I had been using the following endpoint: route`/wiki/rest/api/content/{pageid}?expand=body.view` However, I noticed it is deprecated. What's the correct reference to retrieve the body of a page in a confluence space? Thank you.
Comments are closed.

1 comment
Michelle Brain Manager • over 2 years ago
Hello AsmaaMHadir,
Great question! We believe you might want this endpoint for the page body: https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-get
Please note that the v2 REST API does away with the broad concept of content in favor of separate endpoints for different content types. Feel free to read more about the shift here: https://blog.developer.atlassian.com/the-confluence-cloud-rest-api-v2-brings-major-performance-improvements/