---
title: "Get URI to download attachment"
method: GET
path: "/wiki/rest/api/content/{id}/child/attachment/{attachmentId}/download"
tags: ["Content - attachments"]
---

# Get URI to download attachment

`GET /wiki/rest/api/content/{id}/child/attachment/{attachmentId}/download`

## Request

- Base URL: `https://your-domain.atlassian.net`
- URL: `https://your-domain.atlassian.net/wiki/rest/api/content/{id}/child/attachment/{attachmentId}/download`
- Auth: one of:
  - HTTP basic
  - OAuth 2
    - Authorization code: `https://auth.atlassian.com/authorize`
    - Token URL: `https://auth.atlassian.com/oauth/token` scopes: `readonly:content.attachment:confluence`

Redirects the client to a URL that serves an attachment's binary data.

## Path parameters

- `id` string, required
- `attachmentId` string, required

## Query parameters

- `version` integer
- `status` string[]

## Other responses

- `302`: Returned if download URL is found.
- `400`: Returned if version number is greater than attachment's latest version number or an invalid value.
- `401`: Returned if there are authentication issues in request.
- `404`: Returned if; - No content is found with the specified content ID. - The specified content does not contain an attachment with the specified attachment ID. - The calling user does not have permission to view the attachment.

---

[API](https://skmtc.dev/atlassian/apis/the-confluence-cloud-rest-api.md) - [All operations](https://skmtc.dev/atlassian/apis/the-confluence-cloud-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/atlassian/apis/the-confluence-cloud-rest-api/revisions/f80279e4beac?raw)
