---
title: "Get a download artifact link"
method: GET
path: "/repositories/{workspace}/{repo_slug}/downloads/{filename}"
tags: ["Downloads"]
---

# Get a download artifact link

`GET /repositories/{workspace}/{repo_slug}/downloads/{filename}`

Return a redirect to the contents of a download artifact.

This endpoint returns the actual file contents and not the artifact's
metadata.

    $ curl -s -L https://api.bitbucket.org/2.0/repositories/evzijst/git-tests/downloads/hello.txt
    Hello World

## Other responses

- `302` — Redirects to the url of the specified download artifact.
- `403` — User is not authorized to read from the repository.
- `404` — The specified download artifact does not exist.

---

[API](https://skmtc.net/atlassian/apis/bitbucket-api.md) · [All operations](https://skmtc.net/atlassian/apis/bitbucket-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/bitbucket-api/revisions/3dbfe6a80143/schema)
