Embed Confluence Page to Another Website using Rest API

Hi,

I am building a website that needs to integrate our company Confluence content. I believe this cam be achieved using Atlassian Cloud API. When doing some testing using postman, I can connect successfully using user token. But What I cannot seem to get the \rest\api content of our Atllassian domain. It seems that this is not present for the mean time.

Now my question is how to enable the REST API from our company Confluence page? I am trying to access https://.atlassian.net/rest/api but I’m getting a 404 error:

404

null for uri: https://.atlassian.net/rest/api/

I have no clue about this. In my understanding, if we create a Confluence content the API will be automatically be accessible and can be embedded to external website?

If my understanding is wrong, how can we enable the Rest API in our confluence page? and how can we mange the API available?

Do we need to host the API using Atlassian SDK?

Hope to hear from you the soonest.

Hi!

The Confluence Cloud REST API should be available and accessible for you - there is no need to perform additional configuration or installation.

When making calls to the Confluence Cloud REST API, you need to prefix the resource URL with /wiki. So, for the site example.atlassian.net, the URL to access the “content” resource would be https://example.atlassian.net/wiki/rest/api/content.

If you omit the /wiki portion of the URL, you end up making a call to the Jira API on the same site, which has a different set of REST resources.

Hope this helps!
Joe.

1 Like

Hi,

Thanks for this. It worked!! I can now retrieve the JSON from API. Thanks a lot for prompt reply and assistance.