I'm trying to read Confluence pages using the APIs. Every attempt to read a page ends in error 404. I have tried various URL formats:
curl -X GET -u <USERNAME>:<API TOKEN> -H "Accept: application/json" 'https://<MY COMPANY DOMAIN>/wiki/rest/api/content/898042287'
curl -X GET -u <USERNAME>:<API TOKEN> -H "Accept: application/json" 'https://<MY COMPANY DOMAIN>/confluence/rest/api/content/898042287'
curl -X GET -u <USERNAME>:<API TOKEN> -H "Accept: application/json" 'https://<MY COMPANY DOMAIN>/wiki/spaces/ds/pages/898042287'
I can create a new page without problems, the page ID on the above example is from the newly created page using the API, it is jut the GET commands that fail
I followed all different versions of the API documentation online, but none of them works. Also tried using Python with same results. I can always create pages, but I cannot read them.
I assume the URL might be incorrect for the latest version of Confluence Cloud?