Problems getting archived attachment body


i am trying to download an attachment using the rest API
the attachment is archived but still i need to be able to get it
i am getting the following result:
how can i download the attachment?

    "statusCode": 404,
    "data": {
        "authorized": false,
        "valid": true,
        "errors": [],
        "successful": false
    "message": "com.atlassian.confluence.api.service.exceptions.NotFoundException: No content found with id : current and status ContentId{id=3424923}, there is a content object with status : archived"

Hello @YaronKhazai

Essentially speaking, you can’t get archived content via the REST API, you must unarchive the content via the web UI first.

The REST API can only get the status of content and tell you if it is or isn’t archived, but it can’t do anything about changing its archived status. This is covered in CONFCLOUD-70330 and CONFCLOUD-72078 feature requests.