Confluence Forge - how to get hold of the contents of an attachment>

As a Confluence Forge app - I’m trying to get hold of the contents of an attachment. The only way I’m able to do so is if I’m using the v1 api:

/wiki/rest/api/content/{content_id}/child/attachment/{attachment_id}/download

However with the v1 api sunsetting going on - what’s available from a Forge app to fetch the contents of an attachement?

/Daniel

As far as I know, this particular API is not part of the to-be-sunset group of endpoints and it should continue to work after December. I am also not aware of any announcements pointing to efforts to further deprecate the remaining v1 endpoints (beyond those that were first announced in early 2023 and which are scheduled to be removed from service in December, and which are already marked as deprecated in the docs).

4 Likes