---
title: "Get a download URL for a task attachment"
method: GET
path: "/v1/tasks/{taskId}/attachments/{attachmentId}/download-url"
tags: ["Task Attachments"]
---

# Get a download URL for a task attachment

`GET /v1/tasks/{taskId}/attachments/{attachmentId}/download-url`

Returns a pre-signed URL the client can stream or download the file from directly. The URL is valid for 24 hours and needs no authorization header of its own.

## Path parameters

- `taskId` integer, required
- `attachmentId` integer, required

## Headers

- `X-Org-Id` integer, required

## Response `200`

Download URL generated successfully

- ApiSuccessResponseString — Standard API success response structure
  - `success` boolean — Indicates if the operation was successful
  - `message` string — Message describing the result of the operation
  - `code` integer — HTTP status code of the response
  - `data` string — Payload containing the response data
  - `timestamp` string, date-time — Timestamp of the response

---

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