How to get a URL to download an attachment in Confluence

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

There may be instances when you need to get a URL to download an attachment. This article outlines a method to achieve this.

Environment

Confluence Cloud

Solution

  1. Access the page where the desired file is attached.

  2. Extract the id of the page from the URL bar.

    • For instance, the id is 943423490 in the following image.

      • (Auto-migrated image: description temporarily unavailable)
  3. Paste a URL like the following to the URL bar to get the page id 

    1. 1 2 https://{Your site name}.atlassian.net/wiki/api/v2/pages/{Page id}/attachments ex. https://testatlassian.atlassian.net/wiki/api/v2/pages/943423490/attachment
  4. Locate a section similar to the one below that contains the download link.

    1. 1 ..._links":{"download":"/download/attachments/XXXXXX/○○○○○",
  5. You can now download the file using the following URL

    1. 1 https://{Your site name}.atlassian.net/wiki/download/attachments/XXXXXX/○○○○○

Updated on February 19, 2025

Still need help?

The Atlassian Community is here for you.