---
title: "Create a computer file download"
method: POST
path: "/api/v0/computers/{computerId}/files/{fileName}/create-download"
tags: ["Computers"]
---

# Create a computer file download

`POST /api/v0/computers/{computerId}/files/{fileName}/create-download`

Creates a download for a file in the computer's workspace and returns a time-limited download URL.

## Path parameters

- `computerId` string, required — Computer ID
- `fileName` string, required — Workspace file name

## Request body

- CreateComputerFileDownloadRequestBody
  - `sessionId` string, required
  - `filePath` string
  - `contentType` string

## Response `200`

Response for status 200

- CreateComputerFileDownload200ResponseBody
  - `transferId` string, uuid, required
  - `expiresAt` number, required
  - `downloadUrl` string, required
  - `byteLength` integer, required

## Other responses

- `400` — Response for status 400
- `401` — Response for status 401
- `403` — Response for status 403
- `404` — Response for status 404
- `424` — Response for status 424
- `500` — Response for status 500
- `503` — Response for status 503

---

[API](https://skmtc.net/factory/apis/factory-public-api.md) · [All operations](https://skmtc.net/factory/apis/factory-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/factory/factory-public-api/versions/684f94d47ca9/schema)
