Failed to download attachment with Get URI to download attachment API

Hi, community,

I’m trying to use in my Connect app.

But, if an attachment is on a draft page, the API returns 404 with the message “com.atlassian.confluence.api.service.exceptions.NotFoundException: No content found with id : current and status ContentId{id=262471681}, there is a content object with status : draft”.

Is there any way to get attachments on a draft page with the API? Or Do I have to use the URL of