---
title: "A download link straight to the artifact in your bucket"
url: https://hexelstudio.com/docs/api/harness/tasks/download
---

# A download link straight to the artifact in your bucket

**GET** `/harness/tasks/{id}/artifacts/{artifact}/download`

Made where the artifact is stored and relayed without being stored; check the bytes against
`content_sha256`. `504 cell_unavailable`, `502 download_failed`, `409 not_downloadable`,
`429 too_many_downloads`.


## Path parameters

- `artifact: string`

## Headers

- `Authorization: string`

  `Bearer <token>`. A Hexel Studio access token for your organization.

- `X-Workspace-Id: string`

  The workspace the request acts in (`ws_...`). It never grants access by itself.

- `X-Environment-Id: string`

  The environment the request acts in (`env_...`). It never grants access by itself.

## Returns

`200` The link. (`ArtifactLink`)

- `method: string`

- `url: string`

- `headers: optional map[string]`

- `expires_at: optional string`

- `content_sha256: optional string`

## Errors

- `default` 

## Example

```bash
curl --request GET \
  --url 'https://api.hexelstudio.com/v1/harness/tasks/{id}/artifacts/{artifact}/download' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'X-Workspace-Id: X_WORKSPACE_ID' \
  --header 'X-Environment-Id: X_ENVIRONMENT_ID'
```

### Response (200)

```json
{
  "method": "string",
  "url": "string",
  "headers": {
    "key": "string"
  },
  "expires_at": "2026-01-01T00:00:00Z",
  "content_sha256": "string"
}
```
