---
title: "Download a file from space storage"
method: GET
path: "/space/{spaceId}/storage/download/{path}"
tags: ["Space Storage"]
---

# Download a file from space storage

`GET /space/{spaceId}/storage/download/{path}`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/space/{spaceId}/storage/download/{path}`
- Auth: HTTP bearer

Download a file from space storage. The file path is specified in the
URL after /download/. Can return either the direct file content
(default) or a presigned download URL (when Accept: application/json).

## Path parameters

- `spaceId` string, required: The ID of the space
- `path` string, required: The file path

## Response `200`

The file was downloaded successfully

- object
  - `id` string, required: The ID of the file
  - `url` string, required: The presigned URL to download the file

## Other responses

- `default`: An error response

---

[API](https://skmtc.dev/chatbotkit/apis/cbk-api.md) · [All operations](https://skmtc.dev/chatbotkit/apis/cbk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatbotkit/apis/cbk-api/revisions/5e7b6bf465ce?raw)
