Confluence REST API v2 - Convert content ids to content types

I’m trying to use from a Connect app, and always get a 403.

@SimonKliewer do you know if this endpoint is actually enabled for Connect?

Hi @marc - I think this endpoint had not yet been allowlisted correctly - our mistake. I just checked and it is working now on my end - do you see the same? Thank you!

In my instance I still get
Request not in an authorized API scope with 403.

HI @marc - I found one other thing that needs to be fixed. Our documentation should list the “READ” Connect scope as being required.

Would you be able to verify your app has this scope? I will get the documentation updated shortly.

@SimonKliewer My app has the read scope.

One other thing to try just be sure - are you making sure this is a POST request? If this is not it, feel free to email me at and we can debug further.

Thanks, will send further particulars by email.

1 Like

After trying with different API endpoints:
Did anybody succeed in using ACE and httpClient for the v2 API? If so, can you post example code?

With the help of @SimonKliewer a solution was found.
The documentation of the API v2 lists all paths prepended by /wiki, whereas in ACE you need to strip the /wiki part from the path.

let options = {
    'url': '/api/v2/content/convert-ids-to-types',
    'headers': {
      'Accept': 'application/json',
      'Content-Type': 'application/json',
    'body': JSON.stringify({
      'contentIds': [contentId],
  };, function(error, response, body) {
    if (error) {
      console.log('error', error);
    console.log('POST response body', body);
1 Like