Question about Confluence API to retrieve folder title

Gabriel Belleboni February 14, 2025

Hi everyone!

I have a question regarding the Confluence API. Recently, the feature to convert pages into folders was introduced, but I'm having trouble retrieving the folder titles via the API.

We tried using the GET /folders/{id} endpoint from the official documentation (https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-folder/#api-group-folder), but this doesn’t seem to give us the folder title as we expected.

Has anyone successfully retrieved folder titles using the API? If so, could you share the correct approach or endpoint?

Thanks in advance!

1 answer

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 14, 2025

Hi @Gabriel Belleboni 

I just tried it and it returned the folder title for me with v2:

myJiraURL/wiki/api/v2/folders/{the folder id}

You could try using the content endpoint to confirm the type is "folder" for the ID passed:

myJiraJURL/wiki/rest/api/content/{the folder id}?expand=body.storage

Kind regards,
Bill

Gabriel Belleboni February 15, 2025

Hi @Bill Sheboy ,

Thanks for your response! Will test and get back to you if it works.

Best regards,

Gabriel

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events