---
title: "Generate Download URL for Source File"
method: POST
path: "/connection/{connection_id}/source-file-storage/download"
tags: ["Connections"]
---

# Generate Download URL for Source File

`POST /connection/{connection_id}/source-file-storage/download`

This endpoint generates a download URL for a source file in a connection

## Path parameters

- `connection_id` string, uuid, required

## Request body

- DownloadFile
  - `relative_path` string, required

## Response `200`

Download URL generated successfully

- SourceFileDownload
  - `download_url` string, uri, required

## Other responses

- `400` — Invalid input
- `404` — Connection does not exist

---

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